aboutsummaryrefslogtreecommitdiffstats
path: root/security/smack/smackfs.c
diff options
context:
space:
mode:
authorJarkko Sakkinen <jarkko.j.sakkinen@gmail.com>2011-10-18 07:34:28 -0400
committerCasey Schaufler <cschaufler@cschaufler-intel.(none)>2011-10-18 12:02:57 -0400
commitd86b2b61d4dea614d6f319772a90a8f98b55ed67 (patch)
tree8d7647ea8d46630e3a09cd74210b9d4c94b86833 /security/smack/smackfs.c
parent16014d87509e26d6ed6935adbbf437a571fb5870 (diff)
Smack: fix: invalid length set for the result of /smack/access
Forgot to update simple_transaction_set() to take terminator character into account. Signed-off-by: Jarkko Sakkinen <jarkko.j.sakkinen@gmail.com> Signed-off-by: Casey Schaufler <cschaufler@cschaufler-intel.(none)>
Diffstat (limited to 'security/smack/smackfs.c')
-rw-r--r--security/smack/smackfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/smack/smackfs.c b/security/smack/smackfs.c
index 5498c4a2d1a..381eecffe51 100644
--- a/security/smack/smackfs.c
+++ b/security/smack/smackfs.c
@@ -1514,7 +1514,7 @@ static ssize_t smk_write_access(struct file *file, const char __user *buf,
1514 data[0] = res == 0 ? '1' : '0'; 1514 data[0] = res == 0 ? '1' : '0';
1515 data[1] = '\0'; 1515 data[1] = '\0';
1516 1516
1517 simple_transaction_set(file, 1); 1517 simple_transaction_set(file, 2);
1518 return SMK_LOADLEN; 1518 return SMK_LOADLEN;
1519} 1519}
1520 1520