From 6c63996d9b57a7d18f70870046ca6bccce712a21 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Fri, 29 Sep 2006 14:24:57 +0000 Subject: [PATCH] fix build error --- policy/modules/admin/readahead.te | 2 +- policy/modules/kernel/devices.if | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/policy/modules/admin/readahead.te b/policy/modules/admin/readahead.te index 4a4e7311f..138af2978 100644 --- a/policy/modules/admin/readahead.te +++ b/policy/modules/admin/readahead.te @@ -36,7 +36,7 @@ dev_getattr_all_chr_files(readahead_t) dev_getattr_all_blk_files(readahead_t) dev_dontaudit_read_all_blk_files(readahead_t) dev_dontaudit_getattr_memory_dev(readahead_t) -dev_dontaudit_getattr_nvram(readahead_t) +dev_dontaudit_getattr_nvram_dev(readahead_t) storage_dontaudit_getattr_fixed_disk_dev(readahead_t) domain_use_interactive_fds(readahead_t) diff --git a/policy/modules/kernel/devices.if b/policy/modules/kernel/devices.if index 9ff21603d..e08e3936a 100644 --- a/policy/modules/kernel/devices.if +++ b/policy/modules/kernel/devices.if @@ -1977,6 +1977,25 @@ interface(`dev_create_null_dev',` allow $1 self:capability mknod; ') +######################################## +## +## Do not audit attempts to get the attributes +## of the BIOS non-volatile RAM device. +## +## +## +## Domain allowed access. +## +## +# +interface(`dev_dontaudit_getattr_nvram_dev',` + gen_require(` + type nvram_device_t; + ') + + dontaudit $1 nvram_device_t:chr_file getattr; +') + ######################################## ## ## Read and write BIOS non-volatile RAM.