From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 35AE81392EF for ; Sat, 5 Jul 2014 17:17:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 89E48E0815; Sat, 5 Jul 2014 17:17:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2DB40E0815 for ; Sat, 5 Jul 2014 17:17:51 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5086533FEC8 for ; Sat, 5 Jul 2014 17:17:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 66526193E5 for ; Sat, 5 Jul 2014 17:17:48 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1404578760.0f31533b6763859bc8c27a82530671130633dadc.swift@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/alsa.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 0f31533b6763859bc8c27a82530671130633dadc X-VCS-Branch: master Date: Sat, 5 Jul 2014 17:17:48 +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: 78022f12-c5f7-442e-bf48-62abc0aab3d2 X-Archives-Hash: b72c3539c22a5c02317d3fc117024e21 commit: 0f31533b6763859bc8c27a82530671130633dadc Author: Sven Vermeulen siphos be> AuthorDate: Sat Jul 5 16:46:00 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sat Jul 5 16:46:00 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=0f31533b Move gentoo specifics downwards --- policy/modules/contrib/alsa.if | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/policy/modules/contrib/alsa.if b/policy/modules/contrib/alsa.if index 29806ad..8f25112 100644 --- a/policy/modules/contrib/alsa.if +++ b/policy/modules/contrib/alsa.if @@ -257,6 +257,25 @@ interface(`alsa_read_lib',` read_files_pattern($1, alsa_var_lib_t, alsa_var_lib_t) ') +######################################### +## +## Write Alsa lib files. +## +## +## +## Domain allowed access. +## +## +# +interface(`alsa_write_lib',` + gen_require(` + type alsa_var_lib_t; + ') + + files_search_var_lib($1) + write_files_pattern($1, alsa_var_lib_t, alsa_var_lib_t) +') + # Gentoo specific for now, but cannot use ifdef distro_gentoo in an interface # alsa_domain - see http://oss.tresys.com/pipermail/refpolicy/2014-March/007029.html @@ -287,21 +306,4 @@ interface(`alsa_domain',` typeattribute $2 alsatmpfsfile; ') -######################################## -## -## Write Alsa lib files. -## -## -## -## Domain allowed access. -## -## -# -interface(`alsa_write_lib',` - gen_require(` - type alsa_var_lib_t; - ') - files_search_var_lib($1) - write_files_pattern($1, alsa_var_lib_t, alsa_var_lib_t) -')