1 |
commit: ba34639d0cd5e156d5a9a21f853703a09a68b1d2 |
2 |
Author: Kenton Groombridge <me <AT> concord <DOT> sh> |
3 |
AuthorDate: Sat Sep 24 04:00:28 2022 +0000 |
4 |
Commit: Kenton Groombridge <concord <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 2 14:07:05 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=ba34639d |
7 |
|
8 |
devices: add interface to rw infiniband devices |
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/kernel/devices.if | 18 ++++++++++++++++++ |
14 |
1 file changed, 18 insertions(+) |
15 |
|
16 |
diff --git a/policy/modules/kernel/devices.if b/policy/modules/kernel/devices.if |
17 |
index ba652e81e..5ef1833c6 100644 |
18 |
--- a/policy/modules/kernel/devices.if |
19 |
+++ b/policy/modules/kernel/devices.if |
20 |
@@ -2404,6 +2404,24 @@ interface(`dev_rw_hyperv_vss',` |
21 |
rw_chr_files_pattern($1, device_t, hyperv_vss_device_t) |
22 |
') |
23 |
|
24 |
+######################################## |
25 |
+## <summary> |
26 |
+## Allow read/write access to InfiniBand devices. |
27 |
+## </summary> |
28 |
+## <param name="domain"> |
29 |
+## <summary> |
30 |
+## Domain allowed access. |
31 |
+## </summary> |
32 |
+## </param> |
33 |
+# |
34 |
+interface(`dev_rw_infiniband',` |
35 |
+ gen_require(` |
36 |
+ type device_t, infiniband_device_t; |
37 |
+ ') |
38 |
+ |
39 |
+ rw_chr_files_pattern($1, device_t, infiniband_device_t) |
40 |
+') |
41 |
+ |
42 |
######################################## |
43 |
## <summary> |
44 |
## Read the kernel messages |