From 8e01054f070c4abd36021e5c1bdd7b409a17b35e Mon Sep 17 00:00:00 2001 From: Dominick Grift Date: Sat, 9 Nov 2013 10:45:16 +0100 Subject: [PATCH] users: calls pulseaudio_role() for restricted xwindows users and staff_t/user_t Signed-off-by: Dominick Grift --- policy/modules/roles/staff.te | 4 ++++ policy/modules/roles/unprivuser.te | 4 ++++ policy/modules/system/userdomain.if | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/policy/modules/roles/staff.te b/policy/modules/roles/staff.te index 0fef1fca2..5fd339b67 100644 --- a/policy/modules/roles/staff.te +++ b/policy/modules/roles/staff.te @@ -82,6 +82,10 @@ ifndef(`distro_redhat',` optional_policy(` gnome_role_template(staff, staff_r, staff_t) ') + + optional_policy(` + pulseaudio_role(staff_r, staff_t) + ') ') optional_policy(` diff --git a/policy/modules/roles/unprivuser.te b/policy/modules/roles/unprivuser.te index 6d77e81c5..acc9ff74c 100644 --- a/policy/modules/roles/unprivuser.te +++ b/policy/modules/roles/unprivuser.te @@ -55,6 +55,10 @@ ifndef(`distro_redhat',` optional_policy(` gnome_role_template(user, user_r, user_t) ') + + optional_policy(` + pulseaudio_role(user_r, user_t) + ') ') optional_policy(` diff --git a/policy/modules/system/userdomain.if b/policy/modules/system/userdomain.if index 77b05dbfd..73678bcc8 100644 --- a/policy/modules/system/userdomain.if +++ b/policy/modules/system/userdomain.if @@ -945,6 +945,10 @@ template(`userdom_restricted_xwindows_user_template',` gnome_role_template($1, $1_r, $1_t) wm_role_template($1, $1_r, $1_t) ') + + optional_policy(` + pulseaudio_role($1_r, $1_t) + ') ') optional_policy(`