Chris PeBenito dce68d
Chris PeBenito 704327
policy_module(updfstab,1.0.1)
Chris PeBenito dce68d
Chris PeBenito dce68d
########################################
Chris PeBenito dce68d
#
Chris PeBenito dce68d
# Declarations
Chris PeBenito dce68d
#
Chris PeBenito dce68d
Chris PeBenito dce68d
type updfstab_t;
Chris PeBenito dce68d
type updfstab_exec_t;
Chris PeBenito a525f2
init_system_domain(updfstab_t,updfstab_exec_t)
Chris PeBenito dce68d
Chris PeBenito dce68d
########################################
Chris PeBenito dce68d
#
Chris PeBenito dce68d
# Local policy
Chris PeBenito dce68d
#
Chris PeBenito dce68d
Chris PeBenito dce68d
allow updfstab_t self:capability dac_override;
Chris PeBenito dce68d
dontaudit updfstab_t self:capability { sys_admin sys_tty_config };
Chris PeBenito dce68d
allow updfstab_t self:process signal_perms;
Chris PeBenito dce68d
allow updfstab_t self:fifo_file { getattr read write ioctl };
Chris PeBenito dce68d
Chris PeBenito dce68d
kernel_use_fd(updfstab_t)
Chris PeBenito dce68d
kernel_read_kernel_sysctl(updfstab_t)
Chris PeBenito dce68d
kernel_dontaudit_write_kernel_sysctl(updfstab_t)
Chris PeBenito dce68d
# for /proc/partitions
Chris PeBenito dce68d
kernel_read_system_state(updfstab_t)
Chris PeBenito dce68d
# cjp: why is this required
Chris PeBenito dce68d
kernel_change_ring_buffer_level(updfstab_t)
Chris PeBenito dce68d
Chris PeBenito dce68d
dev_read_sysfs(updfstab_t)
Chris PeBenito dce68d
dev_manage_generic_symlinks(updfstab_t)
Chris PeBenito dce68d
Chris PeBenito dce68d
fs_getattr_xattr_fs(updfstab_t)
Chris PeBenito dce68d
fs_search_auto_mountpoints(updfstab_t)
Chris PeBenito dce68d
Chris PeBenito dce68d
selinux_get_fs_mount(updfstab_t)
Chris PeBenito dce68d
selinux_validate_context(updfstab_t)
Chris PeBenito dce68d
selinux_compute_access_vector(updfstab_t)
Chris PeBenito dce68d
selinux_compute_create_context(updfstab_t)
Chris PeBenito dce68d
selinux_compute_relabel_context(updfstab_t)
Chris PeBenito dce68d
selinux_compute_user_contexts(updfstab_t)
Chris PeBenito dce68d
Chris PeBenito dce68d
storage_raw_read_fixed_disk(updfstab_t)
Chris PeBenito dce68d
storage_raw_write_fixed_disk(updfstab_t)
Chris PeBenito a525f2
storage_raw_read_removable_device(updfstab_t)
Chris PeBenito a525f2
storage_raw_write_removable_device(updfstab_t)
Chris PeBenito dce68d
storage_read_scsi_generic(updfstab_t)
Chris PeBenito dce68d
storage_write_scsi_generic(updfstab_t)
Chris PeBenito dce68d
Chris PeBenito dce68d
term_dontaudit_use_console(updfstab_t)
Chris PeBenito dce68d
Chris PeBenito dce68d
corecmd_exec_bin(updfstab_t)
Chris PeBenito dce68d
corecmd_exec_sbin(updfstab_t)
Chris PeBenito dce68d
corecmd_exec_ls(updfstab_t)
Chris PeBenito dce68d
Chris PeBenito dce68d
domain_use_wide_inherit_fd(updfstab_t)
Chris PeBenito dce68d
Chris PeBenito dce68d
files_manage_mnt_files(updfstab_t)
Chris PeBenito dce68d
files_manage_mnt_dirs(updfstab_t)
Chris PeBenito dce68d
files_manage_mnt_symlinks(updfstab_t)
Chris PeBenito dce68d
files_manage_etc_files(updfstab_t)
Chris PeBenito dce68d
files_dontaudit_search_home(updfstab_t)
Chris PeBenito dce68d
# for /etc/mtab
Chris PeBenito dce68d
files_read_etc_runtime_files(updfstab_t)
Chris PeBenito dce68d
Chris PeBenito dce68d
init_use_fd(updfstab_t)
Chris PeBenito dce68d
init_use_script_pty(updfstab_t)
Chris PeBenito dce68d
Chris PeBenito dce68d
libs_use_ld_so(updfstab_t)
Chris PeBenito dce68d
libs_use_shared_libs(updfstab_t)
Chris PeBenito dce68d
Chris PeBenito dce68d
logging_send_syslog_msg(updfstab_t)
Chris PeBenito dce68d
logging_search_logs(updfstab_t)
Chris PeBenito dce68d
Chris PeBenito dce68d
miscfiles_read_localization(updfstab_t)
Chris PeBenito dce68d
Chris PeBenito dce68d
seutil_read_config(updfstab_t)
Chris PeBenito dce68d
seutil_read_default_contexts(updfstab_t)
Chris PeBenito dce68d
seutil_read_file_contexts(updfstab_t)
Chris PeBenito dce68d
Chris PeBenito dce68d
userdom_use_sysadm_tty(updfstab_t)
Chris PeBenito dce68d
userdom_dontaudit_search_all_users_home(updfstab_t)
Chris PeBenito dce68d
userdom_dontaudit_use_unpriv_user_fd(updfstab_t)
Chris PeBenito dce68d
Chris PeBenito dce68d
ifdef(`targeted_policy',`
Chris PeBenito dce68d
	term_dontaudit_use_unallocated_tty(updfstab_t)
Chris PeBenito dce68d
	term_dontaudit_use_generic_pty(updfstab_t)
Chris PeBenito dce68d
	files_dontaudit_read_root_file(updfstab_t)
Chris PeBenito dce68d
')
Chris PeBenito dce68d
Chris PeBenito dce68d
optional_policy(`authlogin.te',`
Chris PeBenito dce68d
	auth_domtrans_pam_console(updfstab_t)
Chris PeBenito dce68d
')
Chris PeBenito dce68d
Chris PeBenito 0c3d17
optional_policy(`dbus.te',`
Chris PeBenito 0c3d17
	dbus_system_bus_client_template(updfstab,updfstab_t)
Chris PeBenito 631ee4
	dbus_send_system_bus_msg(updfstab_t)
Chris PeBenito 0c3d17
')
Chris PeBenito 0c3d17
Chris PeBenito 704327
optional_policy(`hald.te',`
Chris PeBenito 704327
	hal_stream_connect(updfstab_t)
Chris PeBenito 704327
')
Chris PeBenito 704327
Chris PeBenito dce68d
optional_policy(`modutils.te',`
Chris PeBenito dce68d
	modutils_read_module_conf(updfstab_t)
Chris PeBenito dce68d
	modutils_exec_insmod(updfstab_t)
Chris PeBenito dce68d
	modutils_read_mods_deps(updfstab_t)
Chris PeBenito dce68d
')
Chris PeBenito dce68d
Chris PeBenito a525f2
optional_policy(`nscd.te',`
Chris PeBenito a525f2
	nscd_use_socket(updfstab_t)
Chris PeBenito a525f2
')
Chris PeBenito a525f2
Chris PeBenito dce68d
optional_policy(`selinuxutil.te',`
Chris PeBenito dce68d
	seutil_sigchld_newrole(updfstab_t)
Chris PeBenito dce68d
')
Chris PeBenito dce68d
Chris PeBenito dce68d
optional_policy(`udev.te',`
Chris PeBenito dce68d
	udev_read_db(updfstab_t)
Chris PeBenito dce68d
')
Chris PeBenito c0d156
Chris PeBenito c0d156
ifdef(`TODO',`
Chris PeBenito c0d156
optional_policy(`rhgb.te',`
Chris PeBenito c0d156
	rhgb_domain(updfstab_t)
Chris PeBenito c0d156
')
Chris PeBenito 605ba2
allow updfstab_t tmpfs_t:dir getattr;
Chris PeBenito c0d156
')
Chris PeBenito 0b12fa
Chris PeBenito 0b12fa
optional_policy(`dbus.te',`
Chris PeBenito 0b12fa
	allow initrc_t updfstab_t:dbus send_msg;
Chris PeBenito 0b12fa
	allow updfstab_t initrc_t:dbus send_msg;
Chris PeBenito 0b12fa
')