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 50A6C138200 for ; Wed, 17 Apr 2013 17:50:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D9121E0AE6; Wed, 17 Apr 2013 17:50:34 +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 60FEAE0AE6 for ; Wed, 17 Apr 2013 17:50: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 6D8F633DE8F for ; Wed, 17 Apr 2013 17:50:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 6AB13E4306 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: <1366220616.68a52460d5a7edf53e6a71d332c981d4866278fb.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.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 68a52460d5a7edf53e6a71d332c981d4866278fb 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: f070dd55-a4e5-4599-a2ef-167e64116677 X-Archives-Hash: 50093a92df2d5c4e32e7f3254eee23db commit: 68a52460d5a7edf53e6a71d332c981d4866278fb Author: Sven Vermeulen siphos be> AuthorDate: Thu Apr 11 08:34:42 2013 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Wed Apr 17 17:43:36 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=68a52460 Support tmux control socket The tmux application places its control socket in /tmp/tmux-*. Introduce a transition from screen_tmp_t (the /tmp/tmux-* directory) towards screen_var_run_t for socket files. Signed-off-by: Sven Vermeulen siphos.be> --- policy/modules/contrib/screen.te | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/policy/modules/contrib/screen.te b/policy/modules/contrib/screen.te index aacdbfc..90185dc 100644 --- a/policy/modules/contrib/screen.te +++ b/policy/modules/contrib/screen.te @@ -38,12 +38,13 @@ allow screen_domain self:process signal_perms; allow screen_domain self:fd use; allow screen_domain self:fifo_file rw_fifo_file_perms; allow screen_domain self:tcp_socket { accept listen }; -allow screen_domain self:unix_stream_socket connectto; +allow screen_domain self:unix_stream_socket { accept connectto listen }; manage_dirs_pattern(screen_domain, screen_tmp_t, screen_tmp_t) manage_files_pattern(screen_domain, screen_tmp_t, screen_tmp_t) manage_fifo_files_pattern(screen_domain, screen_tmp_t, screen_tmp_t) files_tmp_filetrans(screen_domain, screen_tmp_t, { file dir }) +filetrans_pattern(screen_domain, screen_tmp_t, screen_var_run_t, sock_file) manage_fifo_files_pattern(screen_domain, screen_var_run_t, screen_var_run_t) manage_dirs_pattern(screen_domain, screen_var_run_t, screen_var_run_t)