From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 962C7139082 for ; Wed, 25 Jan 2017 11:59:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D55E1E0DD3; Wed, 25 Jan 2017 11:59:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A7E3AE0DD3 for ; Wed, 25 Jan 2017 11:59:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CCD8F341665 for ; Wed, 25 Jan 2017 11:59:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 403792EE8 for ; Wed, 25 Jan 2017 11:59:50 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1485328094.e0bfa34ed7854bb95ca797dc48596936ed3c83cf.perfinion@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/cups.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: e0bfa34ed7854bb95ca797dc48596936ed3c83cf X-VCS-Branch: master Date: Wed, 25 Jan 2017 11:59:50 +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: af12ee6b-b40c-4fe0-8efb-3558a5ed3ab8 X-Archives-Hash: 864ede35847e90e4748383f6002b2ad8 commit: e0bfa34ed7854bb95ca797dc48596936ed3c83cf Author: Guido Trentalancia trentalancia net> AuthorDate: Fri Jan 20 01:06:09 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Wed Jan 25 07:08:14 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=e0bfa34e cups: new interface to execute HPLIP applications in their own domain Add a new interface to the cups module to execute HP Linux Imaging and Printing (HPLIP) applications in their own domain. Signed-off-by: Guido Trentalancia trentalancia.net> policy/modules/contrib/cups.if | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/policy/modules/contrib/cups.if b/policy/modules/contrib/cups.if index a6bcb68..f0261ca 100644 --- a/policy/modules/contrib/cups.if +++ b/policy/modules/contrib/cups.if @@ -375,3 +375,24 @@ interface(`cups_admin',` admin_pattern($1, { cupsd_config_var_run_t cupsd_var_run_t hplip_var_run_t }) admin_pattern($1, { ptal_var_run_t cupsd_lpd_var_run_t }) ') + +######################################## +## +## Execute HP Linux Imaging and +## Printing applications in their +## own domain. +## +## +## +## Domain allowed to transition. +## +## +# +interface(`cups_domtrans_hplip',` + gen_require(` + type hplip_t, hplip_exec_t; + ') + + corecmd_search_bin($1) + domtrans_pattern($1, hplip_exec_t, hplip_t) +')