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

131 lines
3.1 KiB
Plaintext
Raw Normal View History

2005-08-08 15:51:15 +00:00
2006-01-17 20:14:04 +00:00
policy_module(updfstab,1.2.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_fd(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)
corecmd_exec_sbin(updfstab_t)
corecmd_exec_ls(updfstab_t)
domain_use_wide_inherit_fd(updfstab_t)
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_fd(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-02 21:08:12 +00:00
userdom_use_sysadm_ttys(updfstab_t)
2005-08-08 15:51:15 +00:00
userdom_dontaudit_search_all_users_home(updfstab_t)
userdom_dontaudit_use_unpriv_user_fd(updfstab_t)
ifdef(`targeted_policy',`
2006-02-02 21:08:12 +00:00
term_dontaudit_use_unallocated_ttys(updfstab_t)
term_dontaudit_use_generic_ptys(updfstab_t)
files_dontaudit_read_root_files(updfstab_t)
2005-08-08 15:51:15 +00:00
')
optional_policy(`authlogin',`
2005-08-08 15:51:15 +00:00
auth_domtrans_pam_console(updfstab_t)
')
optional_policy(`dbus',`
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)
2006-02-02 21:08:12 +00:00
dbus_send_system_bus(updfstab_t)
2005-08-31 20:58:12 +00:00
')
optional_policy(`hal',`
hal_stream_connect(updfstab_t)
2005-11-29 21:27:15 +00:00
hal_dbus_chat(updfstab_t)
')
optional_policy(`modutils',`
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(`nscd',`
2006-02-02 21:08:12 +00:00
nscd_socket_use(updfstab_t)
2005-10-27 14:52:37 +00:00
')
optional_policy(`selinuxutil',`
2005-08-08 15:51:15 +00:00
seutil_sigchld_newrole(updfstab_t)
')
optional_policy(`udev',`
2005-08-08 15:51:15 +00:00
udev_read_db(updfstab_t)
')
ifdef(`TODO',`
2005-09-15 15:34:31 +00:00
allow updfstab_t tmpfs_t:dir getattr;
')