提交 4298555d 编写于 作者: C Corentin LABBE 提交者: Paul Moore

selinux: fix build warning

This patch make selinux_task_prlimit() static since it is not used
anywhere else.
This fix the following build warning:
security/selinux/hooks.c:3981:5: warning: no previous prototype for 'selinux_task_prlimit' [-Wmissing-prototypes]
Signed-off-by: NCorentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: NStephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: NPaul Moore <paul@paul-moore.com>
上级 c0d4f464
...@@ -3970,7 +3970,7 @@ static int selinux_task_getioprio(struct task_struct *p) ...@@ -3970,7 +3970,7 @@ static int selinux_task_getioprio(struct task_struct *p)
PROCESS__GETSCHED, NULL); PROCESS__GETSCHED, NULL);
} }
int selinux_task_prlimit(const struct cred *cred, const struct cred *tcred, static int selinux_task_prlimit(const struct cred *cred, const struct cred *tcred,
unsigned int flags) unsigned int flags)
{ {
u32 av = 0; u32 av = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册