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 B844F138200 for ; Wed, 3 Apr 2013 17:33:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 11118E09D5; Wed, 3 Apr 2013 17:33:25 +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 8A684E099E for ; Wed, 3 Apr 2013 17:33:24 +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 625F333DD92 for ; Wed, 3 Apr 2013 17:33:23 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 02E8AE408E for ; Wed, 3 Apr 2013 17:33:22 +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: <1365009973.4614c42edeb69d4647096d4a99e8f923db974b80.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: 4614c42edeb69d4647096d4a99e8f923db974b80 X-VCS-Branch: master Date: Wed, 3 Apr 2013 17:33:22 +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: 388d4602-b8f2-4b0d-9786-0025df17fdcc X-Archives-Hash: 25c5f87f73ab57d37d1dcbf47853af5e commit: 4614c42edeb69d4647096d4a99e8f923db974b80 Author: Sven Vermeulen siphos be> AuthorDate: Wed Apr 3 17:26:13 2013 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Wed Apr 3 17:26:13 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=4614c42e Partial fix bug #463222 - Mark .tmux.conf as screen_home_t --- policy/modules/contrib/screen.fc | 4 ++++ policy/modules/contrib/screen.if | 4 ++++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/policy/modules/contrib/screen.fc b/policy/modules/contrib/screen.fc index ac04d27..5956221 100644 --- a/policy/modules/contrib/screen.fc +++ b/policy/modules/contrib/screen.fc @@ -6,3 +6,7 @@ HOME_DIR/\.screenrc -- gen_context(system_u:object_r:screen_home_t,s0) /var/run/screen(/.*)? gen_context(system_u:object_r:screen_var_run_t,s0) /var/run/tmux(/.*)? gen_context(system_u:object_r:screen_var_run_t,s0) + +ifdef(`distro_gentoo',` +HOME_DIR/\.tmux\.conf -- gen_context(system_u:object_r:screen_home_t,s0) +') diff --git a/policy/modules/contrib/screen.if b/policy/modules/contrib/screen.if index c21ddcc..7bb92d5 100644 --- a/policy/modules/contrib/screen.if +++ b/policy/modules/contrib/screen.if @@ -86,4 +86,8 @@ template(`screen_role_template',` tunable_policy(`use_nfs_home_dirs',` fs_nfs_domtrans($1_screen_t, $3) ') + + ifdef(`distro_gentoo',` + userdom_user_home_dir_filetrans($3, screen_home_t, file, ".tmux.conf") + ') ')