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 2DAD01381FA for ; Mon, 31 Dec 2012 23:19:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1B72021C0B6; Mon, 31 Dec 2012 23:19:11 +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 633BC21C0B6 for ; Mon, 31 Dec 2012 23:19:10 +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 6C90533D937 for ; Mon, 31 Dec 2012 23:19:09 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id CB2ADE544E for ; Mon, 31 Dec 2012 23:19:06 +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: <1356994670.a1d8e9e415aaa2607c4308cad2013b08ffadd544.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/mozilla.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: a1d8e9e415aaa2607c4308cad2013b08ffadd544 X-VCS-Branch: master Date: Mon, 31 Dec 2012 23:19:06 +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: 70e9f65c-f6b0-4661-9f3d-699a5e37c7a7 X-Archives-Hash: d7a84299f0f17d00578ab35de2894a9a commit: a1d8e9e415aaa2607c4308cad2013b08ffadd544 Author: Sven Vermeulen siphos be> AuthorDate: Mon Dec 31 22:57:50 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Mon Dec 31 22:57:50 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=a1d8e9e4 Support mozilla_dontaudit_use_fds and mozilla_send_dgram_plugin interfaces --- policy/modules/contrib/mozilla.if | 38 +++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/policy/modules/contrib/mozilla.if b/policy/modules/contrib/mozilla.if index 99130b9..ffda45d 100644 --- a/policy/modules/contrib/mozilla.if +++ b/policy/modules/contrib/mozilla.if @@ -611,3 +611,41 @@ interface(`mozilla_home_filetrans_plugin_home',` userdom_user_home_dir_filetrans($1, mozilla_plugin_home_t, $2, $3) ') + +# This is gentoo specific but cannot use ifdef distro_gentoo + +######################################## +## +## Do not audit use of mozilla file descriptors +## +## +## +## Domain to dont audit access from +## +## +# +interface(`mozilla_dontaudit_use_fds',` + gen_require(` + type mozilla_t; + ') + + dontaudit $1 mozilla_t:fd use; +') + +######################################## +## +## Send messages to mozilla plugin unix datagram sockets +## +## +## +## Domain allowed access +## +## +# +interface(`mozilla_send_dgram_plugin',` + gen_require(` + type mozilla_plugin_t; + ') + + allow $1 mozilla_plugin_t:unix_dgram_socket sendto; +')