selinux: fix build warning
authorCorentin LABBE <clabbe.montjoie@gmail.com>
Wed, 4 Oct 2017 18:32:18 +0000 (20:32 +0200)
committerPaul Moore <paul@paul-moore.com>
Wed, 4 Oct 2017 20:32:42 +0000 (16:32 -0400)
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: Corentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c

index 46fc649ca8866d6f4c52ff27d442bed257dbdad1..2dd4dd6bdbc16346cd00f50cf31e04844e81305f 100644 (file)
@@ -3970,8 +3970,8 @@ static int selinux_task_getioprio(struct task_struct *p)
                            PROCESS__GETSCHED, NULL);
 }
 
-int selinux_task_prlimit(const struct cred *cred, const struct cred *tcred,
-                        unsigned int flags)
+static int selinux_task_prlimit(const struct cred *cred, const struct cred *tcred,
+                               unsigned int flags)
 {
        u32 av = 0;