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 46652138247 for ; Mon, 11 Nov 2013 13:45:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 907F5E0BA2; Mon, 11 Nov 2013 13:45:56 +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 BEDBAE0BA2 for ; Mon, 11 Nov 2013 13:45:55 +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 DD90C33F128 for ; Mon, 11 Nov 2013 13:45:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 90432E54CA for ; Mon, 11 Nov 2013 13:45:52 +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: <1384177423.0fd8e6e812723212e1af6fb5f893e85d35f2cb31.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/firewalld.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 0fd8e6e812723212e1af6fb5f893e85d35f2cb31 X-VCS-Branch: master Date: Mon, 11 Nov 2013 13:45:52 +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: b5872158-1727-4e84-bf4c-e459f2cfcfdc X-Archives-Hash: e88ae57a317b196818857b51a31d376b commit: 0fd8e6e812723212e1af6fb5f893e85d35f2cb31 Author: Dominick Grift gmail com> AuthorDate: Sun Sep 29 16:50:30 2013 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Mon Nov 11 13:43:43 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=0fd8e6e8 firewalld: various fixes that i borrowed from Fedora but that also apply to Debian (confirmed) Signed-off-by: Dominick Grift gmail.com> --- policy/modules/contrib/firewalld.te | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/policy/modules/contrib/firewalld.te b/policy/modules/contrib/firewalld.te index 1628a6d..7ac9b31 100644 --- a/policy/modules/contrib/firewalld.te +++ b/policy/modules/contrib/firewalld.te @@ -18,6 +18,9 @@ files_config_file(firewalld_etc_rw_t) type firewalld_var_log_t; logging_log_file(firewalld_var_log_t) +type firewalld_tmp_t; +files_tmp_file(firewalld_tmp_t) + type firewalld_var_run_t; files_pid_file(firewalld_var_run_t) @@ -26,6 +29,7 @@ files_pid_file(firewalld_var_run_t) # Local policy # +allow firewalld_t self:capability { dac_override net_admin }; dontaudit firewalld_t self:capability sys_tty_config; allow firewalld_t self:fifo_file rw_fifo_file_perms; allow firewalld_t self:unix_stream_socket { accept listen }; @@ -40,11 +44,16 @@ allow firewalld_t firewalld_var_log_t:file read_file_perms; allow firewalld_t firewalld_var_log_t:file setattr_file_perms; logging_log_filetrans(firewalld_t, firewalld_var_log_t, file) +manage_files_pattern(firewalld_t, firewalld_tmp_t, firewalld_tmp_t) +files_tmp_filetrans(firewalld_t, firewalld_tmp_t, file) +allow firewalld_t firewalld_tmp_t:file mmap_file_perms; + manage_files_pattern(firewalld_t, firewalld_var_run_t, firewalld_var_run_t) files_pid_filetrans(firewalld_t, firewalld_var_run_t, file) kernel_read_network_state(firewalld_t) kernel_read_system_state(firewalld_t) +kernel_rw_net_sysctls(firewalld_t) corecmd_exec_bin(firewalld_t) corecmd_exec_shell(firewalld_t)