1 |
commit: 66330450e5ece7ebc512aae878d224b772efd252 |
2 |
Author: Chris PeBenito <pebenito <AT> ieee <DOT> org> |
3 |
AuthorDate: Tue Mar 28 22:50:35 2017 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 30 14:00:10 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=66330450 |
7 |
|
8 |
systemd-resolvd, sessions, and tmpfiles take2 |
9 |
|
10 |
I believe that I have addressed all the issues Chris raised, so here's a newer |
11 |
version of the patch which applies to today's git version. |
12 |
|
13 |
Description: systemd-resolved, sessions, and tmpfiles patches |
14 |
Author: Russell Coker <russell <AT> coker.com.au> |
15 |
Last-Update: 2017-03-26 |
16 |
|
17 |
policy/modules/contrib/xfs.if | 19 +++++++++++++++++++ |
18 |
policy/modules/contrib/xfs.te | 2 +- |
19 |
2 files changed, 20 insertions(+), 1 deletion(-) |
20 |
|
21 |
diff --git a/policy/modules/contrib/xfs.if b/policy/modules/contrib/xfs.if |
22 |
index 19934060..1aafbbc1 100644 |
23 |
--- a/policy/modules/contrib/xfs.if |
24 |
+++ b/policy/modules/contrib/xfs.if |
25 |
@@ -60,6 +60,25 @@ interface(`xfs_exec',` |
26 |
|
27 |
######################################## |
28 |
## <summary> |
29 |
+## Create xfs temporary dirs |
30 |
+## </summary> |
31 |
+## <param name="domain"> |
32 |
+## <summary> |
33 |
+## Domain allowed access. |
34 |
+## </summary> |
35 |
+## </param> |
36 |
+# |
37 |
+interface(`xfs_create_tmp_dirs',` |
38 |
+ gen_require(` |
39 |
+ type xfs_tmp_t; |
40 |
+ ') |
41 |
+ |
42 |
+ files_search_tmp($1) |
43 |
+ allow $1 xfs_tmp_t:dir create; |
44 |
+') |
45 |
+ |
46 |
+######################################## |
47 |
+## <summary> |
48 |
## All of the rules required to |
49 |
## administrate an xfs environment. |
50 |
## </summary> |
51 |
|
52 |
diff --git a/policy/modules/contrib/xfs.te b/policy/modules/contrib/xfs.te |
53 |
index 3fc2a1bf..839f15cf 100644 |
54 |
--- a/policy/modules/contrib/xfs.te |
55 |
+++ b/policy/modules/contrib/xfs.te |
56 |
@@ -1,4 +1,4 @@ |
57 |
-policy_module(xfs, 1.9.0) |
58 |
+policy_module(xfs, 1.9.1) |
59 |
|
60 |
######################################## |
61 |
# |