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:54
Message-Id: 1485328094.82777d9740f9c8cd39423eea988823647bdc68ea.perfinion@gentoo
1 commit: 82777d9740f9c8cd39423eea988823647bdc68ea
2 Author: Chris PeBenito <pebenito <AT> ieee <DOT> org>
3 AuthorDate: Mon Jan 23 23:50:08 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=82777d97
7
8 cups: Move hplip_domtrans interface.
9
10 policy/modules/contrib/cups.if | 42 +++++++++++++++++++++---------------------
11 1 file changed, 21 insertions(+), 21 deletions(-)
12
13 diff --git a/policy/modules/contrib/cups.if b/policy/modules/contrib/cups.if
14 index f0261ca..6a2633c 100644
15 --- a/policy/modules/contrib/cups.if
16 +++ b/policy/modules/contrib/cups.if
17 @@ -326,6 +326,27 @@ interface(`cups_read_state',`
18
19 ########################################
20 ## <summary>
21 +## Execute HP Linux Imaging and
22 +## Printing applications in their
23 +## own domain.
24 +## </summary>
25 +## <param name="domain">
26 +## <summary>
27 +## Domain allowed to transition.
28 +## </summary>
29 +## </param>
30 +#
31 +interface(`cups_domtrans_hplip',`
32 + gen_require(`
33 + type hplip_t, hplip_exec_t;
34 + ')
35 +
36 + corecmd_search_bin($1)
37 + domtrans_pattern($1, hplip_exec_t, hplip_t)
38 +')
39 +
40 +########################################
41 +## <summary>
42 ## All of the rules required to
43 ## administrate an cups environment.
44 ## </summary>
45 @@ -375,24 +396,3 @@ interface(`cups_admin',`
46 admin_pattern($1, { cupsd_config_var_run_t cupsd_var_run_t hplip_var_run_t })
47 admin_pattern($1, { ptal_var_run_t cupsd_lpd_var_run_t })
48 ')
49 -
50 -########################################
51 -## <summary>
52 -## Execute HP Linux Imaging and
53 -## Printing applications in their
54 -## own domain.
55 -## </summary>
56 -## <param name="domain">
57 -## <summary>
58 -## Domain allowed to transition.
59 -## </summary>
60 -## </param>
61 -#
62 -interface(`cups_domtrans_hplip',`
63 - gen_require(`
64 - type hplip_t, hplip_exec_t;
65 - ')
66 -
67 - corecmd_search_bin($1)
68 - domtrans_pattern($1, hplip_exec_t, hplip_t)
69 -')