1 |
commit: b7cdb2042f2d50b860b53763af428a02126984a4 |
2 |
Author: cgzones <cgzones <AT> googlemail <DOT> com> |
3 |
AuthorDate: Mon Feb 20 13:20:25 2017 +0000 |
4 |
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 2 10:16:43 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=b7cdb204 |
7 |
|
8 |
add fs_getattr_dos_dirs() |
9 |
|
10 |
useful |
11 |
|
12 |
policy/modules/kernel/filesystem.if | 18 ++++++++++++++++++ |
13 |
1 file changed, 18 insertions(+) |
14 |
|
15 |
diff --git a/policy/modules/kernel/filesystem.if b/policy/modules/kernel/filesystem.if |
16 |
index 9069b0c2..0affdae2 100644 |
17 |
--- a/policy/modules/kernel/filesystem.if |
18 |
+++ b/policy/modules/kernel/filesystem.if |
19 |
@@ -1800,6 +1800,24 @@ interface(`fs_relabelfrom_dos_fs',` |
20 |
|
21 |
######################################## |
22 |
## <summary> |
23 |
+## Get attributes of directories on a dosfs filesystem. |
24 |
+## </summary> |
25 |
+## <param name="domain"> |
26 |
+## <summary> |
27 |
+## Domain allowed access. |
28 |
+## </summary> |
29 |
+## </param> |
30 |
+# |
31 |
+interface(`fs_getattr_dos_dirs',` |
32 |
+ gen_require(` |
33 |
+ type dosfs_t; |
34 |
+ ') |
35 |
+ |
36 |
+ allow $1 dosfs_t:dir getattr; |
37 |
+') |
38 |
+ |
39 |
+######################################## |
40 |
+## <summary> |
41 |
## Search dosfs filesystem. |
42 |
## </summary> |
43 |
## <param name="domain"> |