summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris PeBenito <cpebenito@tresys.com>2009-09-09 08:18:51 -0400
committerChris PeBenito <cpebenito@tresys.com>2009-09-09 08:18:51 -0400
commit163ddfaa8041e16ccff2819872890cf07f20f36d (patch)
treecedbd1e2d662a0425138cf031726d08a6ba6cf3f
parent81bca10b2888e28292a1ba2b18d5c10b5dbf9e3d (diff)
prelink patch from dan.
-rw-r--r--policy/modules/admin/prelink.if19
-rw-r--r--policy/modules/admin/prelink.te2
2 files changed, 20 insertions, 1 deletions
diff --git a/policy/modules/admin/prelink.if b/policy/modules/admin/prelink.if
index 7abf956b..bb9b962a 100644
--- a/policy/modules/admin/prelink.if
+++ b/policy/modules/admin/prelink.if
@@ -140,3 +140,22 @@ interface(`prelink_manage_lib',`
files_search_var_lib($1)
manage_files_pattern($1, prelink_var_lib_t, prelink_var_lib_t)
')
+
+########################################
+## <summary>
+## Relabel from files in the /boot directory.
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+#
+interface(`prelink_relabelfrom_lib',`
+ gen_require(`
+ type prelink_var_lib_t;
+ ')
+
+ files_search_var_lib($1)
+ relabelfrom_files_pattern($1, prelink_var_lib_t, prelink_var_lib_t)
+')
diff --git a/policy/modules/admin/prelink.te b/policy/modules/admin/prelink.te
index 15e9e036..91889d5f 100644
--- a/policy/modules/admin/prelink.te
+++ b/policy/modules/admin/prelink.te
@@ -1,5 +1,5 @@
-policy_module(prelink, 1.7.0)
+policy_module(prelink, 1.7.1)
########################################
#