1 |
commit: d12bed7c1a2136edf8fc856c91d262e1d2725ca5 |
2 |
Author: Luis Ressel <aranea <AT> aixah <DOT> de> |
3 |
AuthorDate: Sat Feb 1 13:50:21 2014 +0000 |
4 |
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 9 10:52:35 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=d12bed7c |
7 |
|
8 |
kernel/devices.if: Add dev_rw_loop_control interface |
9 |
|
10 |
--- |
11 |
policy/modules/kernel/devices.if | 18 ++++++++++++++++++ |
12 |
1 file changed, 18 insertions(+) |
13 |
|
14 |
diff --git a/policy/modules/kernel/devices.if b/policy/modules/kernel/devices.if |
15 |
index 58ab7e9..b1c505f 100644 |
16 |
--- a/policy/modules/kernel/devices.if |
17 |
+++ b/policy/modules/kernel/devices.if |
18 |
@@ -2397,6 +2397,24 @@ interface(`dev_rw_lirc',` |
19 |
|
20 |
###################################### |
21 |
## <summary> |
22 |
+## Read and write the loop-control device. |
23 |
+## </summary> |
24 |
+## <param name="domain"> |
25 |
+## <summary> |
26 |
+## Domain allowed access. |
27 |
+## </summary> |
28 |
+## </param> |
29 |
+# |
30 |
+interface(`dev_rw_loop_control',` |
31 |
+ gen_require(` |
32 |
+ type device_t, loop_control_device_t; |
33 |
+ ') |
34 |
+ |
35 |
+ rw_chr_files_pattern($1, device_t, loop_control_device_t) |
36 |
+') |
37 |
+ |
38 |
+###################################### |
39 |
+## <summary> |
40 |
## Automatic type transition to the type |
41 |
## for lirc device nodes when created in /dev. |
42 |
## </summary> |