linux-imx/security
Tim Gardner eddcc749a8 SELinux: security_load_policy: Silence frame-larger-than warning
commit b5495b4217 upstream.

Dynamically allocate a couple of the larger stack variables in order to
reduce the stack footprint below 1024. gcc-4.8

security/selinux/ss/services.c: In function 'security_load_policy':
security/selinux/ss/services.c:1964:1: warning: the frame size of 1104 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 }

Also silence a couple of checkpatch warnings at the same time.

WARNING: sizeof policydb should be sizeof(policydb)
+	memcpy(oldpolicydb, &policydb, sizeof policydb);

WARNING: sizeof policydb should be sizeof(policydb)
+	memcpy(&policydb, newpolicydb, sizeof policydb);

Cc: Stephen Smalley <sds@tycho.nsa.gov>
Cc: James Morris <james.l.morris@oracle.com>
Cc: Eric Paris <eparis@parisplace.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2018-03-19 18:58:23 +00:00
..
apparmor fix apparmor dereferencing potentially freed dentry, sanitize __d_path() API 2011-12-06 23:57:18 -05:00
integrity evm: check xattr value length and type in evm_inode_setxattr() 2014-12-14 16:23:52 +00:00
keys KEYS: add missing permission check for request_key() destination 2018-01-01 20:51:05 +00:00
selinux SELinux: security_load_policy: Silence frame-larger-than warning 2018-03-19 18:58:23 +00:00
smack lsm: fix smack_inode_removexattr and xattr_getsecurity memleak 2018-01-01 20:50:56 +00:00
tomoyo TOMOYO: Fix mount flags checking order. 2012-04-13 08:33:49 -07:00
capability.c ->permission() sanitizing: don't pass flags to ->inode_permission() 2011-07-20 01:43:26 -04:00
commoncap.c ptrace: use fsuid, fsgid, effective creds for fs access checks 2017-09-15 18:30:57 +01:00
device_cgroup.c Revert "device_cgroup: fix RCU usage" 2013-01-03 03:26:03 +00:00
inode.c convert get_sb_single() users 2010-10-29 04:16:28 -04:00
Kconfig KPTI: Rename to PAGE_TABLE_ISOLATION 2018-01-07 01:46:54 +00:00
lsm_audit.c LSM: separate LSM_AUDIT_DATA_DENTRY from LSM_AUDIT_DATA_PATH 2011-04-25 18:14:07 -04:00
Makefile integrity: move ima inode integrity data management 2011-07-18 12:29:38 -04:00
min_addr.c mmap_min_addr check CAP_SYS_RAWIO only for write 2010-04-23 08:56:31 +10:00
security.c security: Fix security_old_inode_init_security() when CONFIG_SECURITY is not set 2012-01-03 16:12:19 -08:00