From 31a1c2df88fff0031bd50d08fa792067a346b40b Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Tue, 1 Nov 2005 15:45:00 +0000 Subject: [PATCH] fix filesystem associations --- refpolicy/policy/modules/kernel/devices.if | 5 ++--- refpolicy/policy/modules/system/logging.te | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/refpolicy/policy/modules/kernel/devices.if b/refpolicy/policy/modules/kernel/devices.if index 08b43f0b4..c1b5862d8 100644 --- a/refpolicy/policy/modules/kernel/devices.if +++ b/refpolicy/policy/modules/kernel/devices.if @@ -510,9 +510,8 @@ interface(`dev_create_dev_node',` allow $1 device_t:dir rw_dir_perms; type_transition $1 device_t:$3 $2; - optional_policy(`distro_redhat',` - fs_associate_tmpfs($2) - ') + fs_associate_tmpfs($2) + files_associate_tmp($2) ') ######################################## diff --git a/refpolicy/policy/modules/system/logging.te b/refpolicy/policy/modules/system/logging.te index 8cff50b45..e7869a512 100644 --- a/refpolicy/policy/modules/system/logging.te +++ b/refpolicy/policy/modules/system/logging.te @@ -50,9 +50,8 @@ files_tmp_file(syslogd_tmp_t) type syslogd_var_run_t; files_pid_file(syslogd_var_run_t) -type var_log_t, logfile; -files_type(var_log_t) -files_associate_tmp(var_log_t) +type var_log_t; +logging_log_file(var_log_t) ######################################## #