aboutsummaryrefslogtreecommitdiffstats
path: root/runas.te
diff options
context:
space:
mode:
Diffstat (limited to 'runas.te')
-rw-r--r--runas.te8
1 files changed, 8 insertions, 0 deletions
diff --git a/runas.te b/runas.te
index 97f31f7..e51515d 100644
--- a/runas.te
+++ b/runas.te
@@ -25,3 +25,11 @@ security_access_policy(runas)
selinux_check_context(runas) # validate context
allow runas self:process setcurrent;
allow runas non_system_app_set:process dyntransition; # setcon
+
+###
+### neverallow rules
+###
+
+# run-as cannot have capabilities other than CAP_SETUID and CAP_SETGID
+neverallow runas self:capability ~{ setuid setgid };
+neverallow runas self:capability2 *;