diff options
author | Joe MacDonald <joe@deserted.net> | 2019-04-08 13:50:40 -0400 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2019-04-10 10:57:14 -0400 |
commit | 776da889b550ac9e5be414a8cc10fd86b1923264 (patch) | |
tree | 79771fa29c551e934321434f4b5f3da7a27fd91f /recipes-security/refpolicy/refpolicy-git/0023-policy-module-terminals-don-t-audit-tty_device_t-in-.patch | |
parent | a6a3cadb1ef3203a123d8f5f9df27832f55b2ce3 (diff) | |
download | meta-selinux-jjm/RELEASE_2.20190201.tar.gz |
refpolicy: update to 2.20190201 and git HEAD policiesjjm/RELEASE_2.20190201
Additionally, the README has fallen out of date, update it to reflect the
current reality of layer dependencies.
Signed-off-by: Joe MacDonald <joe@deserted.net>
Diffstat (limited to 'recipes-security/refpolicy/refpolicy-git/0023-policy-module-terminals-don-t-audit-tty_device_t-in-.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy-git/0023-policy-module-terminals-don-t-audit-tty_device_t-in-.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy-git/0023-policy-module-terminals-don-t-audit-tty_device_t-in-.patch b/recipes-security/refpolicy/refpolicy-git/0023-policy-module-terminals-don-t-audit-tty_device_t-in-.patch new file mode 100644 index 0000000..06f9207 --- /dev/null +++ b/recipes-security/refpolicy/refpolicy-git/0023-policy-module-terminals-don-t-audit-tty_device_t-in-.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 3f5a9b987211ef511bfd1c76b1a7dffad51fba0c Mon Sep 17 00:00:00 2001 | ||
2 | From: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
3 | Date: Thu, 22 Aug 2013 13:37:23 +0800 | ||
4 | Subject: [PATCH 23/34] policy/module/terminals: don't audit tty_device_t in | ||
5 | term_dontaudit_use_console. | ||
6 | |||
7 | We should also not audit terminal to rw tty_device_t and fds in | ||
8 | term_dontaudit_use_console. | ||
9 | |||
10 | Upstream-Status: Inappropriate [only for Poky] | ||
11 | |||
12 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
13 | Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> | ||
14 | --- | ||
15 | policy/modules/kernel/terminal.if | 3 +++ | ||
16 | 1 file changed, 3 insertions(+) | ||
17 | |||
18 | diff --git a/policy/modules/kernel/terminal.if b/policy/modules/kernel/terminal.if | ||
19 | index a84787e6..cf66da2f 100644 | ||
20 | --- a/policy/modules/kernel/terminal.if | ||
21 | +++ b/policy/modules/kernel/terminal.if | ||
22 | @@ -335,9 +335,12 @@ interface(`term_use_console',` | ||
23 | interface(`term_dontaudit_use_console',` | ||
24 | gen_require(` | ||
25 | type console_device_t; | ||
26 | + type tty_device_t; | ||
27 | ') | ||
28 | |||
29 | + init_dontaudit_use_fds($1) | ||
30 | dontaudit $1 console_device_t:chr_file rw_chr_file_perms; | ||
31 | + dontaudit $1 tty_device_t:chr_file rw_chr_file_perms; | ||
32 | ') | ||
33 | |||
34 | ######################################## | ||
35 | -- | ||
36 | 2.19.1 | ||
37 | |||