From: cpebenito@tresys.com (Christopher J. PeBenito) Date: Mon, 26 Aug 2013 08:57:00 -0400 Subject: [refpolicy] [PATCH 7/7] Alsasound init script writes asound.state file In-Reply-To: <1376765506-28924-8-git-send-email-sven.vermeulen@siphos.be> References: <1376765506-28924-1-git-send-email-sven.vermeulen@siphos.be> <1376765506-28924-8-git-send-email-sven.vermeulen@siphos.be> Message-ID: <521B509C.4000008@tresys.com> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com On 08/17/2013 02:51 PM, Sven Vermeulen wrote: > The alsasound init script writes updates into alsa state files, such as > /var/lib/alsa/asound.state (for storing the ALSA mixer levels at shutdown). > > Signed-off-by: Sven Vermeulen > --- > policy/modules/system/init.te | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te > index a97372a..08dd000 100644 > --- a/policy/modules/system/init.te > +++ b/policy/modules/system/init.te > @@ -578,6 +578,10 @@ ifdef(`distro_suse',` > ') > > optional_policy(` > + alsa_write_lib(initrc_t) > +') > + > +optional_policy(` > amavis_search_lib(initrc_t) > amavis_setattr_pid_files(initrc_t) > ') Shouldn't this be handled by alsa_t? -- Chris PeBenito Tresys Technology, LLC www.tresys.com | oss.tresys.com