From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CC221138330 for ; Mon, 3 Oct 2016 06:21:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 41D7D21C0AA; Mon, 3 Oct 2016 06:21:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2738E21C0AA for ; Mon, 3 Oct 2016 06:21:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0A5C5340E10 for ; Mon, 3 Oct 2016 06:20:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 971DD24B3 for ; Mon, 3 Oct 2016 06:20:52 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1475474792.227d4173a648167242aef6f7243eda3788c88304.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/pulseaudio.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 227d4173a648167242aef6f7243eda3788c88304 X-VCS-Branch: master Date: Mon, 3 Oct 2016 06:20:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 84babac1-36f0-4a87-a63e-5b734cea29a7 X-Archives-Hash: d713cbb27a98fde0a18758443d3d6641 Message-ID: <20161003062052.ktv4PeB6BhlziDJEYFvYjrod95K9QKiEyv8Bm_dkCaQ@z> commit: 227d4173a648167242aef6f7243eda3788c88304 Author: Chris PeBenito ieee org> AuthorDate: Sun Sep 11 13:01:55 2016 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Oct 3 06:06:32 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=227d4173 pulseaudio: Move interface definitions. policy/modules/contrib/pulseaudio.if | 76 ++++++++++++++++++------------------ 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/policy/modules/contrib/pulseaudio.if b/policy/modules/contrib/pulseaudio.if index 11238f2..af0f950 100644 --- a/policy/modules/contrib/pulseaudio.if +++ b/policy/modules/contrib/pulseaudio.if @@ -146,6 +146,44 @@ interface(`pulseaudio_signull',` allow $1 pulseaudio_t:process signull; ') +######################################## +## +## Use file descriptors for +## pulseaudio. +## +## +## +## Domain allowed access. +## +## +# +interface(`pulseaudio_use_fds',` + gen_require(` + type pulseaudio_t; + ') + + allow $1 pulseaudio_t:fd use; +') + +######################################## +## +## Do not audit attempts to use the +## file descriptors for pulseaudio. +## +## +## +## Domain allowed access. +## +## +# +interface(`pulseaudio_dontaudit_use_fds',` + gen_require(` + type pulseaudio_t; + ') + + dontaudit $1 pulseaudio_t:fd use; +') + ##################################### ## ## Connect to pulseaudio with a unix @@ -410,41 +448,3 @@ interface(`pulseaudio_rw_tmpfs_files',` fs_search_tmpfs($1) rw_files_pattern($1, pulseaudio_tmpfs_t, pulseaudio_tmpfs_t) ') - -######################################## -## -## Use file descriptors for -## pulseaudio. -## -## -## -## Domain allowed access. -## -## -# -interface(`pulseaudio_use_fds',` - gen_require(` - type pulseaudio_t; - ') - - allow $1 pulseaudio_t:fd use; -') - -######################################## -## -## Do not audit attempts to use the -## file descriptors for pulseaudio. -## -## -## -## Domain allowed access. -## -## -# -interface(`pulseaudio_dontaudit_use_fds',` - gen_require(` - type pulseaudio_t; - ') - - dontaudit $1 pulseaudio_t:fd use; -')