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 B9F8E1381F3 for ; Wed, 25 Sep 2013 09:49:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 11521E0D62; Wed, 25 Sep 2013 09:49:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3BDC5E0D5B for ; Wed, 25 Sep 2013 09:49:40 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 481B333ED62 for ; Wed, 25 Sep 2013 09:49:39 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 35A71E5467 for ; Wed, 25 Sep 2013 09:49:37 +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: <1380102155.7e400cb31a04dd642b0387c2b6976f60873d7f4f.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.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 7e400cb31a04dd642b0387c2b6976f60873d7f4f X-VCS-Branch: master Date: Wed, 25 Sep 2013 09:49:37 +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: 1a2c2944-cf04-460b-b812-2f9b1edecc69 X-Archives-Hash: 0f80d239636df4d039247addb48a1fc2 commit: 7e400cb31a04dd642b0387c2b6976f60873d7f4f Author: Dominick Grift gmail com> AuthorDate: Mon Sep 23 13:31:36 2013 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Wed Sep 25 09:42:35 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=7e400cb3 alsa: alsactl listing /dev/shm alsa: alsactl reading /dev/urandom alsa: alsactl getting attributes of devtmpfs / (/dev) alsa: alsactl maintains a pulseaudio tmpfs file Signed-off-by: Dominick Grift gmail.com> --- policy/modules/contrib/alsa.te | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/policy/modules/contrib/alsa.te b/policy/modules/contrib/alsa.te index 4056063..db4a986 100644 --- a/policy/modules/contrib/alsa.te +++ b/policy/modules/contrib/alsa.te @@ -18,6 +18,10 @@ files_config_file(alsa_etc_rw_t) type alsa_tmp_t; files_tmp_file(alsa_tmp_t) +type alsa_tmpfs_t; +files_tmpfs_file(alsa_tmpfs_t) +pulseaudio_tmpfs_content(alsa_tmpfs_t) + type alsa_var_lib_t; files_type(alsa_var_lib_t) @@ -48,6 +52,9 @@ manage_files_pattern(alsa_t, alsa_tmp_t, alsa_tmp_t) files_tmp_filetrans(alsa_t, alsa_tmp_t, { dir file }) userdom_user_tmp_filetrans(alsa_t, alsa_tmp_t, { dir file }) +allow alsa_t alsa_tmpfs_t:file manage_file_perms; +fs_tmpfs_filetrans(alsa_t, alsa_tmpfs_t, file) + manage_dirs_pattern(alsa_t, alsa_var_lib_t, alsa_var_lib_t) manage_files_pattern(alsa_t, alsa_var_lib_t, alsa_var_lib_t) @@ -55,13 +62,17 @@ kernel_read_system_state(alsa_t) corecmd_exec_bin(alsa_t) +dev_getattr_fs(alsa_t) dev_read_sound(alsa_t) dev_read_sysfs(alsa_t) +dev_read_urand(alsa_t) dev_write_sound(alsa_t) files_read_usr_files(alsa_t) files_search_var_lib(alsa_t) +fs_list_tmpfs(alsa_t) + term_dontaudit_use_console(alsa_t) term_dontaudit_use_generic_ptys(alsa_t) term_dontaudit_use_all_ptys(alsa_t)