aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r--security/selinux/hooks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 870d24ecc2de..3ba5ce1f4e05 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -3925,6 +3925,8 @@ int selinux_task_prlimit(const struct cred *cred, const struct cred *tcred,
3925{ 3925{
3926 u32 av = 0; 3926 u32 av = 0;
3927 3927
3928 if (!flags)
3929 return 0;
3928 if (flags & LSM_PRLIMIT_WRITE) 3930 if (flags & LSM_PRLIMIT_WRITE)
3929 av |= PROCESS__SETRLIMIT; 3931 av |= PROCESS__SETRLIMIT;
3930 if (flags & LSM_PRLIMIT_READ) 3932 if (flags & LSM_PRLIMIT_READ)