aboutsummaryrefslogtreecommitdiffstats
path: root/security/smack/smack_access.c
diff options
context:
space:
mode:
authorKonstantin Khlebnikov <k.khlebnikov@samsung.com>2014-08-07 12:52:49 -0400
committerCasey Schaufler <casey@schaufler-ca.com>2014-08-08 17:51:19 -0400
commitda1b63566c469bf3e2b24182114422e16b1aa34c (patch)
tree035aeda479dd9c497de381a21837c6167cf241c6 /security/smack/smack_access.c
parentb862e561bad6372872f5bf98d95f4131d265b110 (diff)
Smack: remove unneeded NULL-termination from securtity label
Values of extended attributes are stored as binary blobs. NULL-termination of them isn't required. It just wastes disk space and confuses command-line tools like getfattr because they have to print that zero byte at the end. This patch removes terminating zero byte from initial security label in smack_inode_init_security and cuts it out in function smack_inode_getsecurity which is used by syscall getxattr. This change seems completely safe, because function smk_parse_smack ignores everything after first zero byte. Signed-off-by: Konstantin Khlebnikov <k.khlebnikov@samsung.com>
Diffstat (limited to 'security/smack/smack_access.c')
0 files changed, 0 insertions, 0 deletions