From: sven.vermeulen@siphos.be (Sven Vermeulen) Date: Thu, 11 Apr 2013 10:34:41 +0200 Subject: [refpolicy] [PATCH 11/13] Support ~/.tmux.conf as tmux configuration file In-Reply-To: <1365669283-22005-1-git-send-email-sven.vermeulen@siphos.be> References: <1365669283-22005-1-git-send-email-sven.vermeulen@siphos.be> Message-ID: <1365669283-22005-12-git-send-email-sven.vermeulen@siphos.be> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com The tmux application is similar to screen, and already supported in the policy as such. Include ~/.tmux.conf as screen_home_t and include the proper transition when the file is created. Signed-off-by: Sven Vermeulen --- screen.fc | 1 + screen.if | 1 + 2 files changed, 2 insertions(+) diff --git a/screen.fc b/screen.fc index ac04d27..e7c2cf7 100644 --- a/screen.fc +++ b/screen.fc @@ -1,5 +1,6 @@ HOME_DIR/\.screen(/.*)? gen_context(system_u:object_r:screen_home_t,s0) HOME_DIR/\.screenrc -- gen_context(system_u:object_r:screen_home_t,s0) +HOME_DIR/\.tmux\.conf -- gen_context(system_u:object_r:screen_home_t,s0) /usr/bin/screen -- gen_context(system_u:object_r:screen_exec_t,s0) /usr/bin/tmux -- gen_context(system_u:object_r:screen_exec_t,s0) diff --git a/screen.if b/screen.if index c21ddcc..be5cce2 100644 --- a/screen.if +++ b/screen.if @@ -65,6 +65,7 @@ template(`screen_role_template',` userdom_user_home_dir_filetrans($3, screen_home_t, dir, ".screen") userdom_user_home_dir_filetrans($3, screen_home_t, file, ".screenrc") + userdom_user_home_dir_filetrans($3, screen_home_t, file, ".tmux.conf") manage_dirs_pattern($3, screen_var_run_t, screen_var_run_t) manage_files_pattern($3, screen_var_run_t, screen_var_run_t) -- 1.8.1.5