aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/inode.c5
-rw-r--r--security/lsm_audit.c5
-rw-r--r--security/selinux/avc.c5
-rw-r--r--security/selinux/hooks.c5
-rw-r--r--security/selinux/include/audit.h5
-rw-r--r--security/selinux/include/netif.h5
-rw-r--r--security/selinux/include/objsec.h5
-rw-r--r--security/selinux/netif.c5
-rw-r--r--security/selinux/netlink.c5
-rw-r--r--security/selinux/nlmsgtab.c5
-rw-r--r--security/selinux/ss/status.c5
-rw-r--r--security/selinux/xfrm.c5
-rw-r--r--security/smack/smack_lsm.c5
-rw-r--r--security/smack/smack_netfilter.c5
-rw-r--r--security/yama/yama_lsm.c6
15 files changed, 15 insertions, 61 deletions
diff --git a/security/inode.c b/security/inode.c
index aacc4dabba7d..fcff7f08bb1c 100644
--- a/security/inode.c
+++ b/security/inode.c
@@ -1,12 +1,9 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * inode.c - securityfs 3 * inode.c - securityfs
3 * 4 *
4 * Copyright (C) 2005 Greg Kroah-Hartman <gregkh@suse.de> 5 * Copyright (C) 2005 Greg Kroah-Hartman <gregkh@suse.de>
5 * 6 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License version
8 * 2 as published by the Free Software Foundation.
9 *
10 * Based on fs/debugfs/inode.c which had the following copyright notice: 7 * Based on fs/debugfs/inode.c which had the following copyright notice:
11 * Copyright (C) 2004 Greg Kroah-Hartman <greg@kroah.com> 8 * Copyright (C) 2004 Greg Kroah-Hartman <greg@kroah.com>
12 * Copyright (C) 2004 IBM Inc. 9 * Copyright (C) 2004 IBM Inc.
diff --git a/security/lsm_audit.c b/security/lsm_audit.c
index 33028c098ef3..e40874373f2b 100644
--- a/security/lsm_audit.c
+++ b/security/lsm_audit.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * common LSM auditing functions 3 * common LSM auditing functions
3 * 4 *
@@ -5,10 +6,6 @@
5 * Stephen Smalley, <sds@tycho.nsa.gov> 6 * Stephen Smalley, <sds@tycho.nsa.gov>
6 * James Morris <jmorris@redhat.com> 7 * James Morris <jmorris@redhat.com>
7 * Author : Etienne Basset, <etienne.basset@ensta.org> 8 * Author : Etienne Basset, <etienne.basset@ensta.org>
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2,
11 * as published by the Free Software Foundation.
12 */ 9 */
13 10
14#include <linux/types.h> 11#include <linux/types.h>
diff --git a/security/selinux/avc.c b/security/selinux/avc.c
index a99be508f93d..ecd3829996aa 100644
--- a/security/selinux/avc.c
+++ b/security/selinux/avc.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Implementation of the kernel access vector cache (AVC). 3 * Implementation of the kernel access vector cache (AVC).
3 * 4 *
@@ -8,10 +9,6 @@
8 * Replaced the avc_lock spinlock by RCU. 9 * Replaced the avc_lock spinlock by RCU.
9 * 10 *
10 * Copyright (C) 2003 Red Hat, Inc., James Morris <jmorris@redhat.com> 11 * Copyright (C) 2003 Red Hat, Inc., James Morris <jmorris@redhat.com>
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License version 2,
14 * as published by the Free Software Foundation.
15 */ 12 */
16#include <linux/types.h> 13#include <linux/types.h>
17#include <linux/stddef.h> 14#include <linux/stddef.h>
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index fea66f6b31bf..94de51628fdc 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * NSA Security-Enhanced Linux (SELinux) security module 3 * NSA Security-Enhanced Linux (SELinux) security module
3 * 4 *
@@ -18,10 +19,6 @@
18 * Copyright (C) 2007 Hitachi Software Engineering Co., Ltd. 19 * Copyright (C) 2007 Hitachi Software Engineering Co., Ltd.
19 * Yuichi Nakamura <ynakam@hitachisoft.jp> 20 * Yuichi Nakamura <ynakam@hitachisoft.jp>
20 * Copyright (C) 2016 Mellanox Technologies 21 * Copyright (C) 2016 Mellanox Technologies
21 *
22 * This program is free software; you can redistribute it and/or modify
23 * it under the terms of the GNU General Public License version 2,
24 * as published by the Free Software Foundation.
25 */ 22 */
26 23
27#include <linux/init.h> 24#include <linux/init.h>
diff --git a/security/selinux/include/audit.h b/security/selinux/include/audit.h
index 682e2b5de2a4..073a3d34a0d2 100644
--- a/security/selinux/include/audit.h
+++ b/security/selinux/include/audit.h
@@ -1,3 +1,4 @@
1/* SPDX-License-Identifier: GPL-2.0-only */
1/* 2/*
2 * SELinux support for the Audit LSM hooks 3 * SELinux support for the Audit LSM hooks
3 * 4 *
@@ -6,10 +7,6 @@
6 * Copyright (C) 2005 Red Hat, Inc., James Morris <jmorris@redhat.com> 7 * Copyright (C) 2005 Red Hat, Inc., James Morris <jmorris@redhat.com>
7 * Copyright (C) 2006 Trusted Computer Solutions, Inc. <dgoeddel@trustedcs.com> 8 * Copyright (C) 2006 Trusted Computer Solutions, Inc. <dgoeddel@trustedcs.com>
8 * Copyright (C) 2006 IBM Corporation, Timothy R. Chavez <tinytim@us.ibm.com> 9 * Copyright (C) 2006 IBM Corporation, Timothy R. Chavez <tinytim@us.ibm.com>
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2,
12 * as published by the Free Software Foundation.
13 */ 10 */
14 11
15#ifndef _SELINUX_AUDIT_H 12#ifndef _SELINUX_AUDIT_H
diff --git a/security/selinux/include/netif.h b/security/selinux/include/netif.h
index c72145444090..85ec30d11144 100644
--- a/security/selinux/include/netif.h
+++ b/security/selinux/include/netif.h
@@ -1,3 +1,4 @@
1/* SPDX-License-Identifier: GPL-2.0-only */
1/* 2/*
2 * Network interface table. 3 * Network interface table.
3 * 4 *
@@ -9,10 +10,6 @@
9 * Copyright (C) 2003 Red Hat, Inc., James Morris <jmorris@redhat.com> 10 * Copyright (C) 2003 Red Hat, Inc., James Morris <jmorris@redhat.com>
10 * Copyright (C) 2007 Hewlett-Packard Development Company, L.P. 11 * Copyright (C) 2007 Hewlett-Packard Development Company, L.P.
11 * Paul Moore <paul@paul-moore.com> 12 * Paul Moore <paul@paul-moore.com>
12 *
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License version 2,
15 * as published by the Free Software Foundation.
16 */ 13 */
17#ifndef _SELINUX_NETIF_H_ 14#ifndef _SELINUX_NETIF_H_
18#define _SELINUX_NETIF_H_ 15#define _SELINUX_NETIF_H_
diff --git a/security/selinux/include/objsec.h b/security/selinux/include/objsec.h
index 231262d8eac9..91c5395dd20c 100644
--- a/security/selinux/include/objsec.h
+++ b/security/selinux/include/objsec.h
@@ -1,3 +1,4 @@
1/* SPDX-License-Identifier: GPL-2.0-only */
1/* 2/*
2 * NSA Security-Enhanced Linux (SELinux) security module 3 * NSA Security-Enhanced Linux (SELinux) security module
3 * 4 *
@@ -11,10 +12,6 @@
11 * Copyright (C) 2001,2002 Networks Associates Technology, Inc. 12 * Copyright (C) 2001,2002 Networks Associates Technology, Inc.
12 * Copyright (C) 2003 Red Hat, Inc., James Morris <jmorris@redhat.com> 13 * Copyright (C) 2003 Red Hat, Inc., James Morris <jmorris@redhat.com>
13 * Copyright (C) 2016 Mellanox Technologies 14 * Copyright (C) 2016 Mellanox Technologies
14 *
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License version 2,
17 * as published by the Free Software Foundation.
18 */ 15 */
19#ifndef _SELINUX_OBJSEC_H_ 16#ifndef _SELINUX_OBJSEC_H_
20#define _SELINUX_OBJSEC_H_ 17#define _SELINUX_OBJSEC_H_
diff --git a/security/selinux/netif.c b/security/selinux/netif.c
index 8c738c189942..9cb83eeee1d9 100644
--- a/security/selinux/netif.c
+++ b/security/selinux/netif.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Network interface table. 3 * Network interface table.
3 * 4 *
@@ -9,10 +10,6 @@
9 * Copyright (C) 2003 Red Hat, Inc., James Morris <jmorris@redhat.com> 10 * Copyright (C) 2003 Red Hat, Inc., James Morris <jmorris@redhat.com>
10 * Copyright (C) 2007 Hewlett-Packard Development Company, L.P. 11 * Copyright (C) 2007 Hewlett-Packard Development Company, L.P.
11 * Paul Moore <paul@paul-moore.com> 12 * Paul Moore <paul@paul-moore.com>
12 *
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License version 2,
15 * as published by the Free Software Foundation.
16 */ 13 */
17#include <linux/init.h> 14#include <linux/init.h>
18#include <linux/types.h> 15#include <linux/types.h>
diff --git a/security/selinux/netlink.c b/security/selinux/netlink.c
index 8a8a72507437..621e2e9cd6a1 100644
--- a/security/selinux/netlink.c
+++ b/security/selinux/netlink.c
@@ -1,13 +1,10 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Netlink event notifications for SELinux. 3 * Netlink event notifications for SELinux.
3 * 4 *
4 * Author: James Morris <jmorris@redhat.com> 5 * Author: James Morris <jmorris@redhat.com>
5 * 6 *
6 * Copyright (C) 2004 Red Hat, Inc., James Morris <jmorris@redhat.com> 7 * Copyright (C) 2004 Red Hat, Inc., James Morris <jmorris@redhat.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2,
10 * as published by the Free Software Foundation.
11 */ 8 */
12#include <linux/init.h> 9#include <linux/init.h>
13#include <linux/types.h> 10#include <linux/types.h>
diff --git a/security/selinux/nlmsgtab.c b/security/selinux/nlmsgtab.c
index 9cec81209617..8cd7038389fd 100644
--- a/security/selinux/nlmsgtab.c
+++ b/security/selinux/nlmsgtab.c
@@ -1,13 +1,10 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Netlink message type permission tables, for user generated messages. 3 * Netlink message type permission tables, for user generated messages.
3 * 4 *
4 * Author: James Morris <jmorris@redhat.com> 5 * Author: James Morris <jmorris@redhat.com>
5 * 6 *
6 * Copyright (C) 2004 Red Hat, Inc., James Morris <jmorris@redhat.com> 7 * Copyright (C) 2004 Red Hat, Inc., James Morris <jmorris@redhat.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2,
10 * as published by the Free Software Foundation.
11 */ 8 */
12#include <linux/types.h> 9#include <linux/types.h>
13#include <linux/kernel.h> 10#include <linux/kernel.h>
diff --git a/security/selinux/ss/status.c b/security/selinux/ss/status.c
index a121de45ac0e..3c554a442467 100644
--- a/security/selinux/ss/status.c
+++ b/security/selinux/ss/status.c
@@ -1,13 +1,10 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * mmap based event notifications for SELinux 3 * mmap based event notifications for SELinux
3 * 4 *
4 * Author: KaiGai Kohei <kaigai@ak.jp.nec.com> 5 * Author: KaiGai Kohei <kaigai@ak.jp.nec.com>
5 * 6 *
6 * Copyright (C) 2010 NEC corporation 7 * Copyright (C) 2010 NEC corporation
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2,
10 * as published by the Free Software Foundation.
11 */ 8 */
12#include <linux/kernel.h> 9#include <linux/kernel.h>
13#include <linux/gfp.h> 10#include <linux/gfp.h>
diff --git a/security/selinux/xfrm.c b/security/selinux/xfrm.c
index 7c57cb7e4146..7314196185d1 100644
--- a/security/selinux/xfrm.c
+++ b/security/selinux/xfrm.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * NSA Security-Enhanced Linux (SELinux) security module 3 * NSA Security-Enhanced Linux (SELinux) security module
3 * 4 *
@@ -12,10 +13,6 @@
12 * 13 *
13 * Copyright (C) 2005 International Business Machines Corporation 14 * Copyright (C) 2005 International Business Machines Corporation
14 * Copyright (C) 2006 Trusted Computer Solutions, Inc. 15 * Copyright (C) 2006 Trusted Computer Solutions, Inc.
15 *
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License version 2,
18 * as published by the Free Software Foundation.
19 */ 16 */
20 17
21/* 18/*
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index d99450b4f511..4c5e5a438f8b 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Simplified MAC Kernel (smack) security module 3 * Simplified MAC Kernel (smack) security module
3 * 4 *
@@ -12,10 +13,6 @@
12 * Paul Moore <paul@paul-moore.com> 13 * Paul Moore <paul@paul-moore.com>
13 * Copyright (C) 2010 Nokia Corporation 14 * Copyright (C) 2010 Nokia Corporation
14 * Copyright (C) 2011 Intel Corporation. 15 * Copyright (C) 2011 Intel Corporation.
15 *
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License version 2,
18 * as published by the Free Software Foundation.
19 */ 16 */
20 17
21#include <linux/xattr.h> 18#include <linux/xattr.h>
diff --git a/security/smack/smack_netfilter.c b/security/smack/smack_netfilter.c
index e36d17835d4f..fc7399b45373 100644
--- a/security/smack/smack_netfilter.c
+++ b/security/smack/smack_netfilter.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Simplified MAC Kernel (smack) security module 3 * Simplified MAC Kernel (smack) security module
3 * 4 *
@@ -8,10 +9,6 @@
8 * 9 *
9 * Copyright (C) 2014 Casey Schaufler <casey@schaufler-ca.com> 10 * Copyright (C) 2014 Casey Schaufler <casey@schaufler-ca.com>
10 * Copyright (C) 2014 Intel Corporation. 11 * Copyright (C) 2014 Intel Corporation.
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License version 2,
14 * as published by the Free Software Foundation.
15 */ 12 */
16 13
17#include <linux/netfilter_ipv4.h> 14#include <linux/netfilter_ipv4.h>
diff --git a/security/yama/yama_lsm.c b/security/yama/yama_lsm.c
index efac68556b45..01c6239c4493 100644
--- a/security/yama/yama_lsm.c
+++ b/security/yama/yama_lsm.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Yama Linux Security Module 3 * Yama Linux Security Module
3 * 4 *
@@ -5,11 +6,6 @@
5 * 6 *
6 * Copyright (C) 2010 Canonical, Ltd. 7 * Copyright (C) 2010 Canonical, Ltd.
7 * Copyright (C) 2011 The Chromium OS Authors. 8 * Copyright (C) 2011 The Chromium OS Authors.
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2, as
11 * published by the Free Software Foundation.
12 *
13 */ 9 */
14 10
15#include <linux/lsm_hooks.h> 11#include <linux/lsm_hooks.h>