1 |
commit: 72d8966a020b5d8cdf252dec6891e8eaf07fe6fe |
2 |
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
3 |
AuthorDate: Mon Dec 31 22:56:37 2012 +0000 |
4 |
Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
5 |
CommitDate: Mon Dec 31 22:56:37 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=72d8966a |
7 |
|
8 |
Introduce xdg_search_config_home_dirs interface |
9 |
|
10 |
--- |
11 |
policy/modules/contrib/xdg.if | 20 ++++++++++++++++++++ |
12 |
1 files changed, 20 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/policy/modules/contrib/xdg.if b/policy/modules/contrib/xdg.if |
15 |
index 4c88546..3613a65 100644 |
16 |
--- a/policy/modules/contrib/xdg.if |
17 |
+++ b/policy/modules/contrib/xdg.if |
18 |
@@ -306,6 +306,26 @@ interface(`xdg_relabel_all_cache_home',` |
19 |
|
20 |
######################################## |
21 |
## <summary> |
22 |
+## Search through the xdg config home directories |
23 |
+## </summary> |
24 |
+## <param name="domain"> |
25 |
+## <summary> |
26 |
+## Domain allowed access. |
27 |
+## </summary> |
28 |
+## </param> |
29 |
+# |
30 |
+interface(`xdg_search_config_home_dirs',` |
31 |
+ gen_require(` |
32 |
+ type xdg_config_home_t; |
33 |
+ ') |
34 |
+ |
35 |
+ search_dirs_pattern($1, xdg_config_home_t, xdg_config_home_t) |
36 |
+ |
37 |
+ userdom_search_user_home_dirs($1) |
38 |
+') |
39 |
+ |
40 |
+######################################## |
41 |
+## <summary> |
42 |
## Read the xdg config home files |
43 |
## </summary> |
44 |
## <param name="domain"> |