summaryrefslogtreecommitdiffstats
path: root/security/capability.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2010-11-29 21:47:09 +0100
committerEric Paris <eparis@redhat.com>2010-11-30 23:28:57 +0100
commit23bdecb000c806cf4ec52764499a600f7200d7a9 (patch)
treef13a523f6bec22c5e7ec58ea02a4988aefe7c8ac /security/capability.c
parentflex_array: fix flex_array_put_ptr macro to be valid C (diff)
downloadlinux-23bdecb000c806cf4ec52764499a600f7200d7a9.tar.xz
linux-23bdecb000c806cf4ec52764499a600f7200d7a9.zip
selinux: convert type_val_to_struct to flex_array
In rawhide type_val_to_struct will allocate 26848 bytes, an order 3 allocations. While this hasn't been seen to fail it isn't outside the realm of possibiliy on systems with severe memory fragmentation. Convert to flex_array so no allocation will ever be bigger than PAGE_SIZE. Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'security/capability.c')
0 files changed, 0 insertions, 0 deletions