commit: 82777d9740f9c8cd39423eea988823647bdc68ea
Author: Chris PeBenito <pebenito <AT> ieee <DOT> org>
AuthorDate: Mon Jan 23 23:50:08 2017 +0000
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Wed Jan 25 07:08:14 2017 +0000
URL:
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=82777d97
cups: Move hplip_domtrans interface.
policy/modules/contrib/cups.if | 42 +++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/policy/modules/contrib/cups.if b/policy/modules/contrib/cups.if
index f0261ca..6a2633c 100644
--- a/policy/modules/contrib/cups.if
+++ b/policy/modules/contrib/cups.if
@@ -326,6 +326,27 @@ interface(`cups_read_state',`
########################################
## <summary>
+## Execute HP Linux Imaging and
+## Printing applications in their
+## own domain.
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed to transition.
+## </summary>
+## </param>
+#
+interface(`cups_domtrans_hplip',`
+ gen_require(`
+ type hplip_t, hplip_exec_t;
+ ')
+
+ corecmd_search_bin($1)
+ domtrans_pattern($1, hplip_exec_t, hplip_t)
+')
+
+########################################
+## <summary>
## All of the rules required to
## administrate an cups environment.
## </summary>
@@ -375,24 +396,3 @@ 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 })
')
-
-########################################
-## <summary>
-## Execute HP Linux Imaging and
-## Printing applications in their
-## own domain.
-## </summary>
-## <param name="domain">
-## <summary>
-## Domain allowed to transition.
-## </summary>
-## </param>
-#
-interface(`cups_domtrans_hplip',`
- gen_require(`
- type hplip_t, hplip_exec_t;
- ')
-
- corecmd_search_bin($1)
- domtrans_pattern($1, hplip_exec_t, hplip_t)
-')