[PATCH 4/6] Add SPDX licence tags

David Howells dhowells at redhat.com
Fri Mar 6 01:29:00 PST 2026


Add SPDX licence information tags to source files.

Signed-off-by: David Howells <dhowells at redhat.com>
---
 src/aklog-kafs.c             |  6 +-----
 src/dns_afsdb.h              |  2 ++
 src/dns_afsdb_text.c         |  6 +-----
 src/dns_afsdb_v1.c           |  6 +-----
 src/dns_main.c               | 15 +--------------
 src/dns_resolver.h           |  5 -----
 src/include/kafs/cellserv.h  |  6 +-----
 src/include/kafs/profile.h   |  6 +-----
 src/include/kafs/reporting.h |  6 +-----
 src/kafs-check-config.c      |  6 +-----
 src/lib_cell_lookup.c        |  6 ++----
 src/lib_cellserv.c           |  6 +-----
 src/lib_dns_lookup.c         | 15 +--------------
 src/lib_object.c             |  6 +-----
 src/lib_profile.c            |  6 +-----
 src/preload-cells.c          | 14 +-------------
 16 files changed, 17 insertions(+), 100 deletions(-)

diff --git a/src/aklog-kafs.c b/src/aklog-kafs.c
index 654f45e..e93361c 100644
--- a/src/aklog-kafs.c
+++ b/src/aklog-kafs.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /* aklog.c: description
  *
  * Copyright (C) 2017 Red Hat, Inc. All Rights Reserved.
@@ -8,11 +9,6 @@
  * Written by David Howells (dhowells at redhat.com)
  * Copyright (C) 2008 Chaskiel Grundman. All Rights Reserved.
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version
- * 2 of the License, or (at your option) any later version.
- *
  * Kerberos-5 strong enctype support for rxkad:
  *	https://tools.ietf.org/html/draft-kaduk-afs3-rxkad-k5-kdf-00
  *
diff --git a/src/dns_afsdb.h b/src/dns_afsdb.h
index 83f3a71..343ef0d 100644
--- a/src/dns_afsdb.h
+++ b/src/dns_afsdb.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 struct kafs_lookup_context;
 
 extern void *kafs_generate_text_payload(void *result,
diff --git a/src/dns_afsdb_text.c b/src/dns_afsdb_text.c
index b1911ed..f4b925c 100644
--- a/src/dns_afsdb_text.c
+++ b/src/dns_afsdb_text.c
@@ -1,12 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Generate a set of addresses as a text string.
  *
  * Copyright (C) David Howells (dhowells at redhat.com) 2018
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
  */
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/src/dns_afsdb_v1.c b/src/dns_afsdb_v1.c
index 93c6077..d022780 100644
--- a/src/dns_afsdb_v1.c
+++ b/src/dns_afsdb_v1.c
@@ -1,12 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Generate a v1 servers and addresses list.
  *
  * Copyright (C) David Howells (dhowells at redhat.com) 2018
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
  */
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/src/dns_main.c b/src/dns_main.c
index 6d88b00..711842a 100644
--- a/src/dns_main.c
+++ b/src/dns_main.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * DNS Resolver Module User-space Helper for AFSDB records
  *
@@ -20,20 +21,6 @@
  * 	#OP    TYPE         DESCRIPTION CALLOUT INFO PROGRAM ARG1 ARG2 ARG3 ...
  * 	====== ============ =========== ============ ==========================
  * 	create dns_resolver afsdb:*     *            /sbin/key.dns_resolver %k
- *
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 #define _GNU_SOURCE
 #include <stdarg.h>
diff --git a/src/dns_resolver.h b/src/dns_resolver.h
index 80af53a..9b7037e 100644
--- a/src/dns_resolver.h
+++ b/src/dns_resolver.h
@@ -3,11 +3,6 @@
  *
  * Copyright (C) 2018 Red Hat, Inc. All Rights Reserved.
  * Written by David Howells (dhowells at redhat.com)
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public Licence
- * as published by the Free Software Foundation; either version
- * 2 of the Licence, or (at your option) any later version.
  */
 
 #ifndef _UAPI_LINUX_DNS_RESOLVER_H
diff --git a/src/include/kafs/cellserv.h b/src/include/kafs/cellserv.h
index a232b0b..8c033e0 100644
--- a/src/include/kafs/cellserv.h
+++ b/src/include/kafs/cellserv.h
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * kAFS config and cell database parser.
  *
  * Copyright (C) David Howells (dhowells at redhat.com) 2018
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
  */
 
 #ifndef _KAFS_CELLSERV_H
diff --git a/src/include/kafs/profile.h b/src/include/kafs/profile.h
index 8e7bb81..bfdb8a4 100644
--- a/src/include/kafs/profile.h
+++ b/src/include/kafs/profile.h
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * Kerberos-style profile file parser.
  *
  * Copyright (C) 2018 David Howells (dhowells at redhat.com)
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
  */
 
 #ifndef _KAFS_PROFILE_H
diff --git a/src/include/kafs/reporting.h b/src/include/kafs/reporting.h
index f3c1482..e2090a9 100644
--- a/src/include/kafs/reporting.h
+++ b/src/include/kafs/reporting.h
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * Error reporting context.
  *
  * Copyright (C) David Howells (dhowells at redhat.com) 2018
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
  */
 
 #ifndef _KAFS_REPORTING_H
diff --git a/src/kafs-check-config.c b/src/kafs-check-config.c
index 6b53870..76821d1 100644
--- a/src/kafs-check-config.c
+++ b/src/kafs-check-config.c
@@ -1,12 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * kAFS filesystem configuration checker.
  *
  * Copyright (C) David Howells (dhowells at redhat.com) 2018
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
  */
 #include <stdarg.h>
 #include <stdio.h>
diff --git a/src/lib_cell_lookup.c b/src/lib_cell_lookup.c
index f048151..667150e 100644
--- a/src/lib_cell_lookup.c
+++ b/src/lib_cell_lookup.c
@@ -1,10 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Cell database access.
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * Copyright (C) David Howells (dhowells at redhat.com) 2018
  */
 
 #include <stdio.h>
diff --git a/src/lib_cellserv.c b/src/lib_cellserv.c
index 4d9aa97..66fd835 100644
--- a/src/lib_cellserv.c
+++ b/src/lib_cellserv.c
@@ -1,12 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Parse the profile tree into a cell server database
  *
  * Copyright (C) David Howells (dhowells at redhat.com) 2018
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
  */
 #define _GNU_SOURCE
 #include <stdio.h>
diff --git a/src/lib_dns_lookup.c b/src/lib_dns_lookup.c
index 01449a2..bc7c4c2 100644
--- a/src/lib_dns_lookup.c
+++ b/src/lib_dns_lookup.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Build a cell VL address set based on DNS records.
  *
@@ -20,20 +21,6 @@
  * 	#OP    TYPE         DESCRIPTION CALLOUT INFO PROGRAM ARG1 ARG2 ARG3 ...
  * 	====== ============ =========== ============ ==========================
  * 	create dns_resolver afsdb:*     *            /sbin/key.dns_resolver %k
- *
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
 #include <stdio.h>
diff --git a/src/lib_object.c b/src/lib_object.c
index 63fa829..9560324 100644
--- a/src/lib_object.c
+++ b/src/lib_object.c
@@ -1,12 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Object creation/destruction.
  *
  * Copyright (C) David Howells (dhowells at redhat.com) 2018
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
  */
 #define _GNU_SOURCE
 #include <stdio.h>
diff --git a/src/lib_profile.c b/src/lib_profile.c
index 469ddc0..4358e66 100644
--- a/src/lib_profile.c
+++ b/src/lib_profile.c
@@ -1,12 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Kerberos-style profile file parser.
  *
  * Copyright (C) David Howells (dhowells at redhat.com) 2018
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
  */
 #define _GNU_SOURCE
 #include <stdio.h>
diff --git a/src/preload-cells.c b/src/preload-cells.c
index 96bd19a..f4f3cee 100644
--- a/src/preload-cells.c
+++ b/src/preload-cells.c
@@ -1,20 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Cell preloader for kAFS filesystem.
  *
  * Copyright (C) David Howells (dhowells at redhat.com) 2018
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 #include <stdarg.h>
 #include <stdio.h>




More information about the linux-afs mailing list