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 1E2FA138CC5 for ; Wed, 25 Mar 2015 16:01:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1F03BE0804; Wed, 25 Mar 2015 16:01:28 +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 4CCC4E0804 for ; Wed, 25 Mar 2015 16:01:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6CB52340988 for ; Wed, 25 Mar 2015 16:01:26 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1345D14845 for ; Wed, 25 Mar 2015 16:01:19 +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: <1427298885.33bf518a1fec1773e47c3431cd749f4c8207d2e4.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next 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: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 33bf518a1fec1773e47c3431cd749f4c8207d2e4 X-VCS-Branch: next Date: Wed, 25 Mar 2015 16:01:19 +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: 3fc0e8a4-6673-4b92-ad0f-be34ed6c407c X-Archives-Hash: 7f4ad39c38df7a886afd987b61cbfb9a commit: 33bf518a1fec1773e47c3431cd749f4c8207d2e4 Author: Jason Zaman perfinion com> AuthorDate: Mon Mar 23 14:55:32 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Wed Mar 25 15:54:45 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=33bf518a alsa: gentoo saves state files in /var/lib/alsa/oss/CardName alsa_read/write_lib have permission on files, add in permission for dirs too since gentoo's init script saves things in subdirs policy/modules/contrib/alsa.if | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/policy/modules/contrib/alsa.if b/policy/modules/contrib/alsa.if index 8f25112..38bbf80 100644 --- a/policy/modules/contrib/alsa.if +++ b/policy/modules/contrib/alsa.if @@ -255,6 +255,11 @@ interface(`alsa_read_lib',` files_search_var_lib($1) read_files_pattern($1, alsa_var_lib_t, alsa_var_lib_t) + + ifdef(`distro_gentoo',` + # gentoo saves the files in /var/lib/alsa/oss/CardName + list_dirs_pattern($1, alsa_var_lib_t, alsa_var_lib_t) + ') ') ######################################### @@ -274,6 +279,11 @@ interface(`alsa_write_lib',` files_search_var_lib($1) write_files_pattern($1, alsa_var_lib_t, alsa_var_lib_t) + + ifdef(`distro_gentoo',` + # gentoo saves the files in /var/lib/alsa/oss/CardName + rw_dirs_pattern($1, alsa_var_lib_t, alsa_var_lib_t) + ') ') # Gentoo specific for now, but cannot use ifdef distro_gentoo in an interface