From 5a45e70177bdaa5eaeb2e8a7caa6124ae68535f8 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Jun 13 2005 20:00:36 +0000 Subject: rename setattr removable_device_t --- diff --git a/refpolicy/policy/modules/kernel/storage.if b/refpolicy/policy/modules/kernel/storage.if index dd4ee09..2439fcb 100644 --- a/refpolicy/policy/modules/kernel/storage.if +++ b/refpolicy/policy/modules/kernel/storage.if @@ -404,14 +404,14 @@ define(`storage_dontaudit_getattr_removable_device_depend',` ## ## # -define(`storage_set_removable_device_attributes',` +define(`storage_setattr_removable_device',` requires_block_template(`$0'_depend) dev_list_all_dev_nodes($1) allow $1 removable_device_t:blk_file setattr; ') -define(`storage_set_removable_device_attributes_depend',` +define(`storage_setattr_removable_device_depend',` type removable_device_t; class blk_file setattr; diff --git a/refpolicy/policy/modules/system/authlogin.te b/refpolicy/policy/modules/system/authlogin.te index 5af1281..9cc541d 100644 --- a/refpolicy/policy/modules/system/authlogin.te +++ b/refpolicy/policy/modules/system/authlogin.te @@ -145,7 +145,7 @@ kernel_use_fd(pam_console_t) storage_getattr_fixed_disk(pam_console_t) storage_setattr_fixed_disk(pam_console_t) storage_getattr_removable_device(pam_console_t) -storage_set_removable_device_attributes(pam_console_t) +storage_setattr_removable_device(pam_console_t) term_use_console(pam_console_t) term_getattr_unallocated_ttys(pam_console_t) diff --git a/refpolicy/policy/modules/system/hotplug.te b/refpolicy/policy/modules/system/hotplug.te index 6e59141..991c4fb 100644 --- a/refpolicy/policy/modules/system/hotplug.te +++ b/refpolicy/policy/modules/system/hotplug.te @@ -64,7 +64,7 @@ dev_read_urand(hotplug_t) fs_getattr_all_fs(hotplug_t) storage_setattr_fixed_disk(hotplug_t) -storage_set_removable_device_attributes(hotplug_t) +storage_setattr_removable_device(hotplug_t) term_dontaudit_use_console(hotplug_t) diff --git a/refpolicy/policy/modules/system/init.te b/refpolicy/policy/modules/system/init.te index 929da00..b7b1143 100644 --- a/refpolicy/policy/modules/system/init.te +++ b/refpolicy/policy/modules/system/init.te @@ -225,7 +225,7 @@ fs_getattr_all_fs(initrc_t) storage_getattr_fixed_disk(initrc_t) storage_setattr_fixed_disk(initrc_t) -storage_set_removable_device_attributes(initrc_t) +storage_setattr_removable_device(initrc_t) term_use_all_terms(initrc_t) term_reset_tty_labels(initrc_t)