Gentoo Archives: gentoo-commits

From: Sven Vermeulen <swift@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/
Date: Sun, 06 Jul 2014 09:49:49
Message-Id: 1404640100.9668ef191f10834fd4d5904c8a5a9f62eb04dfb4.swift@gentoo
1 commit: 9668ef191f10834fd4d5904c8a5a9f62eb04dfb4
2 Author: Jason Zaman <jason <AT> perfinion <DOT> com>
3 AuthorDate: Sat Jul 5 16:19:09 2014 +0000
4 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 6 09:48:20 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=9668ef19
7
8 dontaudits for chromium
9
10 When chromium_read_system_info is enabled, chromium tries to getattr
11 on a lot of files in /dev. They are not required and this quiets
12 chromium a bit more.
13
14 Signed-off-by: Jason Zaman <jason <AT> perfinion.com>
15
16 ---
17 policy/modules/contrib/chromium.te | 3 +++
18 1 file changed, 3 insertions(+)
19
20 diff --git a/policy/modules/contrib/chromium.te b/policy/modules/contrib/chromium.te
21 index 878d8c9..0f72dd7 100644
22 --- a/policy/modules/contrib/chromium.te
23 +++ b/policy/modules/contrib/chromium.te
24 @@ -191,6 +191,9 @@ tunable_policy(`chromium_read_system_info',`
25 storage_getattr_fixed_disk_dev(chromium_t)
26
27 files_read_etc_runtime_files(chromium_t)
28 +
29 + dev_dontaudit_getattr_all_chr_files(chromium_t)
30 + init_dontaudit_getattr_initctl(chromium_t)
31 ',`
32 kernel_dontaudit_read_kernel_sysctls(chromium_t)
33 kernel_dontaudit_read_system_state(chromium_t)