From: Russell Coker <russell@coker.com.au>
To: "selinux-refpolicy@vger.kernel.org" <selinux-refpolicy@vger.kernel.org>
Subject: pulseaudio patch
Date: Wed, 12 Feb 2020 13:38:47 +1100 [thread overview]
Message-ID: <1995964.CuLPjsHtsC@xev> (raw)
[-- Attachment #1: Type: text/plain, Size: 175 bytes --]
The attached patch has a few small changes needed for pulseaudio on systemd.
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/
[-- Attachment #2: pulseaudio.diff --]
[-- Type: text/x-patch, Size: 1700 bytes --]
Index: refpolicy-2.20200209/policy/modules/apps/pulseaudio.te
===================================================================
--- refpolicy-2.20200209.orig/policy/modules/apps/pulseaudio.te
+++ refpolicy-2.20200209/policy/modules/apps/pulseaudio.te
@@ -92,6 +92,8 @@ files_pid_filetrans(pulseaudio_t, pulsea
manage_dirs_pattern(pulseaudio_t, pulseaudio_xdg_config_t, pulseaudio_xdg_config_t)
manage_files_pattern(pulseaudio_t, pulseaudio_xdg_config_t, pulseaudio_xdg_config_t)
+allow pulseaudio_t pulseaudio_xdg_config_t:file map;
+
xdg_config_filetrans(pulseaudio_t, pulseaudio_xdg_config_t, dir, "pulse")
allow pulseaudio_t pulseaudio_client:process signull;
@@ -146,7 +148,7 @@ miscfiles_read_localization(pulseaudio_t
seutil_read_config(pulseaudio_t)
-userdom_read_user_tmpfs_files(pulseaudio_t)
+userdom_rw_user_tmpfs_files(pulseaudio_t)
userdom_map_user_tmpfs_files(pulseaudio_t)
userdom_delete_user_tmpfs_files(pulseaudio_t)
userdom_search_user_home_dirs(pulseaudio_t)
@@ -155,6 +157,7 @@ userdom_search_user_home_content(pulseau
userdom_manage_user_tmp_dirs(pulseaudio_t)
userdom_manage_user_tmp_files(pulseaudio_t)
userdom_manage_user_tmp_sockets(pulseaudio_t)
+userdom_write_all_user_runtime_named_sockets(pulseaudio_t)
tunable_policy(`pulseaudio_execmem',`
allow pulseaudio_t self:process execmem;
@@ -224,6 +227,13 @@ optional_policy(`
')
optional_policy(`
+ # for /run/systemd/seats and /run/systemd/sessions
+ systemd_read_logind_sessions_files(pulseaudio_t)
+ # for /run/systemd/users/$PID
+ systemd_read_logind_pids(pulseaudio_t)
+')
+
+optional_policy(`
udev_read_pid_files(pulseaudio_t)
udev_read_state(pulseaudio_t)
udev_read_db(pulseaudio_t)
next reply other threads:[~2020-02-12 2:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-12 2:38 Russell Coker [this message]
2020-02-16 15:33 ` pulseaudio patch Chris PeBenito
-- strict thread matches above, loose matches on Subject: below --
2020-04-05 8:44 Russell Coker
2020-04-09 13:39 ` Chris PeBenito
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1995964.CuLPjsHtsC@xev \
--to=russell@coker.com.au \
--cc=selinux-refpolicy@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.