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 C14B313827A for ; Thu, 26 May 2016 19:29:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F0A414232; Thu, 26 May 2016 19:29:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C8DE914232 for ; Thu, 26 May 2016 19:28:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A1D12340B7A for ; Thu, 26 May 2016 19:28:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C4641FFC for ; Thu, 26 May 2016 19:28:54 +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: <1464288297.96e599e9c8f391c5145f1bd7ffb354bbd745050b.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/pulseaudio.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 96e599e9c8f391c5145f1bd7ffb354bbd745050b X-VCS-Branch: next Date: Thu, 26 May 2016 19:28:54 +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: 07591ff9-fade-4e8a-bdd2-49ab13c96fb9 X-Archives-Hash: 69d8087d76a9f50cacd1b86882a16c3f commit: 96e599e9c8f391c5145f1bd7ffb354bbd745050b Author: Jason Zaman perfinion com> AuthorDate: Fri May 13 15:12:50 2016 +0000 Commit: Jason Zaman gentoo org> CommitDate: Thu May 26 18:44:57 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=96e599e9 pulseaudio: fcontext and filetrans for /run/user/ID/pulse/ policy/modules/contrib/pulseaudio.te | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/policy/modules/contrib/pulseaudio.te b/policy/modules/contrib/pulseaudio.te index 9b8d84e..5e39ebd 100644 --- a/policy/modules/contrib/pulseaudio.te +++ b/policy/modules/contrib/pulseaudio.te @@ -56,6 +56,7 @@ manage_dirs_pattern(pulseaudio_t, pulseaudio_tmp_t, pulseaudio_tmp_t) manage_files_pattern(pulseaudio_t, pulseaudio_tmp_t, pulseaudio_tmp_t) manage_sock_files_pattern(pulseaudio_t, pulseaudio_tmp_t, pulseaudio_tmp_t) files_tmp_filetrans(pulseaudio_t, pulseaudio_tmp_t, dir) +userdom_user_runtime_dir_filetrans(pulseaudio_t, pulseaudio_tmp_t, dir) userdom_user_tmp_filetrans(pulseaudio_t, pulseaudio_tmp_t, file, "autospawn.lock") userdom_user_tmp_filetrans(pulseaudio_t, pulseaudio_tmp_t, file, "pid") userdom_user_tmp_filetrans(pulseaudio_t, pulseaudio_tmp_t, sock_file, "dbus-socket") @@ -203,8 +204,9 @@ optional_policy(` # allow pulseaudio_client self:unix_dgram_socket sendto; +allow pulseaudio_client self:process signull; -allow pulseaudio_client pulseaudio_client:process signull; +allow pulseaudio_client pulseaudio_tmp_t:dir list_dir_perms; read_files_pattern(pulseaudio_client, { pulseaudio_tmpfsfile pulseaudio_tmpfs_t }, { pulseaudio_tmpfsfile pulseaudio_tmpfs_t }) delete_files_pattern(pulseaudio_client, pulseaudio_tmpfsfile, pulseaudio_tmpfsfile) @@ -228,6 +230,7 @@ pulseaudio_home_filetrans_pulseaudio_home(pulseaudio_client, file, ".pulse-cooki pulseaudio_signull(pulseaudio_client) userdom_read_user_tmpfs_files(pulseaudio_client) +userdom_user_runtime_dir_filetrans(pulseaudio_client, pulseaudio_tmp_t, dir, "pulse") # userdom_delete_user_tmpfs_files(pulseaudio_client) tunable_policy(`use_nfs_home_dirs',`