“8e8ff02c0b61d9b7c15c7996a2eddbedf51a105b”上不存在“arch/m32r/include/asm/ptrace.h”
提交 b97e1452 编写于 作者: J James Morris

ima: sparse fix: make ima_open_policy static

Fixes sparse warning:
security/integrity/ima/ima_fs.c:290:5: warning: symbol 'ima_open_policy' was not declared. Should it be static?
Signed-off-by: NJames Morris <jmorris@namei.org>
上级 cc7db099
...@@ -287,7 +287,7 @@ static atomic_t policy_opencount = ATOMIC_INIT(1); ...@@ -287,7 +287,7 @@ static atomic_t policy_opencount = ATOMIC_INIT(1);
/* /*
* ima_open_policy: sequentialize access to the policy file * ima_open_policy: sequentialize access to the policy file
*/ */
int ima_open_policy(struct inode * inode, struct file * filp) static int ima_open_policy(struct inode * inode, struct file * filp)
{ {
/* No point in being allowed to open it if you aren't going to write */ /* No point in being allowed to open it if you aren't going to write */
if (!(filp->f_flags & O_WRONLY)) if (!(filp->f_flags & O_WRONLY))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册