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 0DCFB1381F3 for ; Mon, 30 Sep 2013 19:04:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C055E0C10; Mon, 30 Sep 2013 19:03:49 +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 1F086E0C10 for ; Mon, 30 Sep 2013 19:03:44 +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 EF5AA33E8B5 for ; Mon, 30 Sep 2013 19:03:42 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id CED98E5470 for ; Mon, 30 Sep 2013 19:03:40 +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: <1380567781.011a837a11fe04fbf66f9c7f473f24b03e652a47.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/avahi.if policy/modules/contrib/avahi.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 011a837a11fe04fbf66f9c7f473f24b03e652a47 X-VCS-Branch: master Date: Mon, 30 Sep 2013 19:03:40 +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: da34cdf5-6fe4-4e56-a493-5dcfb881b6a0 X-Archives-Hash: d0617deb1956b5e2f530279575cf4894 commit: 011a837a11fe04fbf66f9c7f473f24b03e652a47 Author: Dominick Grift gmail com> AuthorDate: Fri Sep 27 09:53:55 2013 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Mon Sep 30 19:03:01 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=011a837a avahi: create interfaces that will allow calles to create avahi pid dirs and create specifc avahi pid objects with a type transition (for udev, which runs: /usr/lib/avahi/avahi-daemon-check-dns.sh in Debian Signed-off-by: Dominick Grift gmail.com> --- policy/modules/contrib/avahi.if | 48 +++++++++++++++++++++++++++++++++++++++++ policy/modules/contrib/avahi.te | 2 +- 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/policy/modules/contrib/avahi.if b/policy/modules/contrib/avahi.if index ce712af..769c51f 100644 --- a/policy/modules/contrib/avahi.if +++ b/policy/modules/contrib/avahi.if @@ -135,6 +135,25 @@ interface(`avahi_stream_connect',` ######################################## ## +## Create avahi pid directories. +## +## +## +## Domain allowed access. +## +## +# +interface(`avahi_create_pid_dirs',` + gen_require(` + type avahi_var_run_t; + ') + + files_search_pids($1) + allow $1 avahi_var_run_t:dir create_dir_perms; +') + +######################################## +## ## Create, read, and write avahi pid files. ## ## @@ -173,6 +192,35 @@ interface(`avahi_dontaudit_search_pid',` ######################################## ## +## Create specified objects in generic +## pid directories with the avahi pid file type. +## +## +## +## Domain allowed access. +## +## +## +## +## Class of the object being created. +## +## +## +## +## The name of the object being created. +## +## +# +interface(`avahi_filetrans_pid',` + gen_require(` + type avahi_var_run_t; + ') + + files_pid_filetrans($1, avahi_var_run_t, $2, $3) +') + +######################################## +## ## All of the rules required to ## administrate an avahi environment. ## diff --git a/policy/modules/contrib/avahi.te b/policy/modules/contrib/avahi.te index 95ae264..b8355b3 100644 --- a/policy/modules/contrib/avahi.te +++ b/policy/modules/contrib/avahi.te @@ -1,4 +1,4 @@ -policy_module(avahi, 1.14.0) +policy_module(avahi, 1.14.1) ######################################## #