From d83a104eda195dd4f382ee298ea2afc3e764156e Mon Sep 17 00:00:00 2001 From: Jason Zaman Date: Sat, 12 Jan 2019 16:03:41 +0800 Subject: [PATCH] files: introduce files_dontaudit_read_etc_files Signed-off-by: Jason Zaman --- policy/modules/kernel/files.if | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if index e9bc8dd95..f1c94411d 100644 --- a/policy/modules/kernel/files.if +++ b/policy/modules/kernel/files.if @@ -3403,6 +3403,25 @@ interface(`files_dontaudit_read_etc_runtime_files',` dontaudit $1 etc_runtime_t:file { getattr read }; ') +######################################## +## +## Do not audit attempts to read files +## in /etc +## +## +## +## Domain to not audit. +## +## +# +interface(`files_dontaudit_read_etc_files',` + gen_require(` + type etc_t; + ') + + dontaudit $1 etc_t:file { getattr read }; +') + ######################################## ## ## Do not audit attempts to write