Sep 13 19:20:51 localhost.localdomain audisp-syslog[1531]: node=localhost type=AVC msg=audit(1694632851.771:656): avc: denied { read } for pid=2039 comm="colord" name="hwdb.bin" dev="dm-1" ino=393952 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:systemd_hwdb_t:s0 tclass=file permissive=1 Sep 13 19:20:51 localhost.localdomain audisp-syslog[1531]: node=localhost type=AVC msg=audit(1694632851.771:656): avc: denied { open } for pid=2039 comm="colord" path="/etc/udev/hwdb.bin" dev="dm-1" ino=393952 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:systemd_hwdb_t:s0 tclass=file permissive=1 Sep 13 19:20:51 localhost.localdomain audisp-syslog[1531]: node=localhost type=AVC msg=audit(1694632851.771:657): avc: denied { getattr } for pid=2039 comm="colord" path="/etc/udev/hwdb.bin" dev="dm-1" ino=393952 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:systemd_hwdb_t:s0 tclass=file permissive=1 Sep 13 19:20:51 localhost.localdomain audisp-syslog[1531]: node=localhost type=AVC msg=audit(1694632851.771:658): avc: denied { map } for pid=2039 comm="colord" path="/etc/udev/hwdb.bin" dev="dm-1" ino=393952 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:systemd_hwdb_t:s0 tclass=file permissive=1 Sep 13 19:21:39 localhost.localdomain audisp-syslog[1531]: node=localhost type=AVC msg=audit(1694632899.106:18931): avc: denied { read } for pid=2039 comm="gdbus" path="/home/toor/.local/share/icc/edid-bb6ad72dc802b000932c73ad20996ae5.icc" dev="dm-9" ino=129692 scontext=system_u:system_r:colord_t:s0 tcontext=toor_u:object_r:xdg_data_t:s0 tclass=file permissive=1 Sep 13 19:21:39 localhost.localdomain audisp-syslog[1531]: node=localhost type=AVC msg=audit(1694632899.362:19182): avc: denied { getattr } for pid=2039 comm="colord" path="/home/toor/.local/share/icc/edid-bb6ad72dc802b000932c73ad20996ae5.icc" dev="dm-9" ino=129692 scontext=system_u:system_r:colord_t:s0 tcontext=toor_u:object_r:xdg_data_t:s0 tclass=file permissive=1 Sep 13 19:21:39 localhost.localdomain audisp-syslog[1531]: node=localhost type=AVC msg=audit(1694632899.362:19183): avc: denied { map } for pid=2039 comm="colord" path="/home/toor/.local/share/icc/edid-bb6ad72dc802b000932c73ad20996ae5.icc" dev="dm-9" ino=129692 scontext=system_u:system_r:colord_t:s0 tcontext=toor_u:object_r:xdg_data_t:s0 tclass=file permissive=1 Sep 13 19:20:55 localhost.localdomain audisp-syslog[1531]: node=localhost type=AVC msg=audit(1694632855.046:678): avc: denied { search } for pid=2039 comm="colord" name="1880" dev="proc" ino=26735 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:system_r:xdm_t:s0 tclass=dir permissive=1 Sep 13 19:20:55 localhost.localdomain audisp-syslog[1531]: node=localhost type=AVC msg=audit(1694632855.046:678): avc: denied { read } for pid=2039 comm="colord" name="cgroup" dev="proc" ino=25503 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:system_r:xdm_t:s0 tclass=file permissive=1 Sep 13 19:20:55 localhost.localdomain audisp-syslog[1531]: node=localhost type=AVC msg=audit(1694632855.046:678): avc: denied { open } for pid=2039 comm="colord" path="/proc/1880/cgroup" dev="proc" ino=25503 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:system_r:xdm_t:s0 tclass=file permissive=1 Sep 13 19:20:55 localhost.localdomain audisp-syslog[1531]: node=localhost type=AVC msg=audit(1694632855.046:679): avc: denied { getattr } for pid=2039 comm="colord" path="/proc/1880/cgroup" dev="proc" ino=25503 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:system_r:xdm_t:s0 tclass=file permissive=1 Sep 13 19:20:55 localhost.localdomain audisp-syslog[1531]: node=localhost type=AVC msg=audit(1694632855.046:680): avc: denied { ioctl } for pid=2039 comm="colord" path="/proc/1880/cgroup" dev="proc" ino=25503 ioctlcmd=0x5401 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:system_r:xdm_t:s0 tclass=file permissive=1 Sep 13 19:20:55 localhost.localdomain audisp-syslog[1531]: node=localhost type=AVC msg=audit(1694632855.047:681): avc: denied { search } for pid=2039 comm="colord" name="sessions" dev="tmpfs" ino=96 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:systemd_sessions_runtime_t:s0 tclass=dir permissive=1 Sep 13 19:20:55 localhost.localdomain audisp-syslog[1531]: node=localhost type=AVC msg=audit(1694632855.047:681): avc: denied { read } for pid=2039 comm="colord" name="c1" dev="tmpfs" ino=1692 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:systemd_sessions_runtime_t:s0 tclass=file permissive=1 Sep 13 19:20:55 localhost.localdomain audisp-syslog[1531]: node=localhost type=AVC msg=audit(1694632855.047:681): avc: denied { open } for pid=2039 comm="colord" path="/run/systemd/sessions/c1" dev="tmpfs" ino=1692 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:systemd_sessions_runtime_t:s0 tclass=file permissive=1 Sep 13 19:20:55 localhost.localdomain audisp-syslog[1531]: node=localhost type=AVC msg=audit(1694632855.047:682): avc: denied { getattr } for pid=2039 comm="colord" path="/run/systemd/sessions/c1" dev="tmpfs" ino=1692 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:systemd_sessions_runtime_t:s0 tclass=file permissive=1 Signed-off-by: Dave Sugar <dsugar100@gmail.com>
162 lines
3.8 KiB
Plaintext
162 lines
3.8 KiB
Plaintext
policy_module(colord)
|
|
|
|
########################################
|
|
#
|
|
# Declarations
|
|
#
|
|
|
|
type colord_t;
|
|
type colord_exec_t;
|
|
dbus_system_domain(colord_t, colord_exec_t)
|
|
|
|
type colord_tmp_t;
|
|
files_tmp_file(colord_tmp_t)
|
|
|
|
type colord_tmpfs_t;
|
|
files_tmpfs_file(colord_tmpfs_t)
|
|
|
|
type colord_var_lib_t;
|
|
files_type(colord_var_lib_t)
|
|
|
|
########################################
|
|
#
|
|
# Local policy
|
|
#
|
|
|
|
allow colord_t self:capability { dac_override dac_read_search };
|
|
dontaudit colord_t self:capability sys_admin;
|
|
allow colord_t self:process signal;
|
|
allow colord_t self:fifo_file rw_fifo_file_perms;
|
|
allow colord_t self:netlink_kobject_uevent_socket create_socket_perms;
|
|
allow colord_t self:tcp_socket { accept listen };
|
|
allow colord_t self:shm create_shm_perms;
|
|
|
|
can_exec(colord_t, colord_exec_t)
|
|
|
|
manage_dirs_pattern(colord_t, colord_tmp_t, colord_tmp_t)
|
|
manage_files_pattern(colord_t, colord_tmp_t, colord_tmp_t)
|
|
files_tmp_filetrans(colord_t, colord_tmp_t, { file dir })
|
|
|
|
manage_dirs_pattern(colord_t, colord_tmpfs_t, colord_tmpfs_t)
|
|
manage_files_pattern(colord_t, colord_tmpfs_t, colord_tmpfs_t)
|
|
fs_tmpfs_filetrans(colord_t, colord_tmpfs_t, { dir file })
|
|
|
|
manage_dirs_pattern(colord_t, colord_var_lib_t, colord_var_lib_t)
|
|
manage_files_pattern(colord_t, colord_var_lib_t, colord_var_lib_t)
|
|
files_var_lib_filetrans(colord_t, colord_var_lib_t, dir)
|
|
allow colord_t colord_var_lib_t:dir watch;
|
|
|
|
kernel_read_device_sysctls(colord_t)
|
|
kernel_read_network_state(colord_t)
|
|
kernel_read_system_state(colord_t)
|
|
kernel_request_load_module(colord_t)
|
|
|
|
corenet_all_recvfrom_netlabel(colord_t)
|
|
corenet_tcp_sendrecv_generic_if(colord_t)
|
|
corenet_udp_sendrecv_generic_if(colord_t)
|
|
corenet_tcp_sendrecv_generic_node(colord_t)
|
|
corenet_udp_sendrecv_generic_node(colord_t)
|
|
corenet_udp_bind_generic_node(colord_t)
|
|
|
|
corenet_sendrecv_ipp_server_packets(colord_t)
|
|
corenet_udp_bind_ipp_port(colord_t)
|
|
|
|
corenet_sendrecv_ipp_client_packets(colord_t)
|
|
corenet_tcp_connect_ipp_port(colord_t)
|
|
|
|
corecmd_exec_bin(colord_t)
|
|
corecmd_exec_shell(colord_t)
|
|
|
|
dev_read_video_dev(colord_t)
|
|
dev_write_video_dev(colord_t)
|
|
dev_rw_printer(colord_t)
|
|
dev_read_rand(colord_t)
|
|
dev_read_sysfs(colord_t)
|
|
dev_read_urand(colord_t)
|
|
dev_list_sysfs(colord_t)
|
|
dev_rw_generic_usb_dev(colord_t)
|
|
|
|
domain_use_interactive_fds(colord_t)
|
|
|
|
files_list_mnt(colord_t)
|
|
files_read_usr_files(colord_t)
|
|
files_map_usr_files(colord_t)
|
|
files_watch_usr_dirs(colord_t)
|
|
|
|
fs_getattr_noxattr_fs(colord_t)
|
|
fs_getattr_tmpfs(colord_t)
|
|
fs_list_noxattr_fs(colord_t)
|
|
fs_read_noxattr_fs_files(colord_t)
|
|
fs_search_all(colord_t)
|
|
fs_dontaudit_getattr_all_fs(colord_t)
|
|
|
|
storage_getattr_fixed_disk_dev(colord_t)
|
|
storage_getattr_removable_dev(colord_t)
|
|
storage_read_scsi_generic(colord_t)
|
|
storage_write_scsi_generic(colord_t)
|
|
|
|
init_read_state(colord_t)
|
|
|
|
auth_use_nsswitch(colord_t)
|
|
|
|
logging_send_syslog_msg(colord_t)
|
|
|
|
miscfiles_read_localization(colord_t)
|
|
|
|
tunable_policy(`use_nfs_home_dirs',`
|
|
fs_getattr_nfs(colord_t)
|
|
fs_read_nfs_files(colord_t)
|
|
')
|
|
|
|
tunable_policy(`use_samba_home_dirs',`
|
|
fs_getattr_cifs(colord_t)
|
|
fs_read_cifs_files(colord_t)
|
|
')
|
|
|
|
optional_policy(`
|
|
cups_read_config(colord_t)
|
|
cups_read_rw_config(colord_t)
|
|
cups_read_state(colord_t)
|
|
cups_stream_connect(colord_t)
|
|
cups_dbus_chat(colord_t)
|
|
')
|
|
|
|
optional_policy(`
|
|
policykit_dbus_chat(colord_t)
|
|
policykit_domtrans_auth(colord_t)
|
|
policykit_read_lib(colord_t)
|
|
policykit_read_reload(colord_t)
|
|
')
|
|
|
|
optional_policy(`
|
|
snmp_read_snmp_var_lib_files(colord_t)
|
|
')
|
|
|
|
optional_policy(`
|
|
sysnet_exec_ifconfig(colord_t)
|
|
')
|
|
|
|
optional_policy(`
|
|
systemd_map_hwdb(colord_t)
|
|
systemd_read_hwdb(colord_t)
|
|
systemd_read_logind_sessions_files(colord_t)
|
|
')
|
|
|
|
optional_policy(`
|
|
udev_read_runtime_files(colord_t)
|
|
')
|
|
|
|
optional_policy(`
|
|
unconfined_dbus_send(colord_t)
|
|
')
|
|
|
|
optional_policy(`
|
|
xdg_read_data_files(colord_t)
|
|
')
|
|
|
|
optional_policy(`
|
|
xserver_read_xdm_lib_files(colord_t)
|
|
xserver_read_xdm_state(colord_t)
|
|
xserver_use_xdm_fds(colord_t)
|
|
')
|