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 1645A138247 for ; Mon, 11 Nov 2013 13:45:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E2D4EE0BB1; 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 DFBC2E0BA8 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 024D633F15C 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 B0BD4E54CB 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: <1384177425.72dc48a79ab4fc6c06813c142fec78891228e1e1.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.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 72dc48a79ab4fc6c06813c142fec78891228e1e1 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: 84289938-ec35-4ec8-ae9f-cb9c1444d10b X-Archives-Hash: cc04a0b0f0698969ac149d5b9a8759ec commit: 72dc48a79ab4fc6c06813c142fec78891228e1e1 Author: Dominick Grift gmail com> AuthorDate: Sun Sep 29 16:56:32 2013 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Mon Nov 11 13:43:45 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=72dc48a7 firewalld: interfaces created for iptables Signed-off-by: Dominick Grift gmail.com> --- policy/modules/contrib/firewalld.if | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/policy/modules/contrib/firewalld.if b/policy/modules/contrib/firewalld.if index 5cf6ac6..c62c567 100644 --- a/policy/modules/contrib/firewalld.if +++ b/policy/modules/contrib/firewalld.if @@ -2,6 +2,25 @@ ######################################## ## +## Read firewalld configuration files. +## +## +## +## Domain allowed access. +## +## +# +interface(`firewalld_read_config_files',` + gen_require(` + type firewalld_etc_rw_t; + ') + + files_search_etc($1) + read_files_pattern($1, firewalld_etc_rw_t, firewalld_etc_rw_t) +') + +######################################## +## ## Send and receive messages from ## firewalld over dbus. ## @@ -23,6 +42,25 @@ interface(`firewalld_dbus_chat',` ######################################## ## +## Do not audit attempts to read, snd +## write firewalld temporary files. +## +## +## +## Domain to not audit. +## +## +# +interface(`firewalld_dontaudit_rw_tmp_files',` + gen_require(` + type firewalld_tmp_t; + ') + + dontaudit $1 firewalld_tmp_t:file { read write }; +') + +######################################## +## ## All of the rules required to ## administrate an firewalld environment. ##