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 2CD8A138CCB for ; Tue, 24 Mar 2015 13:25:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2A46CE097B; Tue, 24 Mar 2015 13:25: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 C08B5E097B for ; Tue, 24 Mar 2015 13:25:25 +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 6869C3408D7 for ; Tue, 24 Mar 2015 13:25:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7F686146F7 for ; Tue, 24 Mar 2015 13:25: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: <1427126509.86e70dc4889211d9f07d7d9e5b233d93a93885b7.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: 86e70dc4889211d9f07d7d9e5b233d93a93885b7 X-VCS-Branch: next Date: Tue, 24 Mar 2015 13:25: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: c602c3e8-b232-4b82-82fa-81c94918a8b9 X-Archives-Hash: d1974412160479a863b9046286616972 commit: 86e70dc4889211d9f07d7d9e5b233d93a93885b7 Author: Jason Zaman perfinion com> AuthorDate: Mon Mar 23 14:55:32 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Mar 23 16:01:49 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=86e70dc4 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