From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-885015-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 116B513829C for <garchives@archives.gentoo.org>; Thu, 2 Jun 2016 06:32:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 21BCA1427B; Thu, 2 Jun 2016 06:32:19 +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 B717914241 for <gentoo-commits@lists.gentoo.org>; Thu, 2 Jun 2016 06:32:16 +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 AF113340CCA for <gentoo-commits@lists.gentoo.org>; Thu, 2 Jun 2016 06:32:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 25D5D209C for <gentoo-commits@lists.gentoo.org>; Thu, 2 Jun 2016 06:32:12 +0000 (UTC) From: "Jason Zaman" <perfinion@gentoo.org> 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" <perfinion@gentoo.org> Message-ID: <1464805861.e830cfda08709f50e13176b45de8c801cb155cff.perfinion@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/consolekit.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: e830cfda08709f50e13176b45de8c801cb155cff X-VCS-Branch: master Date: Thu, 2 Jun 2016 06:32:12 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 54655ed6-371d-4fc3-bfb6-af1cd050042d X-Archives-Hash: 9cb472741d2889898f04430174bf15a0 commit: e830cfda08709f50e13176b45de8c801cb155cff Author: Jason Zaman <jason <AT> perfinion <DOT> com> AuthorDate: Wed Jun 1 16:12:38 2016 +0000 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> CommitDate: Wed Jun 1 18:31:01 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=e830cfda consolekit: allow managing user runtime policy/modules/contrib/consolekit.te | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/policy/modules/contrib/consolekit.te b/policy/modules/contrib/consolekit.te index cd02890..e02e105 100644 --- a/policy/modules/contrib/consolekit.te +++ b/policy/modules/contrib/consolekit.te @@ -24,8 +24,8 @@ init_daemon_pid_file(consolekit_var_run_t, dir, "ConsoleKit") # Local policy # -allow consolekit_t self:capability { chown setuid setgid sys_tty_config dac_override sys_nice sys_ptrace }; -allow consolekit_t self:process { getsched signal }; +allow consolekit_t self:capability { chown fowner setuid setgid sys_admin sys_tty_config dac_override sys_nice sys_ptrace }; +allow consolekit_t self:process { getsched signal setfscreate }; allow consolekit_t self:fifo_file rw_fifo_file_perms; allow consolekit_t self:unix_stream_socket { accept listen }; @@ -61,9 +61,15 @@ files_read_var_lib_files(consolekit_t) files_search_all_mountpoints(consolekit_t) fs_list_inotifyfs(consolekit_t) +fs_mount_tmpfs(consolekit_t) +fs_unmount_tmpfs(consolekit_t) +fs_relabelfrom_tmpfs(consolekit_t) mcs_ptrace_all(consolekit_t) +seutil_libselinux_linked(consolekit_t) +seutil_read_file_contexts(consolekit_t) + term_use_all_terms(consolekit_t) auth_use_nsswitch(consolekit_t) @@ -79,6 +85,12 @@ miscfiles_read_localization(consolekit_t) userdom_dontaudit_read_user_home_content_files(consolekit_t) userdom_read_user_tmp_files(consolekit_t) +userdom_manage_user_runtime_root_dirs(consolekit_t) +userdom_manage_user_runtime_dirs(consolekit_t) +userdom_mounton_user_runtime_dirs(consolekit_t) +userdom_relabelto_user_runtime_dirs(consolekit_t) +userdom_pid_filetrans_user_runtime_root(consolekit_t, dir, "user") +userdom_user_runtime_root_filetrans_user_runtime(consolekit_t, dir) tunable_policy(`use_nfs_home_dirs',` fs_read_nfs_files(consolekit_t)