|
Chris PeBenito |
29af4c |
policy_module(lvm, 1.12.0)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type clvmd_t;
|
|
Chris PeBenito |
17de1b |
type clvmd_exec_t;
|
|
Chris PeBenito |
c0f5fa |
init_daemon_domain(clvmd_t, clvmd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
bd34ef |
type clvmd_initrc_exec_t;
|
|
Chris PeBenito |
bd34ef |
init_script_file(clvmd_initrc_exec_t)
|
|
Chris PeBenito |
bd34ef |
|
|
Dan Walsh |
a66812 |
type clmvd_tmpfs_t;
|
|
Dan Walsh |
a66812 |
files_tmpfs_file(clmvd_tmpfs_t)
|
|
Dan Walsh |
a66812 |
|
|
Chris PeBenito |
17de1b |
type clvmd_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(clvmd_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type lvm_t;
|
|
Chris PeBenito |
e070dd |
type lvm_exec_t;
|
|
Chris PeBenito |
c0f5fa |
init_system_domain(lvm_t, lvm_exec_t)
|
|
Chris PeBenito |
17de1b |
# needs privowner because it assigns the identity system_u to device nodes
|
|
Chris PeBenito |
17de1b |
# but runs as the identity of the sysadmin
|
|
Chris PeBenito |
17de1b |
domain_obj_id_change_exemption(lvm_t)
|
|
Chris PeBenito |
17de1b |
role system_r types lvm_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type lvm_etc_t;
|
|
Chris PeBenito |
17de1b |
files_type(lvm_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type lvm_lock_t;
|
|
Chris PeBenito |
17de1b |
files_lock_file(lvm_lock_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type lvm_metadata_t;
|
|
Chris PeBenito |
17de1b |
files_type(lvm_metadata_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d6d16b |
type lvm_var_lib_t;
|
|
Chris PeBenito |
d6d16b |
files_type(lvm_var_lib_t)
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
17de1b |
type lvm_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(lvm_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type lvm_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(lvm_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Cluster LVM daemon local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
339235 |
allow clvmd_t self:capability { sys_nice chown ipc_lock sys_admin mknod };
|
|
Chris PeBenito |
17de1b |
dontaudit clvmd_t self:capability sys_tty_config;
|
|
Chris PeBenito |
3f67f7 |
allow clvmd_t self:process { signal_perms setsched };
|
|
Chris PeBenito |
cc9130 |
dontaudit clvmd_t self:process ptrace;
|
|
Chris PeBenito |
17de1b |
allow clvmd_t self:socket create_socket_perms;
|
|
Chris PeBenito |
c0868a |
allow clvmd_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow clvmd_t self:unix_stream_socket { connectto create_stream_socket_perms };
|
|
Chris PeBenito |
17de1b |
allow clvmd_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow clvmd_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Dan Walsh |
a66812 |
manage_dirs_pattern(clvmd_t, clmvd_tmpfs_t, clmvd_tmpfs_t)
|
|
Dan Walsh |
a66812 |
manage_files_pattern(clvmd_t, clmvd_tmpfs_t,clmvd_tmpfs_t)
|
|
Dan Walsh |
a66812 |
fs_tmpfs_filetrans(clvmd_t, clmvd_tmpfs_t, { dir file })
|
|
Dan Walsh |
a66812 |
|
|
Chris PeBenito |
c0f5fa |
manage_files_pattern(clvmd_t, clvmd_var_run_t, clvmd_var_run_t)
|
|
Chris PeBenito |
c0f5fa |
files_pid_filetrans(clvmd_t, clvmd_var_run_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0f5fa |
read_files_pattern(clvmd_t, lvm_metadata_t, lvm_metadata_t)
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(clvmd_t)
|
|
Chris PeBenito |
d6d16b |
kernel_read_system_state(clvmd_t)
|
|
Chris PeBenito |
17de1b |
kernel_list_proc(clvmd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_proc_symlinks(clvmd_t)
|
|
Chris PeBenito |
d6d16b |
kernel_search_debugfs(clvmd_t)
|
|
Chris PeBenito |
6b19be |
kernel_dontaudit_getattr_core_if(clvmd_t)
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
d6d16b |
corecmd_exec_shell(clvmd_t)
|
|
Chris PeBenito |
8021cb |
corecmd_getattr_bin_files(clvmd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(clvmd_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(clvmd_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(clvmd_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(clvmd_t)
|
|
Chris PeBenito |
668b30 |
corenet_raw_sendrecv_generic_if(clvmd_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(clvmd_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(clvmd_t)
|
|
Chris PeBenito |
c12621 |
corenet_raw_sendrecv_generic_node(clvmd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(clvmd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(clvmd_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(clvmd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_reserved_port(clvmd_t)
|
|
Chris PeBenito |
17de1b |
corenet_dontaudit_tcp_bind_all_reserved_ports(clvmd_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_generic_server_packets(clvmd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(clvmd_t)
|
|
Chris PeBenito |
339235 |
dev_manage_generic_symlinks(clvmd_t)
|
|
Chris PeBenito |
339235 |
dev_relabel_generic_dev_dirs(clvmd_t)
|
|
Chris PeBenito |
339235 |
dev_manage_generic_blk_files(clvmd_t)
|
|
Chris PeBenito |
d6d16b |
dev_manage_generic_chr_files(clvmd_t)
|
|
Chris PeBenito |
6b19be |
dev_rw_lvm_control(clvmd_t)
|
|
Chris PeBenito |
6b19be |
dev_dontaudit_getattr_all_blk_files(clvmd_t)
|
|
Chris PeBenito |
6b19be |
dev_dontaudit_getattr_all_chr_files(clvmd_t)
|
|
Chris PeBenito |
339235 |
dev_create_generic_dirs(clvmd_t)
|
|
Chris PeBenito |
339235 |
dev_delete_generic_dirs(clvmd_t)
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
d6d16b |
files_read_etc_files(clvmd_t)
|
|
Chris PeBenito |
d6d16b |
files_list_usr(clvmd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(clvmd_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(clvmd_t)
|
|
Chris PeBenito |
6b19be |
fs_dontaudit_list_tmpfs(clvmd_t)
|
|
Chris PeBenito |
c5561c |
fs_dontaudit_read_removable_files(clvmd_t)
|
|
Chris PeBenito |
bd34ef |
fs_rw_anon_inodefs_files(clvmd_t)
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
6b19be |
storage_dontaudit_getattr_removable_dev(clvmd_t)
|
|
Chris PeBenito |
339235 |
storage_manage_fixed_disk(clvmd_t)
|
|
Chris PeBenito |
339235 |
storage_dev_filetrans_fixed_disk(clvmd_t)
|
|
Chris PeBenito |
339235 |
storage_relabel_fixed_disk(clvmd_t)
|
|
Chris PeBenito |
339235 |
storage_raw_read_fixed_disk(clvmd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(clvmd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0cf6e |
auth_use_nsswitch(clvmd_t)
|
|
Chris PeBenito |
c0cf6e |
|
|
Chris PeBenito |
339235 |
init_dontaudit_getattr_initctl(clvmd_t)
|
|
Chris PeBenito |
339235 |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(clvmd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(clvmd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
seutil_dontaudit_search_config(clvmd_t)
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(clvmd_t)
|
|
Chris PeBenito |
339235 |
seutil_read_config(clvmd_t)
|
|
Chris PeBenito |
339235 |
seutil_read_file_contexts(clvmd_t)
|
|
Chris PeBenito |
339235 |
seutil_search_default_contexts(clvmd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(clvmd_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(clvmd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d6d16b |
lvm_domtrans(clvmd_t)
|
|
Chris PeBenito |
d6d16b |
lvm_read_config(clvmd_t)
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
339235 |
ifdef(`distro_redhat',`
|
|
Chris PeBenito |
339235 |
optional_policy(`
|
|
Chris PeBenito |
339235 |
unconfined_domain(clvmd_t)
|
|
Chris PeBenito |
339235 |
')
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
aisexec_stream_connect(clvmd_t)
|
|
Dan Walsh |
3eaa99 |
corosync_stream_connect(clvmd_t)
|
|
Chris PeBenito |
339235 |
')
|
|
Chris PeBenito |
339235 |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
d6d16b |
ccs_stream_connect(clvmd_t)
|
|
Chris PeBenito |
d6d16b |
')
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
d6d16b |
optional_policy(`
|
|
Chris PeBenito |
6b19be |
gpm_dontaudit_getattr_gpmctl(clvmd_t)
|
|
Chris PeBenito |
6b19be |
')
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
6b19be |
optional_policy(`
|
|
Chris PeBenito |
d6d16b |
ricci_dontaudit_rw_modcluster_pipes(clvmd_t)
|
|
Chris PeBenito |
d6d16b |
ricci_dontaudit_use_modcluster_fds(clvmd_t)
|
|
Chris PeBenito |
d6d16b |
')
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
d6d16b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(clvmd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# LVM Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# DAC overrides and mknod for modifying /dev entries (vgmknodes)
|
|
Chris PeBenito |
17de1b |
# rawio needed for dmraid
|
|
Chris PeBenito |
339235 |
# net_admin for multipath
|
|
Chris PeBenito |
339235 |
allow lvm_t self:capability { dac_override fowner ipc_lock sys_admin sys_nice mknod chown sys_resource sys_rawio net_admin };
|
|
Chris PeBenito |
17de1b |
dontaudit lvm_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow lvm_t self:process { sigchld sigkill sigstop signull signal };
|
|
Chris PeBenito |
17de1b |
# LVM will complain a lot if it cannot set its priority.
|
|
Chris PeBenito |
17de1b |
allow lvm_t self:process setsched;
|
|
Dan Walsh |
3eaa99 |
allow lvm_t self:sem create_sem_perms;
|
|
Chris PeBenito |
17de1b |
allow lvm_t self:file rw_file_perms;
|
|
Chris PeBenito |
bd34ef |
allow lvm_t self:fifo_file manage_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow lvm_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
a5e213 |
allow lvm_t self:netlink_kobject_uevent_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
339235 |
allow lvm_t self:unix_stream_socket { connectto create_stream_socket_perms };
|
|
Chris PeBenito |
339235 |
allow lvm_t clvmd_t:unix_stream_socket { connectto rw_socket_perms };
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
c0f5fa |
manage_dirs_pattern(lvm_t, lvm_tmp_t, lvm_tmp_t)
|
|
Chris PeBenito |
c0f5fa |
manage_files_pattern(lvm_t, lvm_tmp_t, lvm_tmp_t)
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(lvm_t, lvm_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# /lib/lvm-<version> holds the actual LVM binaries (and symlinks)
|
|
Chris PeBenito |
c0f5fa |
read_files_pattern(lvm_t, lvm_exec_t, lvm_exec_t)
|
|
Chris PeBenito |
c0f5fa |
read_lnk_files_pattern(lvm_t, lvm_exec_t, lvm_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# LVM is split into many individual binaries
|
|
Chris PeBenito |
17de1b |
can_exec(lvm_t, lvm_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# Creating lock files
|
|
Chris PeBenito |
c0f5fa |
manage_files_pattern(lvm_t, lvm_lock_t, lvm_lock_t)
|
|
Chris PeBenito |
c0f5fa |
files_lock_filetrans(lvm_t, lvm_lock_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0f5fa |
manage_dirs_pattern(lvm_t, lvm_var_lib_t, lvm_var_lib_t)
|
|
Chris PeBenito |
c0f5fa |
manage_files_pattern(lvm_t, lvm_var_lib_t, lvm_var_lib_t)
|
|
Chris PeBenito |
dccbb8 |
files_var_lib_filetrans(lvm_t, lvm_var_lib_t, { dir file })
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
c0f5fa |
manage_dirs_pattern(lvm_t, lvm_var_run_t, lvm_var_run_t)
|
|
Chris PeBenito |
c0f5fa |
manage_files_pattern(lvm_t, lvm_var_run_t, lvm_var_run_t)
|
|
Chris PeBenito |
c0f5fa |
manage_sock_files_pattern(lvm_t, lvm_var_run_t, lvm_var_run_t)
|
|
Chris PeBenito |
dccbb8 |
files_pid_filetrans(lvm_t, lvm_var_run_t, { file sock_file })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0f5fa |
read_files_pattern(lvm_t, lvm_etc_t, lvm_etc_t)
|
|
Chris PeBenito |
c0f5fa |
read_lnk_files_pattern(lvm_t, lvm_etc_t, lvm_etc_t)
|
|
Chris PeBenito |
17de1b |
# Write to /etc/lvm, /etc/lvmtab, /etc/lvmtab.d
|
|
Chris PeBenito |
c0f5fa |
manage_files_pattern(lvm_t, lvm_metadata_t, lvm_metadata_t)
|
|
Chris PeBenito |
c0f5fa |
filetrans_pattern(lvm_t, lvm_etc_t, lvm_metadata_t, file)
|
|
Chris PeBenito |
c0f5fa |
files_etc_filetrans(lvm_t, lvm_metadata_t, file)
|
|
Chris PeBenito |
339235 |
files_search_mnt(lvm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Dan Walsh |
3eaa99 |
kernel_get_sysvipc_info(lvm_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(lvm_t)
|
|
Dan Walsh |
3eaa99 |
kernel_read_kernel_sysctls(lvm_t)
|
|
Chris PeBenito |
17de1b |
# Read system variables in /proc/sys
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(lvm_t)
|
|
Chris PeBenito |
17de1b |
# it has no reason to need this
|
|
Chris PeBenito |
17de1b |
kernel_dontaudit_getattr_core_if(lvm_t)
|
|
Chris PeBenito |
339235 |
kernel_use_fds(lvm_t)
|
|
Dan Walsh |
3eaa99 |
kernel_request_load_module(lvm_t)
|
|
Chris PeBenito |
bd34ef |
kernel_search_debugfs(lvm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
568efb |
corecmd_exec_bin(lvm_t)
|
|
Chris PeBenito |
568efb |
corecmd_exec_shell(lvm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_create_generic_chr_files(lvm_t)
|
|
Chris PeBenito |
c5561c |
dev_delete_generic_dirs(lvm_t)
|
|
Chris PeBenito |
17de1b |
dev_read_rand(lvm_t)
|
|
Chris PeBenito |
17de1b |
dev_read_urand(lvm_t)
|
|
Chris PeBenito |
17de1b |
dev_rw_lvm_control(lvm_t)
|
|
Chris PeBenito |
17de1b |
dev_manage_generic_symlinks(lvm_t)
|
|
Chris PeBenito |
17de1b |
dev_relabel_generic_dev_dirs(lvm_t)
|
|
Chris PeBenito |
17de1b |
dev_manage_generic_blk_files(lvm_t)
|
|
Chris PeBenito |
17de1b |
# Read /sys/block. Device mapper metadata is kept there.
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(lvm_t)
|
|
Chris PeBenito |
17de1b |
# cjp: this has no effect since LVM does not
|
|
Chris PeBenito |
17de1b |
# have lnk_file relabelto for anything else.
|
|
Chris PeBenito |
17de1b |
# perhaps this should be blk_files?
|
|
Chris PeBenito |
17de1b |
dev_relabel_generic_symlinks(lvm_t)
|
|
Chris PeBenito |
17de1b |
# LVM (vgscan) scans for devices by stating every file in /dev and applying a regex...
|
|
Chris PeBenito |
17de1b |
dev_dontaudit_read_all_chr_files(lvm_t)
|
|
Chris PeBenito |
17de1b |
dev_dontaudit_read_all_blk_files(lvm_t)
|
|
Chris PeBenito |
17de1b |
dev_dontaudit_getattr_generic_chr_files(lvm_t)
|
|
Chris PeBenito |
17de1b |
dev_dontaudit_getattr_generic_blk_files(lvm_t)
|
|
Chris PeBenito |
17de1b |
dev_dontaudit_getattr_generic_pipes(lvm_t)
|
|
Chris PeBenito |
17de1b |
dev_create_generic_dirs(lvm_t)
|
|
Dan Walsh |
3eaa99 |
dev_rw_generic_files(lvm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
568efb |
domain_use_interactive_fds(lvm_t)
|
|
Chris PeBenito |
568efb |
domain_read_all_domains_state(lvm_t)
|
|
Chris PeBenito |
568efb |
|
|
Chris PeBenito |
568efb |
files_read_usr_files(lvm_t)
|
|
Chris PeBenito |
568efb |
files_read_etc_files(lvm_t)
|
|
Chris PeBenito |
568efb |
files_read_etc_runtime_files(lvm_t)
|
|
Chris PeBenito |
568efb |
# for when /usr is not mounted:
|
|
Chris PeBenito |
568efb |
files_dontaudit_search_isid_type_dirs(lvm_t)
|
|
Dan Walsh |
3eaa99 |
files_dontaudit_getattr_tmpfs_files(lvm_t)
|
|
Chris PeBenito |
568efb |
|
|
Dan Walsh |
3eaa99 |
fs_getattr_all_fs(lvm_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(lvm_t)
|
|
Chris PeBenito |
465510 |
fs_list_tmpfs(lvm_t)
|
|
Chris PeBenito |
17de1b |
fs_read_tmpfs_symlinks(lvm_t)
|
|
Chris PeBenito |
17de1b |
fs_dontaudit_read_removable_files(lvm_t)
|
|
Chris PeBenito |
6b19be |
fs_dontaudit_getattr_tmpfs_files(lvm_t)
|
|
Chris PeBenito |
bd34ef |
fs_rw_anon_inodefs_files(lvm_t)
|
|
Chris PeBenito |
bd34ef |
|
|
Chris PeBenito |
bd34ef |
mls_file_read_all_levels(lvm_t)
|
|
Chris PeBenito |
bd34ef |
mls_file_write_to_clearance(lvm_t)
|
|
Dan Walsh |
3eaa99 |
mls_file_upgrade(lvm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
568efb |
selinux_get_fs_mount(lvm_t)
|
|
Chris PeBenito |
568efb |
selinux_validate_context(lvm_t)
|
|
Chris PeBenito |
568efb |
selinux_compute_access_vector(lvm_t)
|
|
Chris PeBenito |
568efb |
selinux_compute_create_context(lvm_t)
|
|
Chris PeBenito |
568efb |
selinux_compute_relabel_context(lvm_t)
|
|
Chris PeBenito |
568efb |
selinux_compute_user_contexts(lvm_t)
|
|
Chris PeBenito |
568efb |
|
|
Chris PeBenito |
17de1b |
storage_relabel_fixed_disk(lvm_t)
|
|
Chris PeBenito |
17de1b |
storage_dontaudit_read_removable_device(lvm_t)
|
|
Chris PeBenito |
17de1b |
# LVM creates block devices in /dev/mapper or /dev/<vg>
|
|
Chris PeBenito |
17de1b |
# depending on its version
|
|
Chris PeBenito |
17de1b |
# LVM(2) needs to create directores (/dev/mapper, /dev/<vg>)
|
|
Chris PeBenito |
17de1b |
# and links from /dev/<vg> to /dev/mapper/<vg>-<lv>
|
|
Chris PeBenito |
17de1b |
# cjp: need create interface here for fixed disk create
|
|
Chris PeBenito |
17de1b |
storage_dev_filetrans_fixed_disk(lvm_t)
|
|
Chris PeBenito |
17de1b |
# Access raw devices and old /dev/lvm (c 109,0). Is this needed?
|
|
Chris PeBenito |
17de1b |
storage_manage_fixed_disk(lvm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
bd34ef |
term_use_all_terms(lvm_t)
|
|
Chris PeBenito |
bd34ef |
|
|
Chris PeBenito |
17de1b |
init_use_fds(lvm_t)
|
|
Chris PeBenito |
17de1b |
init_dontaudit_getattr_initctl(lvm_t)
|
|
Chris PeBenito |
17de1b |
init_use_script_ptys(lvm_t)
|
|
Chris PeBenito |
bd34ef |
init_read_script_state(lvm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(lvm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(lvm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
seutil_read_config(lvm_t)
|
|
Chris PeBenito |
17de1b |
seutil_read_file_contexts(lvm_t)
|
|
Chris PeBenito |
17de1b |
seutil_search_default_contexts(lvm_t)
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(lvm_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
userdom_use_user_terminals(lvm_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
17de1b |
ifdef(`distro_redhat',`
|
|
Chris PeBenito |
17de1b |
# this is from the initrd:
|
|
Chris PeBenito |
17de1b |
files_rw_isid_type_dirs(lvm_t)
|
|
Chris PeBenito |
339235 |
|
|
Chris PeBenito |
339235 |
optional_policy(`
|
|
Chris PeBenito |
339235 |
unconfined_domain(lvm_t)
|
|
Chris PeBenito |
339235 |
')
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
aisexec_stream_connect(lvm_t)
|
|
Dan Walsh |
3eaa99 |
corosync_stream_connect(lvm_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
bootloader_rw_tmp_files(lvm_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
d6d16b |
ccs_stream_connect(lvm_t)
|
|
Chris PeBenito |
d6d16b |
')
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
d6d16b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
gpm_dontaudit_getattr_gpmctl(lvm_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
339235 |
dbus_system_bus_client(lvm_t)
|
|
Chris PeBenito |
339235 |
|
|
Chris PeBenito |
bd34ef |
optional_policy(`
|
|
Chris PeBenito |
bd34ef |
hal_dbus_chat(lvm_t)
|
|
Chris PeBenito |
bd34ef |
')
|
|
Chris PeBenito |
339235 |
')
|
|
Chris PeBenito |
339235 |
|
|
Chris PeBenito |
339235 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
livecd_rw_semaphores(lvm_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Chris PeBenito |
339235 |
modutils_domtrans_insmod(lvm_t)
|
|
Chris PeBenito |
339235 |
')
|
|
Chris PeBenito |
339235 |
|
|
Chris PeBenito |
339235 |
optional_policy(`
|
|
Chris PeBenito |
339235 |
rpm_manage_script_tmp_files(lvm_t)
|
|
Chris PeBenito |
339235 |
')
|
|
Chris PeBenito |
339235 |
|
|
Chris PeBenito |
339235 |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(lvm_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
339235 |
|
|
Chris PeBenito |
339235 |
optional_policy(`
|
|
Chris PeBenito |
bd34ef |
virt_manage_images(lvm_t)
|
|
Chris PeBenito |
bd34ef |
')
|
|
Chris PeBenito |
bd34ef |
|
|
Chris PeBenito |
bd34ef |
optional_policy(`
|
|
Chris PeBenito |
339235 |
xen_append_log(lvm_t)
|
|
Chris PeBenito |
339235 |
xen_dontaudit_rw_unix_stream_sockets(lvm_t)
|
|
Chris PeBenito |
339235 |
')
|