Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/
Date: Wed, 25 Jan 2017 11:59:53
Message-Id: 1485328094.e0bfa34ed7854bb95ca797dc48596936ed3c83cf.perfinion@gentoo
1 commit: e0bfa34ed7854bb95ca797dc48596936ed3c83cf
2 Author: Guido Trentalancia <guido <AT> trentalancia <DOT> net>
3 AuthorDate: Fri Jan 20 01:06:09 2017 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 25 07:08:14 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=e0bfa34e
7
8 cups: new interface to execute HPLIP applications in their own domain
9
10 Add a new interface to the cups module to execute HP Linux Imaging
11 and Printing (HPLIP) applications in their own domain.
12
13 Signed-off-by: Guido Trentalancia <guido <AT> trentalancia.net>
14
15 policy/modules/contrib/cups.if | 21 +++++++++++++++++++++
16 1 file changed, 21 insertions(+)
17
18 diff --git a/policy/modules/contrib/cups.if b/policy/modules/contrib/cups.if
19 index a6bcb68..f0261ca 100644
20 --- a/policy/modules/contrib/cups.if
21 +++ b/policy/modules/contrib/cups.if
22 @@ -375,3 +375,24 @@ interface(`cups_admin',`
23 admin_pattern($1, { cupsd_config_var_run_t cupsd_var_run_t hplip_var_run_t })
24 admin_pattern($1, { ptal_var_run_t cupsd_lpd_var_run_t })
25 ')
26 +
27 +########################################
28 +## <summary>
29 +## Execute HP Linux Imaging and
30 +## Printing applications in their
31 +## own domain.
32 +## </summary>
33 +## <param name="domain">
34 +## <summary>
35 +## Domain allowed to transition.
36 +## </summary>
37 +## </param>
38 +#
39 +interface(`cups_domtrans_hplip',`
40 + gen_require(`
41 + type hplip_t, hplip_exec_t;
42 + ')
43 +
44 + corecmd_search_bin($1)
45 + domtrans_pattern($1, hplip_exec_t, hplip_t)
46 +')