From: dominick.grift@gmail.com (Dominick Grift) Date: Wed, 17 Apr 2013 18:41:34 +0200 Subject: [refpolicy] [PATCH 11/13] Support ~/.tmux.conf as tmux configuration file In-Reply-To: <1365669283-22005-12-git-send-email-sven.vermeulen@siphos.be> References: <1365669283-22005-1-git-send-email-sven.vermeulen@siphos.be> <1365669283-22005-12-git-send-email-sven.vermeulen@siphos.be> Message-ID: <1366216894.2803.46.camel@x220.localdomain> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com On Thu, 2013-04-11 at 10:34 +0200, Sven Vermeulen wrote: > 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 Merged, thanks > --- > 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)