diff --git a/policy/modules/admin/bootloader.fc b/policy/modules/admin/bootloader.fc index cdd6d3ddf..0312399d2 100644 --- a/policy/modules/admin/bootloader.fc +++ b/policy/modules/admin/bootloader.fc @@ -2,6 +2,14 @@ /etc/lilo\.conf.* -- gen_context(system_u:object_r:bootloader_etc_t,s0) /etc/yaboot\.conf.* -- gen_context(system_u:object_r:bootloader_etc_t,s0) +/usr/bin/grub -- gen_context(system_u:object_r:bootloader_exec_t,s0) +/usr/bin/grub2?-bios-setup -- gen_context(system_u:object_r:bootloader_exec_t,s0) +/usr/bin/grub2?-install -- gen_context(system_u:object_r:bootloader_exec_t,s0) +/usr/bin/grub2?-mkconfig -- gen_context(system_u:object_r:bootloader_exec_t,s0) +/usr/bin/grub2?-probe -- gen_context(system_u:object_r:bootloader_exec_t,s0) +/usr/bin/lilo.* -- gen_context(system_u:object_r:bootloader_exec_t,s0) +/usr/bin/ybin.* -- gen_context(system_u:object_r:bootloader_exec_t,s0) + /usr/sbin/grub -- gen_context(system_u:object_r:bootloader_exec_t,s0) /usr/sbin/grub2?-bios-setup -- gen_context(system_u:object_r:bootloader_exec_t,s0) /usr/sbin/grub2?-install -- gen_context(system_u:object_r:bootloader_exec_t,s0) diff --git a/policy/modules/admin/consoletype.fc b/policy/modules/admin/consoletype.fc index c5190eef9..4e07dca21 100644 --- a/policy/modules/admin/consoletype.fc +++ b/policy/modules/admin/consoletype.fc @@ -1 +1,3 @@ +/usr/bin/consoletype -- gen_context(system_u:object_r:consoletype_exec_t,s0) + /usr/sbin/consoletype -- gen_context(system_u:object_r:consoletype_exec_t,s0) diff --git a/policy/modules/admin/netutils.fc b/policy/modules/admin/netutils.fc index 5041c1053..4f77e1cc6 100644 --- a/policy/modules/admin/netutils.fc +++ b/policy/modules/admin/netutils.fc @@ -1,7 +1,12 @@ /usr/bin/arping -- gen_context(system_u:object_r:netutils_exec_t,s0) +/usr/bin/fping -- gen_context(system_u:object_r:ping_exec_t,s0) +/usr/bin/hping2 -- gen_context(system_u:object_r:ping_exec_t,s0) +/usr/bin/iptstate -- gen_context(system_u:object_r:netutils_exec_t,s0) /usr/bin/lft -- gen_context(system_u:object_r:traceroute_exec_t,s0) /usr/bin/nmap -- gen_context(system_u:object_r:traceroute_exec_t,s0) /usr/bin/ping.* -- gen_context(system_u:object_r:ping_exec_t,s0) +/usr/bin/send_arp -- gen_context(system_u:object_r:ping_exec_t,s0) +/usr/bin/tcpdump -- gen_context(system_u:object_r:netutils_exec_t,s0) /usr/bin/tracepath.* -- gen_context(system_u:object_r:traceroute_exec_t,s0) /usr/bin/traceroute.* -- gen_context(system_u:object_r:traceroute_exec_t,s0) diff --git a/policy/modules/admin/usermanage.fc b/policy/modules/admin/usermanage.fc index 0e00005a7..620eefc6f 100644 --- a/policy/modules/admin/usermanage.fc +++ b/policy/modules/admin/usermanage.fc @@ -5,8 +5,20 @@ ifdef(`distro_debian',` /usr/bin/chage -- gen_context(system_u:object_r:passwd_exec_t,s0) /usr/bin/chfn -- gen_context(system_u:object_r:chfn_exec_t,s0) /usr/bin/chsh -- gen_context(system_u:object_r:chfn_exec_t,s0) +/usr/bin/crack_[a-z]* -- gen_context(system_u:object_r:crack_exec_t,s0) +/usr/bin/cracklib-[a-z]* -- gen_context(system_u:object_r:crack_exec_t,s0) /usr/bin/gpasswd -- gen_context(system_u:object_r:groupadd_exec_t,s0) +/usr/bin/groupadd -- gen_context(system_u:object_r:groupadd_exec_t,s0) +/usr/bin/groupdel -- gen_context(system_u:object_r:groupadd_exec_t,s0) +/usr/bin/groupmod -- gen_context(system_u:object_r:groupadd_exec_t,s0) +/usr/bin/grpconv -- gen_context(system_u:object_r:admin_passwd_exec_t,s0) +/usr/bin/grpunconv -- gen_context(system_u:object_r:admin_passwd_exec_t,s0) /usr/bin/passwd -- gen_context(system_u:object_r:passwd_exec_t,s0) +/usr/bin/pwconv -- gen_context(system_u:object_r:admin_passwd_exec_t,s0) +/usr/bin/pwunconv -- gen_context(system_u:object_r:admin_passwd_exec_t,s0) +/usr/bin/useradd -- gen_context(system_u:object_r:useradd_exec_t,s0) +/usr/bin/userdel -- gen_context(system_u:object_r:useradd_exec_t,s0) +/usr/bin/usermod -- gen_context(system_u:object_r:useradd_exec_t,s0) /usr/bin/vigr -- gen_context(system_u:object_r:admin_passwd_exec_t,s0) /usr/bin/vipw -- gen_context(system_u:object_r:admin_passwd_exec_t,s0) diff --git a/policy/modules/apps/seunshare.fc b/policy/modules/apps/seunshare.fc index 30a4b9fd0..3899b4c16 100644 --- a/policy/modules/apps/seunshare.fc +++ b/policy/modules/apps/seunshare.fc @@ -1 +1,3 @@ +/usr/bin/seunshare -- gen_context(system_u:object_r:seunshare_exec_t,s0) + /usr/sbin/seunshare -- gen_context(system_u:object_r:seunshare_exec_t,s0) diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc index c0e5b0bfa..411be4be1 100644 --- a/policy/modules/kernel/corecommands.fc +++ b/policy/modules/kernel/corecommands.fc @@ -141,11 +141,17 @@ ifdef(`distro_gentoo',` /usr/bin/bash2 -- gen_context(system_u:object_r:shell_exec_t,s0) /usr/bin/fish -- gen_context(system_u:object_r:shell_exec_t,s0) /usr/bin/git-shell -- gen_context(system_u:object_r:shell_exec_t,s0) +/usr/bin/insmod_ksymoops_clean -- gen_context(system_u:object_r:bin_t,s0) /usr/bin/ksh.* -- gen_context(system_u:object_r:shell_exec_t,s0) +/usr/bin/mkfs\.cramfs -- gen_context(system_u:object_r:bin_t,s0) /usr/bin/mksh -- gen_context(system_u:object_r:shell_exec_t,s0) /usr/bin/mountpoint -- gen_context(system_u:object_r:bin_t,s0) +/usr/bin/nologin -- gen_context(system_u:object_r:shell_exec_t,s0) /usr/bin/sash -- gen_context(system_u:object_r:shell_exec_t,s0) +/usr/bin/sesh -- gen_context(system_u:object_r:shell_exec_t,s0) /usr/bin/scponly -- gen_context(system_u:object_r:shell_exec_t,s0) +/usr/bin/scponlyc -- gen_context(system_u:object_r:shell_exec_t,s0) +/usr/bin/smrsh -- gen_context(system_u:object_r:shell_exec_t,s0) /usr/bin/tcsh -- gen_context(system_u:object_r:shell_exec_t,s0) /usr/bin/yash -- gen_context(system_u:object_r:shell_exec_t,s0) /usr/bin/zsh.* -- gen_context(system_u:object_r:shell_exec_t,s0) diff --git a/policy/modules/services/ssh.fc b/policy/modules/services/ssh.fc index 71fd227a4..4ac3e733a 100644 --- a/policy/modules/services/ssh.fc +++ b/policy/modules/services/ssh.fc @@ -6,6 +6,7 @@ HOME_DIR/\.ssh(/.*)? gen_context(system_u:object_r:ssh_home_t,s0) /usr/bin/ssh -- gen_context(system_u:object_r:ssh_exec_t,s0) /usr/bin/ssh-agent -- gen_context(system_u:object_r:ssh_agent_exec_t,s0) /usr/bin/ssh-keygen -- gen_context(system_u:object_r:ssh_keygen_exec_t,s0) +/usr/bin/sshd -- gen_context(system_u:object_r:sshd_exec_t,s0) /usr/lib/openssh/ssh-keysign -- gen_context(system_u:object_r:ssh_keysign_exec_t,s0) /usr/lib/ssh/ssh-keysign -- gen_context(system_u:object_r:ssh_keysign_exec_t,s0) diff --git a/policy/modules/services/xserver.fc b/policy/modules/services/xserver.fc index 6213be43c..6df0afa90 100644 --- a/policy/modules/services/xserver.fc +++ b/policy/modules/services/xserver.fc @@ -69,6 +69,7 @@ HOME_DIR/\.Xauthority.* -- gen_context(system_u:object_r:xauth_home_t,s0) /usr/bin/sddm -- gen_context(system_u:object_r:xdm_exec_t,s0) /usr/bin/gpe-dm -- gen_context(system_u:object_r:xdm_exec_t,s0) /usr/bin/iceauth -- gen_context(system_u:object_r:iceauth_exec_t,s0) +/usr/bin/lightdm -- gen_context(system_u:object_r:xdm_exec_t,s0) /usr/bin/slim -- gen_context(system_u:object_r:xdm_exec_t,s0) /usr/bin/Xair -- gen_context(system_u:object_r:xserver_exec_t,s0) /usr/bin/xauth -- gen_context(system_u:object_r:xauth_exec_t,s0) diff --git a/policy/modules/system/authlogin.fc b/policy/modules/system/authlogin.fc index d68f6bb93..68f617378 100644 --- a/policy/modules/system/authlogin.fc +++ b/policy/modules/system/authlogin.fc @@ -5,13 +5,20 @@ /etc/shadow.* -- gen_context(system_u:object_r:shadow_t,s0) /usr/bin/login -- gen_context(system_u:object_r:login_exec_t,s0) +/usr/bin/pam_console_apply -- gen_context(system_u:object_r:pam_console_exec_t,s0) +/usr/bin/pam_timestamp_check -- gen_context(system_u:object_r:pam_exec_t,s0) +/usr/bin/unix_chkpwd -- gen_context(system_u:object_r:chkpwd_exec_t,s0) +/usr/bin/unix_update -- gen_context(system_u:object_r:updpwd_exec_t,s0) +/usr/bin/unix_verify -- gen_context(system_u:object_r:chkpwd_exec_t,s0) +/usr/bin/utempter -- gen_context(system_u:object_r:utempter_exec_t,s0) +/usr/bin/validate -- gen_context(system_u:object_r:chkpwd_exec_t,s0) /usr/kerberos/sbin/login\.krb5 -- gen_context(system_u:object_r:login_exec_t,s0) /usr/lib/utempter/utempter -- gen_context(system_u:object_r:utempter_exec_t,s0) /usr/sbin/pam_console_apply -- gen_context(system_u:object_r:pam_console_exec_t,s0) -/usr/sbin/pam_timestamp_check -- gen_context(system_u:object_r:pam_exec_t,s0) +/usr/sbin/pam_timestamp_check -- gen_context(system_u:object_r:pam_exec_t,s0) /usr/sbin/unix_chkpwd -- gen_context(system_u:object_r:chkpwd_exec_t,s0) /usr/sbin/unix_update -- gen_context(system_u:object_r:updpwd_exec_t,s0) /usr/sbin/unix_verify -- gen_context(system_u:object_r:chkpwd_exec_t,s0) diff --git a/policy/modules/system/clock.fc b/policy/modules/system/clock.fc index 61e6fe5d9..301965892 100644 --- a/policy/modules/system/clock.fc +++ b/policy/modules/system/clock.fc @@ -1,3 +1,5 @@ /etc/adjtime -- gen_context(system_u:object_r:adjtime_t,s0) +/usr/bin/hwclock -- gen_context(system_u:object_r:hwclock_exec_t,s0) + /usr/sbin/hwclock -- gen_context(system_u:object_r:hwclock_exec_t,s0) diff --git a/policy/modules/system/fstools.fc b/policy/modules/system/fstools.fc index 726997648..70fb0b474 100644 --- a/policy/modules/system/fstools.fc +++ b/policy/modules/system/fstools.fc @@ -1,7 +1,58 @@ -/usr/bin/partition_uuid -- gen_context(system_u:object_r:fsadm_exec_t,s0) -/usr/bin/raw -- gen_context(system_u:object_r:fsadm_exec_t,s0) -/usr/bin/scsi_unique_id -- gen_context(system_u:object_r:fsadm_exec_t,s0) -/usr/bin/syslinux -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/addpart -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/badblocks -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/blkid -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/blockdev -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/cfdisk -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/clubufflush -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/delpart -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/dosfsck -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/dump -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/dumpe2fs -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/e2fsck -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/e4fsck -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/e2label -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/efibootmgr -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/fatsort -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/fdisk -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/findfs -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/fsck.* -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/gdisk -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/hdparm -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/install-mbr -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/jfs_.* -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/losetup.* -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/lsraid -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/make_reiser4 -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/mkdosfs -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/mke2fs -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/mke4fs -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/mkfs.* -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/mkraid -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/mkreiserfs -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/mkswap -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/parted -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/partition_uuid -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/partprobe -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/partx -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/raidautorun -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/raidstart -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/raw -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/reiserfs(ck|tune) -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/resize.*fs -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/scsi_info -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/scsi_unique_id -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/syslinux -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/sfdisk -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/smartctl -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/swapoff -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/swapon.* -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/tune2fs -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/zdb -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/zhack -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/zinject -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/zpios -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/zstreamdump -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/ztest -- gen_context(system_u:object_r:fsadm_exec_t,s0) /usr/sbin/addpart -- gen_context(system_u:object_r:fsadm_exec_t,s0) /usr/sbin/badblocks -- gen_context(system_u:object_r:fsadm_exec_t,s0) diff --git a/policy/modules/system/getty.fc b/policy/modules/system/getty.fc index 90fa20f75..116ea6421 100644 --- a/policy/modules/system/getty.fc +++ b/policy/modules/system/getty.fc @@ -3,6 +3,8 @@ /run/mgetty\.pid.* -- gen_context(system_u:object_r:getty_runtime_t,s0) /run/agetty\.reload -- gen_context(system_u:object_r:getty_runtime_t,s0) +/usr/bin/.*getty -- gen_context(system_u:object_r:getty_exec_t,s0) + /usr/sbin/.*getty -- gen_context(system_u:object_r:getty_exec_t,s0) /var/log/mgetty\.log.* -- gen_context(system_u:object_r:getty_log_t,s0) diff --git a/policy/modules/system/hotplug.fc b/policy/modules/system/hotplug.fc index 05e1d78cf..76a72119d 100644 --- a/policy/modules/system/hotplug.fc +++ b/policy/modules/system/hotplug.fc @@ -7,5 +7,8 @@ /run/usb(/.*)? gen_context(system_u:object_r:hotplug_var_run_t,s0) /run/hotplug(/.*)? gen_context(system_u:object_r:hotplug_var_run_t,s0) +/usr/bin/hotplug -- gen_context(system_u:object_r:hotplug_exec_t,s0) +/usr/bin/netplugd -- gen_context(system_u:object_r:hotplug_exec_t,s0) + /usr/sbin/hotplug -- gen_context(system_u:object_r:hotplug_exec_t,s0) /usr/sbin/netplugd -- gen_context(system_u:object_r:hotplug_exec_t,s0) diff --git a/policy/modules/system/init.fc b/policy/modules/system/init.fc index d869f8bc8..f7c2e3679 100644 --- a/policy/modules/system/init.fc +++ b/policy/modules/system/init.fc @@ -22,8 +22,11 @@ ifdef(`distro_gentoo',` # # /usr # +/usr/bin/init(ng)? -- gen_context(system_u:object_r:init_exec_t,s0) +/usr/bin/open_init_pty -- gen_context(system_u:object_r:initrc_exec_t,s0) /usr/bin/sepg_ctl -- gen_context(system_u:object_r:initrc_exec_t,s0) /usr/bin/systemd -- gen_context(system_u:object_r:init_exec_t,s0) +/usr/bin/upstart -- gen_context(system_u:object_r:init_exec_t,s0) /usr/lib/systemd/systemd -- gen_context(system_u:object_r:init_exec_t,s0) /usr/lib/systemd/system-preset(/.*)? gen_context(system_u:object_r:systemd_unit_t,s0) diff --git a/policy/modules/system/ipsec.fc b/policy/modules/system/ipsec.fc index a1fb3087b..9ff125de2 100644 --- a/policy/modules/system/ipsec.fc +++ b/policy/modules/system/ipsec.fc @@ -18,6 +18,11 @@ /etc/swanctl -d gen_context(system_u:object_r:ipsec_conf_file_t,s0) /etc/swanctl/swanctl.conf -- gen_context(system_u:object_r:ipsec_conf_file_t,s0) +/usr/bin/ipsec -- gen_context(system_u:object_r:ipsec_mgmt_exec_t,s0) +/usr/bin/racoon -- gen_context(system_u:object_r:racoon_exec_t,s0) +/usr/bin/setkey -- gen_context(system_u:object_r:setkey_exec_t,s0) +/usr/bin/swanctl -- gen_context(system_u:object_r:ipsec_mgmt_exec_t,s0) + /usr/lib/ipsec/_plutoload -- gen_context(system_u:object_r:ipsec_mgmt_exec_t,s0) /usr/lib/ipsec/_plutorun -- gen_context(system_u:object_r:ipsec_mgmt_exec_t,s0) /usr/lib/ipsec/eroute -- gen_context(system_u:object_r:ipsec_exec_t,s0) diff --git a/policy/modules/system/iptables.fc b/policy/modules/system/iptables.fc index 01b404f7f..7e71bdb4b 100644 --- a/policy/modules/system/iptables.fc +++ b/policy/modules/system/iptables.fc @@ -4,6 +4,20 @@ /etc/sysconfig/ip6?tables.* -- gen_context(system_u:object_r:iptables_conf_t,s0) /etc/sysconfig/system-config-firewall.* -- gen_context(system_u:object_r:iptables_conf_t,s0) +/usr/bin/conntrack -- gen_context(system_u:object_r:iptables_exec_t,s0) +/usr/bin/ebtables -- gen_context(system_u:object_r:iptables_exec_t,s0) +/usr/bin/ebtables-restore -- gen_context(system_u:object_r:iptables_exec_t,s0) +/usr/bin/ipchains.* -- gen_context(system_u:object_r:iptables_exec_t,s0) +/usr/bin/ipset -- gen_context(system_u:object_r:iptables_exec_t,s0) +/usr/bin/ip6?tables -- gen_context(system_u:object_r:iptables_exec_t,s0) +/usr/bin/ip6?tables-multi -- gen_context(system_u:object_r:iptables_exec_t,s0) +/usr/bin/ip6?tables-restore -- gen_context(system_u:object_r:iptables_exec_t,s0) +/usr/bin/ipvsadm -- gen_context(system_u:object_r:iptables_exec_t,s0) +/usr/bin/ipvsadm-restore -- gen_context(system_u:object_r:iptables_exec_t,s0) +/usr/bin/ipvsadm-save -- gen_context(system_u:object_r:iptables_exec_t,s0) +/usr/bin/nft -- gen_context(system_u:object_r:iptables_exec_t,s0) +/usr/bin/xtables-multi -- gen_context(system_u:object_r:iptables_exec_t,s0) + /usr/lib/systemd/system/[^/]*arptables.* -- gen_context(system_u:object_r:iptables_unit_t,s0) /usr/lib/systemd/system/[^/]*ebtables.* -- gen_context(system_u:object_r:iptables_unit_t,s0) /usr/lib/systemd/system/[^/]*ip6tables.* -- gen_context(system_u:object_r:iptables_unit_t,s0) diff --git a/policy/modules/system/libraries.fc b/policy/modules/system/libraries.fc index 18d3a74dc..94f875d72 100644 --- a/policy/modules/system/libraries.fc +++ b/policy/modules/system/libraries.fc @@ -83,6 +83,8 @@ ifdef(`distro_redhat',` # # /usr # +/usr/bin/ldconfig -- gen_context(system_u:object_r:ldconfig_exec_t,s0) + /usr/lib gen_context(system_u:object_r:lib_t,s0) /usr/lib/.* gen_context(system_u:object_r:lib_t,s0) diff --git a/policy/modules/system/locallogin.fc b/policy/modules/system/locallogin.fc index 755e304e8..fc8d58507 100644 --- a/policy/modules/system/locallogin.fc +++ b/policy/modules/system/locallogin.fc @@ -1,2 +1,5 @@ +/usr/bin/sulogin -- gen_context(system_u:object_r:sulogin_exec_t,s0) +/usr/bin/sushell -- gen_context(system_u:object_r:sulogin_exec_t,s0) + /usr/sbin/sulogin -- gen_context(system_u:object_r:sulogin_exec_t,s0) /usr/sbin/sushell -- gen_context(system_u:object_r:sulogin_exec_t,s0) diff --git a/policy/modules/system/logging.fc b/policy/modules/system/logging.fc index 7ddeee92f..0d8a4173f 100644 --- a/policy/modules/system/logging.fc +++ b/policy/modules/system/logging.fc @@ -6,6 +6,18 @@ /etc/rc\.d/init\.d/auditd -- gen_context(system_u:object_r:auditd_initrc_exec_t,s0) /etc/rc\.d/init\.d/rsyslog -- gen_context(system_u:object_r:syslogd_initrc_exec_t,s0) +/usr/bin/audispd -- gen_context(system_u:object_r:audisp_exec_t,s0) +/usr/bin/audisp-remote -- gen_context(system_u:object_r:audisp_remote_exec_t,s0) +/usr/bin/auditctl -- gen_context(system_u:object_r:auditctl_exec_t,s0) +/usr/bin/auditd -- gen_context(system_u:object_r:auditd_exec_t,s0) +/usr/bin/klogd -- gen_context(system_u:object_r:klogd_exec_t,s0) +/usr/bin/metalog -- gen_context(system_u:object_r:syslogd_exec_t,s0) +/usr/bin/minilogd -- gen_context(system_u:object_r:syslogd_exec_t,s0) +/usr/bin/rklogd -- gen_context(system_u:object_r:klogd_exec_t,s0) +/usr/bin/rsyslogd -- gen_context(system_u:object_r:syslogd_exec_t,s0) +/usr/bin/syslog-ng -- gen_context(system_u:object_r:syslogd_exec_t,s0) +/usr/bin/syslogd -- gen_context(system_u:object_r:syslogd_exec_t,s0) + /usr/lib/systemd/system/auditd.* -- gen_context(system_u:object_r:auditd_unit_t,s0) /usr/lib/systemd/system/[^/]*systemd-journal.* -- gen_context(system_u:object_r:syslogd_unit_t,s0) /usr/lib/systemd/system/rsyslog.*\.service -- gen_context(system_u:object_r:syslogd_unit_t,s0) diff --git a/policy/modules/system/lvm.fc b/policy/modules/system/lvm.fc index 12438b7d9..46b7dcc94 100644 --- a/policy/modules/system/lvm.fc +++ b/policy/modules/system/lvm.fc @@ -18,9 +18,60 @@ # # /usr # -ifdef(`distro_gentoo',` +/usr/bin/clvmd -- gen_context(system_u:object_r:clvmd_exec_t,s0) /usr/bin/cryptsetup -- gen_context(system_u:object_r:lvm_exec_t,s0) -') +/usr/bin/dmraid -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/dmsetup -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/dmsetup\.static -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/e2fsadm -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvchange -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvcreate -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvdisplay -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvextend -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvm -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvmetad -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvm\.static -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvmchange -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvmdiskscan -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvmiopversion -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvmsadc -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvmsar -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvreduce -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvremove -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvrename -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvresize -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvs -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/lvscan -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/multipathd -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/multipath\.static -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/pvchange -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/pvcreate -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/pvdata -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/pvdisplay -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/pvmove -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/pvremove -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/pvs -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/pvscan -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgcfgbackup -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgcfgrestore -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgchange -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgchange\.static -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgck -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgcreate -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgdisplay -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgexport -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgextend -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgimport -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgmerge -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgmknodes -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgreduce -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgremove -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgrename -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgs -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgscan -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgscan\.static -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgsplit -- gen_context(system_u:object_r:lvm_exec_t,s0) +/usr/bin/vgwrapper -- gen_context(system_u:object_r:lvm_exec_t,s0) /usr/lib/lvm-10/.* -- gen_context(system_u:object_r:lvm_exec_t,s0) /usr/lib/lvm-200/.* -- gen_context(system_u:object_r:lvm_exec_t,s0) diff --git a/policy/modules/system/modutils.fc b/policy/modules/system/modutils.fc index 6984277ba..70f9d4d78 100644 --- a/policy/modules/system/modutils.fc +++ b/policy/modules/system/modutils.fc @@ -12,7 +12,14 @@ ifdef(`init_systemd',` /run/tmpfiles\.d/kmod\.conf -- gen_context(system_u:object_r:kmod_tmpfiles_conf_t,s0) ') +/usr/bin/depmod.* -- gen_context(system_u:object_r:kmod_exec_t,s0) +/usr/bin/generate-modprobe\.conf -- gen_context(system_u:object_r:kmod_exec_t,s0) +/usr/bin/insmod.* -- gen_context(system_u:object_r:kmod_exec_t,s0) /usr/bin/kmod -- gen_context(system_u:object_r:kmod_exec_t,s0) +/usr/bin/modprobe.* -- gen_context(system_u:object_r:kmod_exec_t,s0) +/usr/bin/modules-update -- gen_context(system_u:object_r:kmod_exec_t,s0) +/usr/bin/rmmod.* -- gen_context(system_u:object_r:kmod_exec_t,s0) +/usr/bin/update-modules -- gen_context(system_u:object_r:kmod_exec_t,s0) /usr/lib/modules(/.*)? gen_context(system_u:object_r:modules_object_t,s0) /usr/lib/modules/[^/]+/modules\..+ -- gen_context(system_u:object_r:modules_dep_t,s0) diff --git a/policy/modules/system/mount.fc b/policy/modules/system/mount.fc index 97e2596b1..7352406c0 100644 --- a/policy/modules/system/mount.fc +++ b/policy/modules/system/mount.fc @@ -1,6 +1,8 @@ /usr/bin/fusermount -- gen_context(system_u:object_r:mount_exec_t,s0) /usr/bin/mount(\.[^/]+)? -- gen_context(system_u:object_r:mount_exec_t,s0) /usr/bin/umount(\.[^/]+)? -- gen_context(system_u:object_r:mount_exec_t,s0) +/usr/bin/zfs -- gen_context(system_u:object_r:mount_exec_t,s0) +/usr/bin/zpool -- gen_context(system_u:object_r:mount_exec_t,s0) /usr/sbin/mount(\.[^/]+)? -- gen_context(system_u:object_r:mount_exec_t,s0) /usr/sbin/umount(\.[^/]+)? -- gen_context(system_u:object_r:mount_exec_t,s0) diff --git a/policy/modules/system/netlabel.fc b/policy/modules/system/netlabel.fc index f44bf7a26..691bec7e5 100644 --- a/policy/modules/system/netlabel.fc +++ b/policy/modules/system/netlabel.fc @@ -1 +1,3 @@ +/usr/bin/netlabelctl -- gen_context(system_u:object_r:netlabel_mgmt_exec_t,s0) + /usr/sbin/netlabelctl -- gen_context(system_u:object_r:netlabel_mgmt_exec_t,s0) diff --git a/policy/modules/system/selinuxutil.fc b/policy/modules/system/selinuxutil.fc index ceb526f32..a627a15bd 100644 --- a/policy/modules/system/selinuxutil.fc +++ b/policy/modules/system/selinuxutil.fc @@ -28,7 +28,15 @@ # /usr # /usr/bin/checkpolicy -- gen_context(system_u:object_r:checkpolicy_exec_t,s0) +/usr/bin/load_policy -- gen_context(system_u:object_r:load_policy_exec_t,s0) /usr/bin/newrole -- gen_context(system_u:object_r:newrole_exec_t,s0) +/usr/bin/restorecon -- gen_context(system_u:object_r:setfiles_exec_t,s0) +/usr/bin/restorecond -- gen_context(system_u:object_r:restorecond_exec_t,s0) +/usr/bin/run_init -- gen_context(system_u:object_r:run_init_exec_t,s0) +/usr/bin/setfiles.* -- gen_context(system_u:object_r:setfiles_exec_t,s0) +/usr/bin/setsebool -- gen_context(system_u:object_r:semanage_exec_t,s0) +/usr/bin/semanage -- gen_context(system_u:object_r:semanage_exec_t,s0) +/usr/bin/semodule -- gen_context(system_u:object_r:semanage_exec_t,s0) /usr/lib/systemd/system/restorecond.*\.service -- gen_context(system_u:object_r:restorecond_unit_t,s0) diff --git a/policy/modules/system/setrans.fc b/policy/modules/system/setrans.fc index 6e60bbe75..007720650 100644 --- a/policy/modules/system/setrans.fc +++ b/policy/modules/system/setrans.fc @@ -2,6 +2,8 @@ /run/setrans(/.*)? gen_context(system_u:object_r:setrans_var_run_t,mls_systemhigh) +/usr/bin/mcstransd -- gen_context(system_u:object_r:setrans_exec_t,s0) + /usr/lib/systemd/system/mcstrans.*\.service -- gen_context(system_u:object_r:setrans_unit_t,s0) /usr/sbin/mcstransd -- gen_context(system_u:object_r:setrans_exec_t,s0) diff --git a/policy/modules/system/sysnetwork.fc b/policy/modules/system/sysnetwork.fc index 956ceb053..ae4fbea24 100644 --- a/policy/modules/system/sysnetwork.fc +++ b/policy/modules/system/sysnetwork.fc @@ -33,8 +33,21 @@ ifdef(`distro_redhat',` # # /usr # -/usr/bin/ifconfig -- gen_context(system_u:object_r:ifconfig_exec_t,s0) -/usr/bin/ip -- gen_context(system_u:object_r:ifconfig_exec_t,s0) +/usr/bin/dhclient.* -- gen_context(system_u:object_r:dhcpc_exec_t,s0) +/usr/bin/dhcdbd -- gen_context(system_u:object_r:dhcpc_exec_t,s0) +/usr/bin/dhcp6c -- gen_context(system_u:object_r:dhcpc_exec_t,s0) +/usr/bin/dhcpcd -- gen_context(system_u:object_r:dhcpc_exec_t,s0) +/usr/bin/ethtool -- gen_context(system_u:object_r:ifconfig_exec_t,s0) +/usr/bin/ifconfig -- gen_context(system_u:object_r:ifconfig_exec_t,s0) +/usr/bin/ip -- gen_context(system_u:object_r:ifconfig_exec_t,s0) +/usr/bin/ipx_configure -- gen_context(system_u:object_r:ifconfig_exec_t,s0) +/usr/bin/ipx_interface -- gen_context(system_u:object_r:ifconfig_exec_t,s0) +/usr/bin/ipx_internal_net -- gen_context(system_u:object_r:ifconfig_exec_t,s0) +/usr/bin/iw -- gen_context(system_u:object_r:ifconfig_exec_t,s0) +/usr/bin/iwconfig -- gen_context(system_u:object_r:ifconfig_exec_t,s0) +/usr/bin/mii-tool -- gen_context(system_u:object_r:ifconfig_exec_t,s0) +/usr/bin/pump -- gen_context(system_u:object_r:dhcpc_exec_t,s0) +/usr/bin/tc -- gen_context(system_u:object_r:ifconfig_exec_t,s0) /usr/sbin/dhclient.* -- gen_context(system_u:object_r:dhcpc_exec_t,s0) /usr/sbin/dhcdbd -- gen_context(system_u:object_r:dhcpc_exec_t,s0) diff --git a/policy/modules/system/udev.fc b/policy/modules/system/udev.fc index 601af0bda..009d821a1 100644 --- a/policy/modules/system/udev.fc +++ b/policy/modules/system/udev.fc @@ -9,11 +9,13 @@ /etc/udev/rules.d(/.*)? gen_context(system_u:object_r:udev_rules_t,s0) /etc/udev/scripts/.+ -- gen_context(system_u:object_r:udev_helper_exec_t,s0) -/usr/bin/udevinfo -- gen_context(system_u:object_r:udev_exec_t,s0) - -ifdef(`distro_debian',` +/usr/bin/udev -- gen_context(system_u:object_r:udev_exec_t,s0) /usr/bin/udevadm -- gen_context(system_u:object_r:udev_exec_t,s0) -') +/usr/bin/udevd -- gen_context(system_u:object_r:udev_exec_t,s0) +/usr/bin/udevinfo -- gen_context(system_u:object_r:udev_exec_t,s0) +/usr/bin/udevsend -- gen_context(system_u:object_r:udev_exec_t,s0) +/usr/bin/udevstart -- gen_context(system_u:object_r:udev_exec_t,s0) +/usr/bin/wait_for_sysfs -- gen_context(system_u:object_r:udev_exec_t,s0) ifdef(`distro_debian',` /usr/lib/udev/create_static_nodes -- gen_context(system_u:object_r:udev_exec_t,s0)