aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorTim Gardner <[email protected]>2013-11-14 22:04:51 +0000
committerPaul Moore <[email protected]>2013-11-19 22:35:18 +0000
commitb5495b4217d3fa64deac479db83dbede149af7d8 (patch)
tree00056ecd7fd8833d199203178e9e098cbb58d651 /security/selinux/hooks.c
parentSELinux: Update policy version to support constraints info (diff)
downloadkernel-b5495b4217d3fa64deac479db83dbede149af7d8.tar.gz
kernel-b5495b4217d3fa64deac479db83dbede149af7d8.zip
SELinux: security_load_policy: Silence frame-larger-than warning
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 <[email protected]> Cc: James Morris <[email protected]> Cc: Eric Paris <[email protected]> Signed-off-by: Tim Gardner <[email protected]> Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions