“d02716f3b0374294b3ee21e8951c7bf92f0f4108”上不存在“...kernel/git@gitcode.net:paddlepaddle/Paddle-Lite.git”
提交 152a649b 编写于 作者: C Casey Schaufler 提交者: Linus Torvalds

smackfs load append mode fix

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: NCasey Schaufler <casey@schaufler-ca.com>
Reviewed-by: NJames Morris <jmorris@namei.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 e4a7ca29
...@@ -334,7 +334,7 @@ static ssize_t smk_write_load(struct file *file, const char __user *buf, ...@@ -334,7 +334,7 @@ static ssize_t smk_write_load(struct file *file, const char __user *buf,
break; break;
case 'a': case 'a':
case 'A': case 'A':
rule.smk_access |= MAY_READ; rule.smk_access |= MAY_APPEND;
break; break;
default: default:
goto out; goto out;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册