smackfs load append mode fix
Subsystems (2)
Casey Schaufler
maintainerPATCH 1/1 smackfs load append mode fix
From: Casey Schaufler <[email protected]>
Given just how hard it is to find the code that uses MAY_APPEND it's probably not a big surprise that this went unnoticed for so long. The Smack rules loading code is incorrectly setting the MAY_READ bit when MAY_APPEND is requested.
Signed-off-by Casey Schaufler <[email protected]>
---
security/smack/smackfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
security/smack/smackfs.c +0 -0
@@ -334,7 +334,7 @@ static ssize_t smk_write_load(struct fil
break; case 'a': case 'A': - rule.smk_access |= MAY_READ; + rule.smk_access |= MAY_APPEND; break; default: goto out;