selinux-policy/policy/modules/admin/updfstab.te

121 lines
2.8 KiB
Plaintext
Raw Normal View History

2005-08-08 15:51:15 +00:00
policy_module(updfstab,1.4.0)
2005-08-08 15:51:15 +00:00
########################################
#
# Declarations
#
type updfstab_t;
type updfstab_exec_t;
2005-10-27 14:52:37 +00:00
init_system_domain(updfstab_t,updfstab_exec_t)
2005-08-08 15:51:15 +00:00
########################################
#
# Local policy
#
allow updfstab_t self:capability dac_override;
dontaudit updfstab_t self:capability { sys_admin sys_tty_config };
allow updfstab_t self:process signal_perms;
allow updfstab_t self:fifo_file { getattr read write ioctl };
kernel_use_fds(updfstab_t)
kernel_read_kernel_sysctls(updfstab_t)
2005-08-08 15:51:15 +00:00
kernel_dontaudit_write_kernel_sysctl(updfstab_t)
# for /proc/partitions
kernel_read_system_state(updfstab_t)
# cjp: why is this required
kernel_change_ring_buffer_level(updfstab_t)
dev_read_sysfs(updfstab_t)
dev_manage_generic_symlinks(updfstab_t)
fs_getattr_xattr_fs(updfstab_t)
2005-12-13 20:38:19 +00:00
fs_getattr_tmpfs(updfstab_t)
fs_getattr_tmpfs_dirs(updfstab_t)
2005-08-08 15:51:15 +00:00
fs_search_auto_mountpoints(updfstab_t)
selinux_get_fs_mount(updfstab_t)
selinux_validate_context(updfstab_t)
selinux_compute_access_vector(updfstab_t)
selinux_compute_create_context(updfstab_t)
selinux_compute_relabel_context(updfstab_t)
selinux_compute_user_contexts(updfstab_t)
storage_raw_read_fixed_disk(updfstab_t)
storage_raw_write_fixed_disk(updfstab_t)
2005-10-27 14:52:37 +00:00
storage_raw_read_removable_device(updfstab_t)
storage_raw_write_removable_device(updfstab_t)
2005-08-08 15:51:15 +00:00
storage_read_scsi_generic(updfstab_t)
storage_write_scsi_generic(updfstab_t)
term_dontaudit_use_console(updfstab_t)
corecmd_exec_bin(updfstab_t)
2006-02-20 21:33:25 +00:00
domain_use_interactive_fds(updfstab_t)
2005-08-08 15:51:15 +00:00
files_manage_mnt_files(updfstab_t)
files_manage_mnt_dirs(updfstab_t)
files_manage_mnt_symlinks(updfstab_t)
files_manage_etc_files(updfstab_t)
files_dontaudit_search_home(updfstab_t)
# for /etc/mtab
files_read_etc_runtime_files(updfstab_t)
init_use_fds(updfstab_t)
2006-02-02 21:08:12 +00:00
init_use_script_ptys(updfstab_t)
2005-08-08 15:51:15 +00:00
libs_use_ld_so(updfstab_t)
libs_use_shared_libs(updfstab_t)
logging_send_syslog_msg(updfstab_t)
logging_search_logs(updfstab_t)
miscfiles_read_localization(updfstab_t)
seutil_read_config(updfstab_t)
seutil_read_default_contexts(updfstab_t)
seutil_read_file_contexts(updfstab_t)
2006-02-21 18:40:44 +00:00
userdom_dontaudit_search_all_users_home_content(updfstab_t)
2006-02-20 21:33:25 +00:00
userdom_dontaudit_use_unpriv_user_fds(updfstab_t)
2005-08-08 15:51:15 +00:00
optional_policy(`
2005-08-08 15:51:15 +00:00
auth_domtrans_pam_console(updfstab_t)
')
optional_policy(`
2005-12-02 22:06:05 +00:00
init_dbus_chat_script(updfstab_t)
2005-08-31 20:58:12 +00:00
dbus_system_bus_client_template(updfstab,updfstab_t)
')
optional_policy(`
fstools_getattr_swap_files(updfstab_t)
')
optional_policy(`
hal_stream_connect(updfstab_t)
2005-11-29 21:27:15 +00:00
hal_dbus_chat(updfstab_t)
')
optional_policy(`
2006-02-02 21:08:12 +00:00
modutils_read_module_config(updfstab_t)
2005-08-08 15:51:15 +00:00
modutils_exec_insmod(updfstab_t)
2006-02-02 21:08:12 +00:00
modutils_read_module_deps(updfstab_t)
2005-08-08 15:51:15 +00:00
')
optional_policy(`
2006-02-02 21:08:12 +00:00
nscd_socket_use(updfstab_t)
2005-10-27 14:52:37 +00:00
')
optional_policy(`
2005-08-08 15:51:15 +00:00
seutil_sigchld_newrole(updfstab_t)
')
optional_policy(`
2005-08-08 15:51:15 +00:00
udev_read_db(updfstab_t)
')