aboutsummaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authorTim Gardner <tim.gardner@canonical.com>2013-11-14 15:04:51 -0700
committerMoyster <oysterized@gmail.com>2019-07-06 11:52:38 +0200
commitb2a0c241b512de170e57945451dfb7961d297d5c (patch)
tree3cd5988d3d8b087577537b27f2d416f83dc976ba /Android.mk
parenteef15de512e71e02198ec2775f91232e2dcf4e4c (diff)
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); Change-Id: Ic732254e35b9b8748a601040f0014071c4f730d8 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>
Diffstat (limited to 'Android.mk')
0 files changed, 0 insertions, 0 deletions