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 2B5D8138CC5 for ; Mon, 23 Mar 2015 14:58:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6A6AE090F; Mon, 23 Mar 2015 14:58:27 +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 6CB7AE090F for ; Mon, 23 Mar 2015 14:58: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 863E7340A97 for ; Mon, 23 Mar 2015 14:58:26 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 75C64145E8 for ; Mon, 23 Mar 2015 14:58:21 +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: <1427122532.eac63cf59c69b655c2a02c383a36a39d8a107f43.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: eac63cf59c69b655c2a02c383a36a39d8a107f43 X-VCS-Branch: next Date: Mon, 23 Mar 2015 14:58:21 +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: bbc6fd0a-4ecb-4465-b159-d0dfce29697f X-Archives-Hash: 14e741cfd061493d4da9b56b7b5dd568 commit: eac63cf59c69b655c2a02c383a36a39d8a107f43 Author: Jason Zaman perfinion com> AuthorDate: Mon Mar 23 14:55:32 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Mar 23 14:55:32 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=eac63cf5 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..cfd5a6c 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 + write_dirs_pattern($1, alsa_var_lib_t, alsa_var_lib_t) + ') ') # Gentoo specific for now, but cannot use ifdef distro_gentoo in an interface