1 |
commit: 047ba1322c21dd39104b0e19e5d7fae439f0fd1f |
2 |
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
3 |
AuthorDate: Sun Nov 3 11:12:40 2013 +0000 |
4 |
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 3 11:12:40 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=047ba132 |
7 |
|
8 |
Add interface for relabeling lib_t directories |
9 |
|
10 |
This interface will be used later by the portage_t domain. |
11 |
|
12 |
--- |
13 |
policy/modules/system/libraries.if | 20 ++++++++++++++++++++ |
14 |
1 file changed, 20 insertions(+) |
15 |
|
16 |
diff --git a/policy/modules/system/libraries.if b/policy/modules/system/libraries.if |
17 |
index a83933f..24b7ef6 100644 |
18 |
--- a/policy/modules/system/libraries.if |
19 |
+++ b/policy/modules/system/libraries.if |
20 |
@@ -603,3 +603,23 @@ interface(`libs_lib_filetrans',` |
21 |
|
22 |
libs_search_lib($1) |
23 |
') |
24 |
+ |
25 |
+######################################## |
26 |
+## <summary> |
27 |
+## Relabel to and from the type used |
28 |
+## for generic lib directories. |
29 |
+## </summary> |
30 |
+## <param name="domain"> |
31 |
+## <summary> |
32 |
+## Domain allowed access. |
33 |
+## </summary> |
34 |
+## </param> |
35 |
+# |
36 |
+interface(`libs_relabel_lib_dirs',` |
37 |
+ gen_require(` |
38 |
+ type lib_t; |
39 |
+ ') |
40 |
+ |
41 |
+ relabel_dirs_pattern($1, lib_t, lib_t) |
42 |
+') |
43 |
+ |