selinux-refpolicy.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] devices: introduce dev_dontaudit_read_sysfs
@ 2019-01-12  8:03 Jason Zaman
  2019-01-12  8:03 ` [PATCH 2/5] files: introduce files_dontaudit_read_etc_files Jason Zaman
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Jason Zaman @ 2019-01-12  8:03 UTC (permalink / raw)
  To: selinux-refpolicy; +Cc: Jason Zaman

Signed-off-by: Jason Zaman <jason@perfinion.com>
---
 policy/modules/kernel/devices.if | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/policy/modules/kernel/devices.if b/policy/modules/kernel/devices.if
index 65bfcb63..78a95ce8 100644
--- a/policy/modules/kernel/devices.if
+++ b/policy/modules/kernel/devices.if
@@ -4043,6 +4043,26 @@ interface(`dev_dontaudit_getattr_sysfs',`
 	dontaudit $1 sysfs_t:filesystem getattr;
 ')
 
+########################################
+## <summary>
+##	Dont audit attempts to read hardware state information
+## </summary>
+## <param name="domain">
+##	<summary>
+##	Domain for which the attempts do not need to be audited
+##	</summary>
+## </param>
+#
+interface(`dev_dontaudit_read_sysfs',`
+	gen_require(`
+		type sysfs_t;
+	')
+
+	dontaudit $1 sysfs_t:file read_file_perms;
+	dontaudit $1 sysfs_t:dir list_dir_perms;
+	dontaudit $1 sysfs_t:lnk_file read_lnk_file_perms;
+')
+
 ########################################
 ## <summary>
 ##     mounton sysfs directories.
-- 
2.19.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-01-24  0:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-12  8:03 [PATCH 1/5] devices: introduce dev_dontaudit_read_sysfs Jason Zaman
2019-01-12  8:03 ` [PATCH 2/5] files: introduce files_dontaudit_read_etc_files Jason Zaman
2019-01-12  8:03 ` [PATCH 3/5] kernel: introduce kernel_dontaudit_read_kernel_sysctl Jason Zaman
2019-01-12  8:03 ` [PATCH 4/5] userdomain: introduce userdom_user_home_dir_filetrans_user_cert Jason Zaman
2019-01-12  8:03 ` [PATCH 5/5] Add chromium policy upstreamed from Gentoo Jason Zaman
2019-01-23  8:27   ` Russell Coker
2019-01-23 23:49   ` Chris PeBenito

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).