mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 23:20:05 +00:00
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)>
This commit is contained in:
parent
16014d8750
commit
d86b2b61d4
@ -1514,7 +1514,7 @@ static ssize_t smk_write_access(struct file *file, const char __user *buf,
|
|||||||
data[0] = res == 0 ? '1' : '0';
|
data[0] = res == 0 ? '1' : '0';
|
||||||
data[1] = '\0';
|
data[1] = '\0';
|
||||||
|
|
||||||
simple_transaction_set(file, 1);
|
simple_transaction_set(file, 2);
|
||||||
return SMK_LOADLEN;
|
return SMK_LOADLEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user