commit: da19f4dbdc54c44a30ecc218dc1dd01169efe08e Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> AuthorDate: Sat May 9 12:22:19 2015 +0000 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> 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)