aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zaman <jason@perfinion.com>2017-11-03 01:30:46 +0800
committerJason Zaman <jason@perfinion.com>2017-11-05 14:38:35 +0800
commit8cbd03f7b3ebb7b5a4d45f43816fa98e760a32a5 (patch)
tree0d77dc5a239df8220382287a84805f87ba36e4fd /policy/modules/services/xserver.if
parentmls mcs: Add constraints for key class (diff)
downloadhardened-refpolicy-8cbd03f7b3ebb7b5a4d45f43816fa98e760a32a5.tar.gz
hardened-refpolicy-8cbd03f7b3ebb7b5a4d45f43816fa98e760a32a5.tar.bz2
hardened-refpolicy-8cbd03f7b3ebb7b5a4d45f43816fa98e760a32a5.zip
Add key interfaces and perms
Mostly taken from the fedora rawhide policy
Diffstat (limited to 'policy/modules/services/xserver.if')
-rw-r--r--policy/modules/services/xserver.if18
1 files changed, 18 insertions, 0 deletions
diff --git a/policy/modules/services/xserver.if b/policy/modules/services/xserver.if
index 0718d0164..f08db9315 100644
--- a/policy/modules/services/xserver.if
+++ b/policy/modules/services/xserver.if
@@ -1537,3 +1537,21 @@ interface(`xserver_unconfined',`
typeattribute $1 x_domain;
typeattribute $1 xserver_unconfined_type;
')
+
+########################################
+## <summary>
+## Manage keys for xdm.
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+#
+interface(`xserver_rw_xdm_keys',`
+ gen_require(`
+ type xdm_t;
+ ')
+
+ allow $1 xdm_t:key { read write setattr };
+')