1 |
commit: c94eeb89027d18ddcb3891d4f81fd342da4b3a61 |
2 |
Author: Kenton Groombridge <me <AT> concord <DOT> sh> |
3 |
AuthorDate: Sat Sep 24 17:23:53 2022 +0000 |
4 |
Commit: Kenton Groombridge <concord <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 2 14:07:07 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=c94eeb89 |
7 |
|
8 |
xdg: add interface to dontaudit searching xdg data dirs |
9 |
|
10 |
Signed-off-by: Kenton Groombridge <me <AT> concord.sh> |
11 |
Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org> |
12 |
|
13 |
policy/modules/system/xdg.if | 19 +++++++++++++++++++ |
14 |
1 file changed, 19 insertions(+) |
15 |
|
16 |
diff --git a/policy/modules/system/xdg.if b/policy/modules/system/xdg.if |
17 |
index 6e1cd836c..62edcd84d 100644 |
18 |
--- a/policy/modules/system/xdg.if |
19 |
+++ b/policy/modules/system/xdg.if |
20 |
@@ -653,6 +653,25 @@ interface(`xdg_search_data_dirs',` |
21 |
allow $1 xdg_data_t:dir search_dir_perms; |
22 |
') |
23 |
|
24 |
+######################################## |
25 |
+## <summary> |
26 |
+## Do not audit attempts to search through the |
27 |
+## xdg data home directories. |
28 |
+## </summary> |
29 |
+## <param name="domain"> |
30 |
+## <summary> |
31 |
+## Domain to not audit. |
32 |
+## </summary> |
33 |
+## </param> |
34 |
+# |
35 |
+interface(`xdg_dontaudit_search_data_dirs',` |
36 |
+ gen_require(` |
37 |
+ type xdg_data_t; |
38 |
+ ') |
39 |
+ |
40 |
+ dontaudit $1 xdg_data_t:dir search_dir_perms; |
41 |
+') |
42 |
+ |
43 |
######################################## |
44 |
## <summary> |
45 |
## Watch the xdg data home directories |