1 |
commit: 9fc280113ec3479814af5db91f21340f054e7aa4 |
2 |
Author: Chris PeBenito <pebenito <AT> ieee <DOT> org> |
3 |
AuthorDate: Sat Jul 30 20:25:42 2016 +0000 |
4 |
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 31 10:40:14 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=9fc28011 |
7 |
|
8 |
Get attributes of generic ptys, from Russell Coker. |
9 |
|
10 |
policy/modules/kernel/terminal.if | 17 +++++++++++++++++ |
11 |
policy/modules/kernel/terminal.te | 2 +- |
12 |
2 files changed, 18 insertions(+), 1 deletion(-) |
13 |
|
14 |
diff --git a/policy/modules/kernel/terminal.if b/policy/modules/kernel/terminal.if |
15 |
index 2e6a376..ed52733 100644 |
16 |
--- a/policy/modules/kernel/terminal.if |
17 |
+++ b/policy/modules/kernel/terminal.if |
18 |
@@ -538,6 +538,23 @@ interface(`term_relabel_pty_dirs',` |
19 |
|
20 |
######################################## |
21 |
## <summary> |
22 |
+## Get the attributes of generic pty devices. |
23 |
+## </summary> |
24 |
+## <param name="domain"> |
25 |
+## <summary> |
26 |
+## Domain to allow |
27 |
+## </summary> |
28 |
+## </param> |
29 |
+# |
30 |
+interface(`term_getattr_generic_ptys',` |
31 |
+ gen_require(` |
32 |
+ type devpts_t; |
33 |
+ ') |
34 |
+ |
35 |
+ allow $1 devpts_t:chr_file getattr; |
36 |
+') |
37 |
+######################################## |
38 |
+## <summary> |
39 |
## Do not audit attempts to get the attributes |
40 |
## of generic pty devices. |
41 |
## </summary> |
42 |
|
43 |
diff --git a/policy/modules/kernel/terminal.te b/policy/modules/kernel/terminal.te |
44 |
index 01e1516..d25f4d2 100644 |
45 |
--- a/policy/modules/kernel/terminal.te |
46 |
+++ b/policy/modules/kernel/terminal.te |
47 |
@@ -1,4 +1,4 @@ |
48 |
-policy_module(terminal, 1.14.0) |
49 |
+policy_module(terminal, 1.14.1) |
50 |
|
51 |
######################################## |
52 |
# |