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 693551381F3 for ; Wed, 17 Apr 2013 17:50:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 35A7EE0AC6; Wed, 17 Apr 2013 17:50:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 77113E0ABE for ; Wed, 17 Apr 2013 17:50:18 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 791B533DE95 for ; Wed, 17 Apr 2013 17:50:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 226DDE440F for ; Wed, 17 Apr 2013 17:50:15 +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: <1366220612.d9453ff0df39a28ee259a447bdecddfe51b8ae26.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/screen.fc policy/modules/contrib/screen.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: d9453ff0df39a28ee259a447bdecddfe51b8ae26 X-VCS-Branch: master Date: Wed, 17 Apr 2013 17:50:15 +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: 8b17825b-20cb-4d2d-a529-7218833f71d8 X-Archives-Hash: 1154ee95ddc911b0a5dc92badabee57d commit: d9453ff0df39a28ee259a447bdecddfe51b8ae26 Author: Sven Vermeulen siphos be> AuthorDate: Thu Apr 11 08:34:41 2013 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Wed Apr 17 17:43:32 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=d9453ff0 Support ~/.tmux.conf as tmux configuration file 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 siphos.be> --- policy/modules/contrib/screen.fc | 1 + policy/modules/contrib/screen.if | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/policy/modules/contrib/screen.fc b/policy/modules/contrib/screen.fc index 5956221..d5fb7d5 100644 --- a/policy/modules/contrib/screen.fc +++ b/policy/modules/contrib/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/policy/modules/contrib/screen.if b/policy/modules/contrib/screen.if index 7bb92d5..c7ffb21 100644 --- a/policy/modules/contrib/screen.if +++ b/policy/modules/contrib/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)