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 28D58138CA3 for ; Sat, 9 May 2015 12:24:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 82121E086A; Sat, 9 May 2015 12:24:28 +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 26245E086A for ; Sat, 9 May 2015 12:24:28 +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 B34FD340F56 for ; Sat, 9 May 2015 12:24:26 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 708919CD for ; Sat, 9 May 2015 12:24:24 +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: <1431174139.da19f4dbdc54c44a30ecc218dc1dd01169efe08e.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/salt.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: da19f4dbdc54c44a30ecc218dc1dd01169efe08e X-VCS-Branch: master Date: Sat, 9 May 2015 12:24:24 +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: 226bcd39-a1dc-467d-ba3a-a18029586d3b X-Archives-Hash: 7129102747d84e0170edfbe63b9cc2b1 commit: da19f4dbdc54c44a30ecc218dc1dd01169efe08e Author: Sven Vermeulen siphos be> AuthorDate: Sat May 9 12:22:19 2015 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sat May 9 12:22:19 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=da19f4db Fix bug #549004 - Add /dev/shm support to salt master The salt master daemon now uses /dev/shm for its semaphore definitions. Add in the right salt_master_tmpfs_t type and grant salt_master_t the right set of privileges (manage salt_master_tmpfs_t files as well as interact with tmpfs_t). X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=549004 policy/modules/contrib/salt.te | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/policy/modules/contrib/salt.te b/policy/modules/contrib/salt.te index 4c76ecc..554e927 100644 --- a/policy/modules/contrib/salt.te +++ b/policy/modules/contrib/salt.te @@ -45,6 +45,9 @@ files_type(salt_master_pki_t) type salt_master_tmp_t; files_tmp_file(salt_master_tmp_t) +type salt_master_tmpfs_t; +files_tmpfs_file(salt_master_tmpfs_t) + type salt_master_var_run_t; init_daemon_pid_file(salt_master_var_run_t, file, "salt-master.pid") files_pid_file(salt_master_var_run_t) @@ -140,6 +143,10 @@ files_tmp_filetrans(salt_master_t, salt_master_tmp_t, { file dir }) # libffi, screw you can_exec(salt_master_t, salt_master_tmp_t) +# salt_master_tmpfs_t +allow salt_master_t salt_master_tmpfs_t:file manage_file_perms; +fs_tmpfs_filetrans(salt_master_t, salt_master_tmpfs_t, file) + # salt_master_var_run_t allow salt_master_t salt_master_var_run_t:file manage_file_perms; allow salt_master_t salt_master_var_run_t:sock_file manage_sock_file_perms; @@ -178,6 +185,8 @@ files_dontaudit_search_all_dirs(salt_master_t) files_read_etc_files(salt_master_t) files_read_usr_files(salt_master_t) +fs_getattr_tmpfs(salt_master_t) + getty_use_fds(salt_master_t) miscfiles_read_localization(salt_master_t)