refpolicy: update to 20200229+git
cover refpolicy: update to 20200229+git
Here is the changelog for this is patchset:
* Drop refpolicy 2.20190201
If we still keep two versions of refpolicy, it is difficult to maintain two huge local patchsets. So drop this version and only keep the git version.
* Add patches to make systemd/sysvinit can work with all policy types.
Here are the results with this patcheset:
Machine: qemux86-64
Image: core-image-selinux
Init manager: sysvinit and systemd
Policy types: minimum, targeted, standard, mcs, mls
Boot command: runqemu qemux86-64 kvm nographic bootparams="selinux=1 enforcing=1" qemuparams="-m 1024"
1. All refpolicy type can be built without problems.
2. With parameter selinux=1 & enforcing=1
The qemu can boot up and login with all policy types.
Regards,
Yi
Yi Zhao (4):
refpolicy: remove version 2.20190201
refpolicy: update to 20200229+git
audit: set correct security context for /var/log/audit
sysklogd: set correct security context for /var/log in initscript
recipes-extended/sysklogd/files/sysklogd | 2 +-
recipes-security/audit/audit/auditd | 2 +-
...fix-update-alternatives-for-sysvinit.patch | 53 -----
...m-audit-logging-getty-audit-related-.patch | 68 ------
...m-locallogin-add-allow-rules-for-typ.patch | 54 -----
...ogd-apply-policy-to-sysklogd-symlink.patch | 57 ------
...m-systemd-unconfined-lib-add-systemd.patch | 121 -----------
...m-systemd-mount-logging-authlogin-ad.patch | 96 ---------
...sr-bin-bash-context-to-bin-bash.bash.patch | 30 ---
...m-init-fix-reboot-with-systemd-as-in.patch | 37 ----
...abel-resolv.conf-in-var-run-properly.patch | 30 ---
...m-systemd-mount-enable-required-refp.patch | 92 ---------
...m-systemd-fix-for-login-journal-serv.patch | 103 ----------
...m-systemd-fix-for-systemd-tmp-files-.patch | 109 ----------
...-fc-hwclock-add-hwclock-alternatives.patch | 28 ---
...olicy-minimum-systemd-fix-for-syslog.patch | 70 -------
...g-apply-policy-to-dmesg-alternatives.patch | 24 ---
...work-apply-policy-to-ip-alternatives.patch | 48 -----
...ply-rpm_exec-policy-to-cpio-binaries.patch | 29 ---
...gging-Add-the-syslogd_t-to-trusted-o.patch | 33 ---
...gging-add-rules-for-the-symlink-of-v.patch | 100 ---------
...gging-add-rules-for-syslogd-symlink-.patch | 33 ---
...pc-allow-nfsd-to-exec-shell-commands.patch | 29 ---
...c-fix-policy-for-nfsserver-to-mount-.patch | 77 -------
...-sysfs-fix-for-new-SELINUXMNT-in-sys.patch | 126 ------------
...dule-rpc-allow-sysadm-to-run-rpcinfo.patch | 31 ---
...erdomain-fix-selinux-utils-to-manage.patch | 45 ----
...linuxutil-fix-setfiles-statvfs-to-ge.patch | 33 ---
...min-fix-dmesg-to-use-dev-kmsg-as-def.patch | 25 ---
...p-add-ftpd_t-to-mls_file_write_all_l.patch | 41 ----
...it-update-for-systemd-related-allow-.patch | 32 ---
...ache-add-rules-for-the-symlink-of-va.patch | 33 ---
...tile-alias-common-var-volatile-paths.patch | 36 ----
...m-audit-logging-getty-audit-related-.patch | 68 ------
...box-set-aliases-for-bin-sbin-and-usr.patch | 31 ---
...m-locallogin-add-allow-rules-for-typ.patch | 54 -----
...ogd-apply-policy-to-sysklogd-symlink.patch | 57 ------
...m-systemd-unconfined-lib-add-systemd.patch | 121 -----------
...y-policy-to-common-yocto-hostname-al.patch | 27 ---
...m-systemd-mount-logging-authlogin-ad.patch | 96 ---------
...m-init-fix-reboot-with-systemd-as-in.patch | 37 ----
...abel-resolv.conf-in-var-run-properly.patch | 30 ---
...m-systemd-mount-enable-required-refp.patch | 92 ---------
...-apply-login-context-to-login.shadow.patch | 27 ---
...m-systemd-fix-for-login-journal-serv.patch | 103 ----------
.../0008-fc-bind-fix-real-path-for-bind.patch | 31 ---
...m-systemd-fix-for-systemd-tmp-files-.patch | 110 ----------
...-fc-hwclock-add-hwclock-alternatives.patch | 28 ---
...olicy-minimum-systemd-fix-for-syslog.patch | 70 -------
...g-apply-policy-to-dmesg-alternatives.patch | 24 ---
...ssh-apply-policy-to-ssh-alternatives.patch | 27 ---
...v-apply-policy-to-udevadm-in-libexec.patch | 28 ---
...ply-rpm_exec-policy-to-cpio-binaries.patch | 29 ---
...c-su-apply-policy-to-su-alternatives.patch | 26 ---
...fc-fstools-fix-real-path-for-fstools.patch | 76 -------
...gging-add-domain-rules-for-the-subdi.patch | 36 ----
...les-add-rules-for-the-symlink-of-tmp.patch | 100 ---------
...rminals-add-rules-for-bsdpty_device_.patch | 123 -----------
...rminals-don-t-audit-tty_device_t-in-.patch | 37 ----
...pc-allow-nfsd-to-exec-shell-commands.patch | 29 ---
...c-fix-policy-for-nfsserver-to-mount-.patch | 77 -------
...-sysfs-fix-for-new-SELINUXMNT-in-sys.patch | 126 ------------
...dule-rpc-allow-sysadm-to-run-rpcinfo.patch | 31 ---
...erdomain-fix-selinux-utils-to-manage.patch | 45 ----
...linuxutil-fix-setfiles-statvfs-to-ge.patch | 33 ---
...min-fix-dmesg-to-use-dev-kmsg-as-def.patch | 25 ---
...p-add-ftpd_t-to-mls_file_write_all_l.patch | 41 ----
...it-update-for-systemd-related-allow-.patch | 32 ---
...inimum-make-sysadmin-module-optional.patch | 67 ------
...ache-add-rules-for-the-symlink-of-va.patch | 33 ---
.../refpolicy/refpolicy-mcs_2.20190201.bb | 11 -
.../refpolicy/refpolicy-minimum_2.20190201.bb | 91 ---------
.../refpolicy/refpolicy-minimum_git.bb | 6 +-
.../refpolicy/refpolicy-mls_2.20190201.bb | 10 -
.../refpolicy-standard_2.20190201.bb | 8 -
.../refpolicy-targeted_2.20190201.bb | 35 ----
.../refpolicy/refpolicy-targeted_git.bb | 20 +-
...tile-alias-common-var-volatile-paths.patch | 21 +-
...nimum-make-sysadmin-module-optional.patch} | 40 ++--
...ed-make-unconfined_u-the-default-sel.patch | 193 ++++++++++++++++++
...box-set-aliases-for-bin-sbin-and-usr.patch | 26 +--
...-policy-to-common-yocto-hostname-al.patch} | 21 +-
...r-bin-bash-context-to-bin-bash.bash.patch} | 17 +-
...abel-resolv.conf-in-var-run-properly.patch | 29 +++
...apply-login-context-to-login.shadow.patch} | 13 +-
...0007-fc-bind-fix-real-path-for-bind.patch} | 13 +-
...-fc-hwclock-add-hwclock-alternatives.patch | 25 +++
...g-apply-policy-to-dmesg-alternatives.patch | 23 +++
...sh-apply-policy-to-ssh-alternatives.patch} | 13 +-
...ork-apply-policy-to-ip-alternatives.patch} | 35 ++--
...-apply-policy-to-udevadm-in-libexec.patch} | 13 +-
...ply-rpm_exec-policy-to-cpio-binaries.patch | 27 +++
...-su-apply-policy-to-su-alternatives.patch} | 15 +-
...c-fstools-fix-real-path-for-fstools.patch} | 58 +++---
...ix-update-alternatives-for-sysvinit.patch} | 40 ++--
...l-apply-policy-to-brctl-alternatives.patch | 24 +++
...apply-policy-to-nologin-alternatives.patch | 28 +++
...apply-policy-to-sulogin-alternatives.patch | 25 +++
...tp-apply-policy-to-ntpd-alternatives.patch | 27 +++
...pply-policy-to-kerberos-alternatives.patch | 50 +++++
...ap-apply-policy-to-ldap-alternatives.patch | 40 ++++
...ply-policy-to-postgresql-alternative.patch | 37 ++++
...-apply-policy-to-screen-alternatives.patch | 25 +++
...ply-policy-to-usermanage-alternative.patch | 45 ++++
...etty-add-file-context-to-start_getty.patch | 27 +++
...file-context-to-etc-network-if-files.patch | 33 +++
...k-apply-policy-to-vlock-alternatives.patch | 25 +++
...ron-apply-policy-to-etc-init.d-crond.patch | 25 +++
...bs_dist-set-aliase-for-root-director.patch | 30 +++
...stem-logging-add-rules-for-the-syml.patch} | 59 ++++--
...stem-logging-add-rules-for-syslogd-.patch} | 17 +-
...stem-logging-add-domain-rules-for-t.patch} | 13 +-
...rnel-files-add-rules-for-the-symlin.patch} | 32 +--
...rnel-terminal-add-rules-for-bsdpty_.patch} | 17 +-
...rnel-terminal-don-t-audit-tty_devic.patch} | 13 +-
...ervices-avahi-allow-avahi_t-to-watch.patch | 34 +++
...ystem-getty-allow-getty_t-watch-gett.patch | 42 ++++
...ervices-bluetooth-allow-bluetooth_t-.patch | 65 ++++++
...oles-sysadm-allow-sysadm-to-run-rpci.patch | 38 ++++
...ervices-rpc-add-capability-dac_read_.patch | 34 +++
...ervices-rpcbind-allow-rpcbind_t-to-c.patch | 45 ++++
...ervices-rngd-fix-security-context-fo.patch | 64 ++++++
...ystem-authlogin-allow-chkpwd_t-to-ma.patch | 34 +++
...ystem-udev-allow-udevadm_t-to-search.patch | 34 +++
...dev-do-not-audit-udevadm_t-to-read-w.patch | 37 ++++
...ervices-rdisc-allow-rdisc_t-to-searc.patch | 34 +++
...ystem-logging-fix-auditd-startup-fai.patch | 52 +++++
...ervices-ssh-make-respective-init-scr.patch | 33 +++
...ernel-terminal-allow-loging-to-reset.patch | 31 +++
...ystem-selinuxutil-allow-semanage_t-t.patch | 33 +++
...ystem-sysnetwork-allow-ifconfig_t-to.patch | 35 ++++
...ervices-ntp-allow-ntpd_t-to-watch-sy.patch | 55 +++++
...ystem-systemd-enable-support-for-sys.patch | 64 ++++++
...ystem-logging-fix-systemd-journald-s.patch | 74 +++++++
...oles-sysadm-allow-sysadm_t-to-watch-.patch | 36 ++++
...ystem-systemd-add-capability-mknod-f.patch | 35 ++++
...ystem-systemd-systemd-gpt-auto-gener.patch | 35 ++++
...ervices-rpc-fix-policy-for-nfsserver.patch | 78 +++++++
...ervices-rpc-make-rpcd_t-MLS-trusted-.patch | 36 ++++
...oles-sysadm-MLS-sysadm-rw-to-clearan.patch | 41 ++++
...ystem-mount-make-mount_t-domain-MLS-.patch | 36 ++++
...ystem-setrans-allow-setrans-to-acces.patch | 53 +++++
...dmin-dmesg-make-dmesg_t-MLS-trusted-.patch | 36 ++++
...ernel-kernel-make-kernel_t-MLS-trust.patch | 77 +++++++
...ystem-init-make-init_t-MLS-trusted-f.patch | 46 +++++
...ystem-systemd-make-systemd-tmpfiles_.patch | 63 ++++++
...stem-logging-add-the-syslogd_t-to-t.patch} | 20 +-
...ystem-init-make-init_t-MLS-trusted-f.patch | 33 +++
...ystem-init-all-init_t-to-read-any-le.patch | 40 ++++
...ystem-logging-allow-auditd_t-to-writ.patch | 39 ++++
...ernel-kernel-make-kernel_t-MLS-trust.patch | 32 +++
...ystem-systemd-make-systemd-logind-do.patch | 42 ++++
...ystem-systemd-systemd-user-sessions-.patch | 41 ++++
...ystem-systemd-systemd-networkd-make-.patch | 36 ++++
...ystem-systemd-systemd-resolved-make-.patch | 40 ++++
...ystem-systemd-make-systemd-modules_t.patch | 36 ++++
...ystem-systemd-systemd-gpt-auto-gener.patch | 70 +++++++
...ervices-ntp-make-nptd_t-MLS-trusted-.patch | 40 ++++
...ervices-avahi-make-avahi_t-MLS-trust.patch | 29 +++
.../refpolicy/refpolicy_2.20190201.inc | 9 -
.../refpolicy/refpolicy_common.inc | 118 +++++++----
recipes-security/refpolicy/refpolicy_git.inc | 6 +-
162 files changed, 2984 insertions(+), 4206 deletions(-)
mode change 100755 => 100644 recipes-security/audit/audit/auditd
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0001-fix-update-alternatives-for-sysvinit.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0001-refpolicy-minimum-audit-logging-getty-audit-related-.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0002-refpolicy-minimum-locallogin-add-allow-rules-for-typ.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0003-fc-sysklogd-apply-policy-to-sysklogd-symlink.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0003-refpolicy-minimum-systemd-unconfined-lib-add-systemd.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0004-refpolicy-minimum-systemd-mount-logging-authlogin-ad.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0005-fc-bash-apply-usr-bin-bash-context-to-bin-bash.bash.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0005-refpolicy-minimum-init-fix-reboot-with-systemd-as-in.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0006-fc-resolv.conf-label-resolv.conf-in-var-run-properly.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0006-refpolicy-minimum-systemd-mount-enable-required-refp.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0007-refpolicy-minimum-systemd-fix-for-login-journal-serv.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0008-refpolicy-minimum-systemd-fix-for-systemd-tmp-files-.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0009-fc-hwclock-add-hwclock-alternatives.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0009-refpolicy-minimum-systemd-fix-for-syslog.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0010-fc-dmesg-apply-policy-to-dmesg-alternatives.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0012-fc-sysnetwork-apply-policy-to-ip-alternatives.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0014-fc-rpm-apply-rpm_exec-policy-to-cpio-binaries.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0017-policy-module-logging-Add-the-syslogd_t-to-trusted-o.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0018-policy-module-logging-add-rules-for-the-symlink-of-v.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0019-policy-module-logging-add-rules-for-syslogd-symlink-.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0024-policy-module-rpc-allow-nfsd-to-exec-shell-commands.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0025-policy-module-rpc-fix-policy-for-nfsserver-to-mount-.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0026-policy-module-sysfs-fix-for-new-SELINUXMNT-in-sys.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0027-policy-module-rpc-allow-sysadm-to-run-rpcinfo.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0028-policy-module-userdomain-fix-selinux-utils-to-manage.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0029-policy-module-selinuxutil-fix-setfiles-statvfs-to-ge.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0030-policy-module-admin-fix-dmesg-to-use-dev-kmsg-as-def.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0031-policy-module-ftp-add-ftpd_t-to-mls_file_write_all_l.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0032-policy-module-init-update-for-systemd-related-allow-.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0034-policy-module-apache-add-rules-for-the-symlink-of-va.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0001-fc-subs-volatile-alias-common-var-volatile-paths.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0001-refpolicy-minimum-audit-logging-getty-audit-related-.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0002-fc-subs-busybox-set-aliases-for-bin-sbin-and-usr.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0002-refpolicy-minimum-locallogin-add-allow-rules-for-typ.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0003-fc-sysklogd-apply-policy-to-sysklogd-symlink.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0003-refpolicy-minimum-systemd-unconfined-lib-add-systemd.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0004-fc-hostname-apply-policy-to-common-yocto-hostname-al.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0004-refpolicy-minimum-systemd-mount-logging-authlogin-ad.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0005-refpolicy-minimum-init-fix-reboot-with-systemd-as-in.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0006-fc-resolv.conf-label-resolv.conf-in-var-run-properly.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0006-refpolicy-minimum-systemd-mount-enable-required-refp.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0007-fc-login-apply-login-context-to-login.shadow.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0007-refpolicy-minimum-systemd-fix-for-login-journal-serv.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0008-fc-bind-fix-real-path-for-bind.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0008-refpolicy-minimum-systemd-fix-for-systemd-tmp-files-.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0009-fc-hwclock-add-hwclock-alternatives.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0009-refpolicy-minimum-systemd-fix-for-syslog.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0010-fc-dmesg-apply-policy-to-dmesg-alternatives.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0011-fc-ssh-apply-policy-to-ssh-alternatives.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0013-fc-udev-apply-policy-to-udevadm-in-libexec.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0014-fc-rpm-apply-rpm_exec-policy-to-cpio-binaries.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0015-fc-su-apply-policy-to-su-alternatives.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0016-fc-fstools-fix-real-path-for-fstools.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0020-policy-module-logging-add-domain-rules-for-the-subdi.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0021-policy-module-files-add-rules-for-the-symlink-of-tmp.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0022-policy-module-terminals-add-rules-for-bsdpty_device_.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0023-policy-module-terminals-don-t-audit-tty_device_t-in-.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0024-policy-module-rpc-allow-nfsd-to-exec-shell-commands.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0025-policy-module-rpc-fix-policy-for-nfsserver-to-mount-.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0026-policy-module-sysfs-fix-for-new-SELINUXMNT-in-sys.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0027-policy-module-rpc-allow-sysadm-to-run-rpcinfo.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0028-policy-module-userdomain-fix-selinux-utils-to-manage.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0029-policy-module-selinuxutil-fix-setfiles-statvfs-to-ge.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0030-policy-module-admin-fix-dmesg-to-use-dev-kmsg-as-def.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0031-policy-module-ftp-add-ftpd_t-to-mls_file_write_all_l.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0032-policy-module-init-update-for-systemd-related-allow-.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0033-refpolicy-minimum-make-sysadmin-module-optional.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0034-policy-module-apache-add-rules-for-the-symlink-of-va.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-mcs_2.20190201.bb
delete mode 100644 recipes-security/refpolicy/refpolicy-minimum_2.20190201.bb
delete mode 100644 recipes-security/refpolicy/refpolicy-mls_2.20190201.bb
delete mode 100644 recipes-security/refpolicy/refpolicy-standard_2.20190201.bb
delete mode 100644 recipes-security/refpolicy/refpolicy-targeted_2.20190201.bb
rename recipes-security/refpolicy/{refpolicy-2.20190201 => refpolicy}/0001-fc-subs-volatile-alias-common-var-volatile-paths.patch (63%)
rename recipes-security/refpolicy/{refpolicy-2.20190201/0033-refpolicy-minimum-make-sysadmin-module-optional.patch => refpolicy/0001-refpolicy-minimum-make-sysadmin-module-optional.patch} (65%)
create mode 100644 recipes-security/refpolicy/refpolicy/0001-refpolicy-targeted-make-unconfined_u-the-default-sel.patch
rename recipes-security/refpolicy/{refpolicy-2.20190201 => refpolicy}/0002-fc-subs-busybox-set-aliases-for-bin-sbin-and-usr.patch (54%)
rename recipes-security/refpolicy/{refpolicy-2.20190201/0004-fc-hostname-apply-policy-to-common-yocto-hostname-al.patch => refpolicy/0003-fc-hostname-apply-policy-to-common-yocto-hostname-al.patch} (60%)
rename recipes-security/refpolicy/{refpolicy-git/0005-fc-bash-apply-usr-bin-bash-context-to-bin-bash.bash.patch => refpolicy/0004-fc-bash-apply-usr-bin-bash-context-to-bin-bash.bash.patch} (66%)
create mode 100644 recipes-security/refpolicy/refpolicy/0005-fc-resolv.conf-label-resolv.conf-in-var-run-properly.patch
rename recipes-security/refpolicy/{refpolicy-2.20190201/0007-fc-login-apply-login-context-to-login.shadow.patch => refpolicy/0006-fc-login-apply-login-context-to-login.shadow.patch} (69%)
rename recipes-security/refpolicy/{refpolicy-2.20190201/0008-fc-bind-fix-real-path-for-bind.patch => refpolicy/0007-fc-bind-fix-real-path-for-bind.patch} (76%)
create mode 100644 recipes-security/refpolicy/refpolicy/0008-fc-hwclock-add-hwclock-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0009-fc-dmesg-apply-policy-to-dmesg-alternatives.patch
rename recipes-security/refpolicy/{refpolicy-2.20190201/0011-fc-ssh-apply-policy-to-ssh-alternatives.patch => refpolicy/0010-fc-ssh-apply-policy-to-ssh-alternatives.patch} (71%)
rename recipes-security/refpolicy/{refpolicy-git/0012-fc-sysnetwork-apply-policy-to-ip-alternatives.patch => refpolicy/0011-fc-sysnetwork-apply-policy-to-ip-alternatives.patch} (59%)
rename recipes-security/refpolicy/{refpolicy-2.20190201/0013-fc-udev-apply-policy-to-udevadm-in-libexec.patch => refpolicy/0012-fc-udev-apply-policy-to-udevadm-in-libexec.patch} (66%)
create mode 100644 recipes-security/refpolicy/refpolicy/0013-fc-rpm-apply-rpm_exec-policy-to-cpio-binaries.patch
rename recipes-security/refpolicy/{refpolicy-2.20190201/0015-fc-su-apply-policy-to-su-alternatives.patch => refpolicy/0014-fc-su-apply-policy-to-su-alternatives.patch} (61%)
rename recipes-security/refpolicy/{refpolicy-2.20190201/0016-fc-fstools-fix-real-path-for-fstools.patch => refpolicy/0015-fc-fstools-fix-real-path-for-fstools.patch} (62%)
rename recipes-security/refpolicy/{refpolicy-git/0001-fix-update-alternatives-for-sysvinit.patch => refpolicy/0016-fc-init-fix-update-alternatives-for-sysvinit.patch} (59%)
create mode 100644 recipes-security/refpolicy/refpolicy/0017-fc-brctl-apply-policy-to-brctl-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0018-fc-corecommands-apply-policy-to-nologin-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0019-fc-locallogin-apply-policy-to-sulogin-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0020-fc-ntp-apply-policy-to-ntpd-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0021-fc-kerberos-apply-policy-to-kerberos-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0022-fc-ldap-apply-policy-to-ldap-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0023-fc-postgresql-apply-policy-to-postgresql-alternative.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0024-fc-screen-apply-policy-to-screen-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0025-fc-usermanage-apply-policy-to-usermanage-alternative.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0026-fc-getty-add-file-context-to-start_getty.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0027-fc-init-add-file-context-to-etc-network-if-files.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0028-fc-vlock-apply-policy-to-vlock-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0029-fc-cron-apply-policy-to-etc-init.d-crond.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0030-file_contexts.subs_dist-set-aliase-for-root-director.patch
rename recipes-security/refpolicy/{refpolicy-git/0018-policy-module-logging-add-rules-for-the-symlink-of-v.patch => refpolicy/0031-policy-modules-system-logging-add-rules-for-the-syml.patch} (63%)
rename recipes-security/refpolicy/{refpolicy-git/0019-policy-module-logging-add-rules-for-syslogd-symlink-.patch => refpolicy/0032-policy-modules-system-logging-add-rules-for-syslogd-.patch} (66%)
rename recipes-security/refpolicy/{refpolicy-2.20190201/0020-policy-module-logging-add-domain-rules-for-the-subdi.patch => refpolicy/0033-policy-modules-system-logging-add-domain-rules-for-t.patch} (76%)
rename recipes-security/refpolicy/{refpolicy-2.20190201/0021-policy-module-files-add-rules-for-the-symlink-of-tmp.patch => refpolicy/0034-policy-modules-kernel-files-add-rules-for-the-symlin.patch} (71%)
rename recipes-security/refpolicy/{refpolicy-2.20190201/0022-policy-module-terminals-add-rules-for-bsdpty_device_.patch => refpolicy/0035-policy-modules-kernel-terminal-add-rules-for-bsdpty_.patch} (87%)
rename recipes-security/refpolicy/{refpolicy-2.20190201/0023-policy-module-terminals-don-t-audit-tty_device_t-in-.patch => refpolicy/0036-policy-modules-kernel-terminal-don-t-audit-tty_devic.patch} (74%)
create mode 100644 recipes-security/refpolicy/refpolicy/0037-policy-modules-services-avahi-allow-avahi_t-to-watch.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0038-policy-modules-system-getty-allow-getty_t-watch-gett.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0039-policy-modules-services-bluetooth-allow-bluetooth_t-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0040-policy-modules-roles-sysadm-allow-sysadm-to-run-rpci.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0041-policy-modules-services-rpc-add-capability-dac_read_.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0042-policy-modules-services-rpcbind-allow-rpcbind_t-to-c.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0043-policy-modules-services-rngd-fix-security-context-fo.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0044-policy-modules-system-authlogin-allow-chkpwd_t-to-ma.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0045-policy-modules-system-udev-allow-udevadm_t-to-search.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0046-policy-modules-udev-do-not-audit-udevadm_t-to-read-w.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0047-policy-modules-services-rdisc-allow-rdisc_t-to-searc.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0048-policy-modules-system-logging-fix-auditd-startup-fai.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0049-policy-modules-services-ssh-make-respective-init-scr.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0050-policy-modules-kernel-terminal-allow-loging-to-reset.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0051-policy-modules-system-selinuxutil-allow-semanage_t-t.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0052-policy-modules-system-sysnetwork-allow-ifconfig_t-to.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0053-policy-modules-services-ntp-allow-ntpd_t-to-watch-sy.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0054-policy-modules-system-systemd-enable-support-for-sys.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0055-policy-modules-system-logging-fix-systemd-journald-s.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0056-policy-modules-roles-sysadm-allow-sysadm_t-to-watch-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0057-policy-modules-system-systemd-add-capability-mknod-f.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0058-policy-modules-system-systemd-systemd-gpt-auto-gener.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0059-policy-modules-services-rpc-fix-policy-for-nfsserver.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0060-policy-modules-services-rpc-make-rpcd_t-MLS-trusted-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0061-policy-modules-roles-sysadm-MLS-sysadm-rw-to-clearan.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0062-policy-modules-system-mount-make-mount_t-domain-MLS-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0063-policy-modules-system-setrans-allow-setrans-to-acces.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0064-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0065-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0066-policy-modules-system-init-make-init_t-MLS-trusted-f.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0067-policy-modules-system-systemd-make-systemd-tmpfiles_.patch
rename recipes-security/refpolicy/{refpolicy-git/0017-policy-module-logging-Add-the-syslogd_t-to-trusted-o.patch => refpolicy/0068-policy-modules-system-logging-add-the-syslogd_t-to-t.patch} (60%)
create mode 100644 recipes-security/refpolicy/refpolicy/0069-policy-modules-system-init-make-init_t-MLS-trusted-f.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0070-policy-modules-system-init-all-init_t-to-read-any-le.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0071-policy-modules-system-logging-allow-auditd_t-to-writ.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0072-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0073-policy-modules-system-systemd-make-systemd-logind-do.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0074-policy-modules-system-systemd-systemd-user-sessions-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0075-policy-modules-system-systemd-systemd-networkd-make-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0076-policy-modules-system-systemd-systemd-resolved-make-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0077-policy-modules-system-systemd-make-systemd-modules_t.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0078-policy-modules-system-systemd-systemd-gpt-auto-gener.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0079-policy-modules-services-ntp-make-nptd_t-MLS-trusted-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0080-policy-modules-services-avahi-make-avahi_t-MLS-trust.patch
delete mode 100644 recipes-security/refpolicy/refpolicy_2.20190201.incSignature · 1 line
2.17.1
PATCH 1/4 refpolicy: remove version 2.20190201
There is no need to maintain two versions of repolicy. Drop this version and only keep the git version.
--- ...tile-alias-common-var-volatile-paths.patch | 36 ----- ...fix-update-alternatives-for-sysvinit.patch | 53 -------- ...m-audit-logging-getty-audit-related-.patch | 68 ---------- ...box-set-aliases-for-bin-sbin-and-usr.patch | 31 ----- ...m-locallogin-add-allow-rules-for-typ.patch | 54 -------- ...ogd-apply-policy-to-sysklogd-symlink.patch | 57 -------- ...m-systemd-unconfined-lib-add-systemd.patch | 121 ----------------- ...y-policy-to-common-yocto-hostname-al.patch | 27 ---- ...m-systemd-mount-logging-authlogin-ad.patch | 96 ------------- ...sr-bin-bash-context-to-bin-bash.bash.patch | 30 ----- ...m-init-fix-reboot-with-systemd-as-in.patch | 37 ----- ...abel-resolv.conf-in-var-run-properly.patch | 30 ----- ...m-systemd-mount-enable-required-refp.patch | 92 ------------- ...-apply-login-context-to-login.shadow.patch | 27 ---- ...m-systemd-fix-for-login-journal-serv.patch | 103 -------------- .../0008-fc-bind-fix-real-path-for-bind.patch | 31 ----- ...m-systemd-fix-for-systemd-tmp-files-.patch | 109 --------------- ...-fc-hwclock-add-hwclock-alternatives.patch | 28 ---- ...olicy-minimum-systemd-fix-for-syslog.patch | 70 ---------- ...g-apply-policy-to-dmesg-alternatives.patch | 24 ---- ...ssh-apply-policy-to-ssh-alternatives.patch | 27 ---- ...work-apply-policy-to-ip-alternatives.patch | 48 ------- ...v-apply-policy-to-udevadm-in-libexec.patch | 28 ---- ...ply-rpm_exec-policy-to-cpio-binaries.patch | 29 ---- ...c-su-apply-policy-to-su-alternatives.patch | 26 ---- ...fc-fstools-fix-real-path-for-fstools.patch | 76 ----------- ...gging-Add-the-syslogd_t-to-trusted-o.patch | 33 ----- ...gging-add-rules-for-the-symlink-of-v.patch | 100 -------------- ...gging-add-rules-for-syslogd-symlink-.patch | 33 ----- ...gging-add-domain-rules-for-the-subdi.patch | 36 ----- ...les-add-rules-for-the-symlink-of-tmp.patch | 100 -------------- ...rminals-add-rules-for-bsdpty_device_.patch | 123 ----------------- ...rminals-don-t-audit-tty_device_t-in-.patch | 37 ----- ...pc-allow-nfsd-to-exec-shell-commands.patch | 29 ---- ...c-fix-policy-for-nfsserver-to-mount-.patch | 77 ----------- ...-sysfs-fix-for-new-SELINUXMNT-in-sys.patch | 126 ------------------ ...dule-rpc-allow-sysadm-to-run-rpcinfo.patch | 31 ----- ...erdomain-fix-selinux-utils-to-manage.patch | 45 ------- ...linuxutil-fix-setfiles-statvfs-to-ge.patch | 33 ----- ...min-fix-dmesg-to-use-dev-kmsg-as-def.patch | 25 ---- ...p-add-ftpd_t-to-mls_file_write_all_l.patch | 41 ------ ...it-update-for-systemd-related-allow-.patch | 32 ----- ...inimum-make-sysadmin-module-optional.patch | 67 ---------- ...ache-add-rules-for-the-symlink-of-va.patch | 33 ----- .../refpolicy/refpolicy-mcs_2.20190201.bb | 11 -- .../refpolicy/refpolicy-minimum_2.20190201.bb | 91 ------------- .../refpolicy/refpolicy-mls_2.20190201.bb | 10 -- .../refpolicy-standard_2.20190201.bb | 8 -- .../refpolicy-targeted_2.20190201.bb | 35 ----- .../refpolicy/refpolicy_2.20190201.inc | 9 -- 50 files changed, 2523 deletions(-) delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0001-fc-subs-volatile-alias-common-var-volatile-paths.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0001-fix-update-alternatives-for-sysvinit.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0001-refpolicy-minimum-audit-logging-getty-audit-related-.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0002-fc-subs-busybox-set-aliases-for-bin-sbin-and-usr.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0002-refpolicy-minimum-locallogin-add-allow-rules-for-typ.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0003-fc-sysklogd-apply-policy-to-sysklogd-symlink.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0003-refpolicy-minimum-systemd-unconfined-lib-add-systemd.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0004-fc-hostname-apply-policy-to-common-yocto-hostname-al.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0004-refpolicy-minimum-systemd-mount-logging-authlogin-ad.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0005-fc-bash-apply-usr-bin-bash-context-to-bin-bash.bash.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0005-refpolicy-minimum-init-fix-reboot-with-systemd-as-in.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0006-fc-resolv.conf-label-resolv.conf-in-var-run-properly.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0006-refpolicy-minimum-systemd-mount-enable-required-refp.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0007-fc-login-apply-login-context-to-login.shadow.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0007-refpolicy-minimum-systemd-fix-for-login-journal-serv.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0008-fc-bind-fix-real-path-for-bind.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0008-refpolicy-minimum-systemd-fix-for-systemd-tmp-files-.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0009-fc-hwclock-add-hwclock-alternatives.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0009-refpolicy-minimum-systemd-fix-for-syslog.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0010-fc-dmesg-apply-policy-to-dmesg-alternatives.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0011-fc-ssh-apply-policy-to-ssh-alternatives.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0012-fc-sysnetwork-apply-policy-to-ip-alternatives.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0013-fc-udev-apply-policy-to-udevadm-in-libexec.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0014-fc-rpm-apply-rpm_exec-policy-to-cpio-binaries.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0015-fc-su-apply-policy-to-su-alternatives.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0016-fc-fstools-fix-real-path-for-fstools.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0017-policy-module-logging-Add-the-syslogd_t-to-trusted-o.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0018-policy-module-logging-add-rules-for-the-symlink-of-v.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0019-policy-module-logging-add-rules-for-syslogd-symlink-.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0020-policy-module-logging-add-domain-rules-for-the-subdi.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0021-policy-module-files-add-rules-for-the-symlink-of-tmp.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0022-policy-module-terminals-add-rules-for-bsdpty_device_.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0023-policy-module-terminals-don-t-audit-tty_device_t-in-.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0024-policy-module-rpc-allow-nfsd-to-exec-shell-commands.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0025-policy-module-rpc-fix-policy-for-nfsserver-to-mount-.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0026-policy-module-sysfs-fix-for-new-SELINUXMNT-in-sys.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0027-policy-module-rpc-allow-sysadm-to-run-rpcinfo.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0028-policy-module-userdomain-fix-selinux-utils-to-manage.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0029-policy-module-selinuxutil-fix-setfiles-statvfs-to-ge.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0030-policy-module-admin-fix-dmesg-to-use-dev-kmsg-as-def.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0031-policy-module-ftp-add-ftpd_t-to-mls_file_write_all_l.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0032-policy-module-init-update-for-systemd-related-allow-.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0033-refpolicy-minimum-make-sysadmin-module-optional.patch delete mode 100644 recipes-security/refpolicy/refpolicy-2.20190201/0034-policy-module-apache-add-rules-for-the-symlink-of-va.patch delete mode 100644 recipes-security/refpolicy/refpolicy-mcs_2.20190201.bb delete mode 100644 recipes-security/refpolicy/refpolicy-minimum_2.20190201.bb delete mode 100644 recipes-security/refpolicy/refpolicy-mls_2.20190201.bb delete mode 100644 recipes-security/refpolicy/refpolicy-standard_2.20190201.bb delete mode 100644 recipes-security/refpolicy/refpolicy-targeted_2.20190201.bb delete mode 100644 recipes-security/refpolicy/refpolicy_2.20190201.inc
recipes-security/refpolicy/refpolicy-2.20190201/0001-fc-subs-volatile-alias-common-var-volatile-paths.patch deleted +0 -36
@@ -1,36 +0,0 @@ -From 49dd08e69938debc792ac9c3ac3e81a38929d11f Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Thu, 28 Mar 2019 16:14:09 -0400 -Subject: [PATCH 01/34] fc/subs/volatile: alias common /var/volatile paths - -Ensure /var/volatile paths get the appropriate base file context. - -Upstream-Status: Pending - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - config/file_contexts.subs_dist | 10 ++++++++++ - 1 file changed, 10 insertions(+) - -diff --git a/config/file_contexts.subs_dist b/config/file_contexts.subs_dist -index 346d920e..be532d7f 100644 ---- a/config/file_contexts.subs_dist -+++ b/config/file_contexts.subs_dist -@@ -31,3 +31,13 @@ - # not for refpolicy intern, but for /var/run using applications, - # like systemd tmpfiles or systemd socket configurations - /var/run /run -+ -+# volatile aliases -+# ensure the policy applied to the base filesystem objects are reflected in the -+# volatile hierarchy. -+/var/volatile/log /var/log -+/var/volatile/run /var/run -+/var/volatile/cache /var/cache -+/var/volatile/tmp /var/tmp -+/var/volatile/lock /var/lock -+/var/volatile/run/lock /var/lock --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0001-fix-update-alternatives-for-sysvinit.patch deleted +0 -53
53 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0001-refpolicy-minimum-audit-logging-getty-audit-related-.patch deleted +0 -68
68 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0002-fc-subs-busybox-set-aliases-for-bin-sbin-and-usr.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From c02445a1073ca6fcb42c771c233ab8aa822cbdda Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Thu, 28 Mar 2019 20:48:10 -0400 -Subject: [PATCH 02/34] fc/subs/busybox: set aliases for bin, sbin and usr - -The objects in /usr/lib/busybox/* should have the same policy applied as -the corresponding objects in the / hierarchy. - -Signed-off-by: Joe MacDonald <[email protected]> ---- - config/file_contexts.subs_dist | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/config/file_contexts.subs_dist b/config/file_contexts.subs_dist -index be532d7f..04fca3c3 100644 ---- a/config/file_contexts.subs_dist -+++ b/config/file_contexts.subs_dist -@@ -41,3 +41,10 @@ - /var/volatile/tmp /var/tmp - /var/volatile/lock /var/lock - /var/volatile/run/lock /var/lock -+ -+# busybox aliases -+# quickly match up the busybox built-in tree to the base filesystem tree -+/usr/lib/busybox/bin /bin -+/usr/lib/busybox/sbin /sbin -+/usr/lib/busybox/usr /usr -+ --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0002-refpolicy-minimum-locallogin-add-allow-rules-for-typ.patch deleted +0 -54
54 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0003-fc-sysklogd-apply-policy-to-sysklogd-symlink.patch deleted +0 -57
57 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0003-refpolicy-minimum-systemd-unconfined-lib-add-systemd.patch deleted +0 -121
121 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0004-fc-hostname-apply-policy-to-common-yocto-hostname-al.patch deleted +0 -27
@@ -1,27 +0,0 @@ -From 85f5825111d4c6d6b276ed07fec2292804b97a39 Mon Sep 17 00:00:00 2001 -From: Xin Ouyang <[email protected]> -Date: Thu, 22 Aug 2013 13:37:23 +0800 -Subject: [PATCH 04/34] fc/hostname: apply policy to common yocto hostname - alternatives - -Upstream-Status: Inappropriate [only for Yocto] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/hostname.fc | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/policy/modules/system/hostname.fc b/policy/modules/system/hostname.fc -index 83ddeb57..653e038d 100644 ---- a/policy/modules/system/hostname.fc -+++ b/policy/modules/system/hostname.fc -@@ -1 +1,5 @@ -+/usr/bin/hostname\.net-tools -- gen_context(system_u:object_r:hostname_exec_t,s0) -+/usr/bin/hostname\.coreutils -- gen_context(system_u:object_r:hostname_exec_t,s0) -+/usr/lib/busybox/bin/hostname -- gen_context(system_u:object_r:hostname_exec_t,s0) -+ - /usr/bin/hostname -- gen_context(system_u:object_r:hostname_exec_t,s0) --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0004-refpolicy-minimum-systemd-mount-logging-authlogin-ad.patch deleted +0 -96
96 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0005-fc-bash-apply-usr-bin-bash-context-to-bin-bash.bash.patch deleted +0 -30
@@ -1,30 +0,0 @@ -From ed53bb0452aab6aee11c6d6442b8524d3b27fa6f Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Thu, 28 Mar 2019 21:37:32 -0400 -Subject: [PATCH 05/34] fc/bash: apply /usr/bin/bash context to /bin/bash.bash - -We include /bin/bash.bash as a valid alias for /bin/bash, so ensure we apply -the proper context to the target for our policy. - -Upstream-Status: Inappropriate [only for Yocto] - -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/kernel/corecommands.fc | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc -index e7415cac..cf3848db 100644 ---- a/policy/modules/kernel/corecommands.fc -+++ b/policy/modules/kernel/corecommands.fc -@@ -141,6 +141,7 @@ ifdef(`distro_gentoo',` - /usr/bin/d?ash -- gen_context(system_u:object_r:shell_exec_t,s0) - /usr/bin/bash -- gen_context(system_u:object_r:shell_exec_t,s0) - /usr/bin/bash2 -- gen_context(system_u:object_r:shell_exec_t,s0) -+/usr/bin/bash.bash -- 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) --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0005-refpolicy-minimum-init-fix-reboot-with-systemd-as-in.patch deleted +0 -37
@@ -1,37 +0,0 @@ -From bf8da1fd057ce11e8ce6e445ccd532fde11868a6 Mon Sep 17 00:00:00 2001 -From: Shrikant Bobade <[email protected]> -Date: Fri, 26 Aug 2016 17:53:53 +0530 -Subject: [PATCH 5/9] refpolicy-minimum: init: fix reboot with systemd as init - manager. - -add allow rule to fix avc denial during system reboot. - -without this change we are getting: - -audit: type=1107 audit(): pid=1 uid=0 auid=4294967295 ses=4294967295 subj= -system_u:system_r:init_t:s0 msg='avc: denied { reboot } for auid=n/a uid=0 -gid=0 cmdline="/bin/systemctl --force reboot" scontext=system_u:system_r: -initrc_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=system - -Upstream-Status: Pending - -Signed-off-by: Shrikant Bobade <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/init.te | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te -index 15745c83..d6a0270a 100644 ---- a/policy/modules/system/init.te -+++ b/policy/modules/system/init.te -@@ -1427,5 +1427,5 @@ allow devpts_t device_t:filesystem associate; - allow init_t self:capability2 block_suspend; - allow init_t self:capability2 audit_read; - --allow initrc_t init_t:system { start status }; -+allow initrc_t init_t:system { start status reboot }; - allow initrc_t init_var_run_t:service { start status }; --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0006-fc-resolv.conf-label-resolv.conf-in-var-run-properly.patch deleted +0 -30
@@ -1,30 +0,0 @@ -From 8614bc85ab13b72f7f83892ffd227c73b3df42bc Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Thu, 4 Apr 2019 10:45:03 -0400 -Subject: [PATCH 06/34] fc/resolv.conf: label resolv.conf in var/run/ properly - -Upstream-Status: Pending - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> - -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/sysnetwork.fc | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/policy/modules/system/sysnetwork.fc b/policy/modules/system/sysnetwork.fc -index 1e5432a4..ac7c2dd1 100644 ---- a/policy/modules/system/sysnetwork.fc -+++ b/policy/modules/system/sysnetwork.fc -@@ -22,6 +22,7 @@ ifdef(`distro_debian',` - /etc/denyhosts.* -- gen_context(system_u:object_r:net_conf_t,s0) - /etc/resolv\.conf.* -- gen_context(system_u:object_r:net_conf_t,s0) - /etc/yp\.conf.* -- gen_context(system_u:object_r:net_conf_t,s0) -+/var/run/resolv\.conf.* -- gen_context(system_u:object_r:net_conf_t,s0) - - /etc/dhcp3(/.*)? gen_context(system_u:object_r:dhcp_etc_t,s0) - /etc/dhcp3?/dhclient.* gen_context(system_u:object_r:dhcp_etc_t,s0) --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0006-refpolicy-minimum-systemd-mount-enable-required-refp.patch deleted +0 -92
92 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0007-fc-login-apply-login-context-to-login.shadow.patch deleted +0 -27
@@ -1,27 +0,0 @@ -From c1f7e3033057dfb613bd92d723094b06c00e82f8 Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Thu, 28 Mar 2019 21:43:53 -0400 -Subject: [PATCH 07/34] fc/login: apply login context to login.shadow - -Upstream-Status: Inappropriate [only for Poky] - -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/authlogin.fc | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/policy/modules/system/authlogin.fc b/policy/modules/system/authlogin.fc -index e22945cd..a42bc0da 100644 ---- a/policy/modules/system/authlogin.fc -+++ b/policy/modules/system/authlogin.fc -@@ -5,6 +5,7 @@ - /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/login\.shadow -- 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) --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0007-refpolicy-minimum-systemd-fix-for-login-journal-serv.patch deleted +0 -103
103 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0008-fc-bind-fix-real-path-for-bind.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From 878b005462f7b2208427af60ed6b670dca697b6c Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Thu, 28 Mar 2019 21:58:53 -0400 -Subject: [PATCH 08/34] fc/bind: fix real path for bind - -Upstream-Status: Pending - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/services/bind.fc | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/policy/modules/services/bind.fc b/policy/modules/services/bind.fc -index b4879dc1..59498e25 100644 ---- a/policy/modules/services/bind.fc -+++ b/policy/modules/services/bind.fc -@@ -1,8 +1,10 @@ - /etc/rc\.d/init\.d/named -- gen_context(system_u:object_r:named_initrc_exec_t,s0) -+/etc/rc\.d/init\.d/bind -- gen_context(system_u:object_r:named_initrc_exec_t,s0) - /etc/rc\.d/init\.d/unbound -- gen_context(system_u:object_r:named_initrc_exec_t,s0) - - /etc/bind(/.*)? gen_context(system_u:object_r:named_zone_t,s0) - /etc/bind/named\.conf.* -- gen_context(system_u:object_r:named_conf_t,s0) -+/etc/bind/rndc\.conf -- gen_context(system_u:object_r:named_conf_t,s0) - /etc/bind/rndc\.key -- gen_context(system_u:object_r:dnssec_t,s0) - /etc/dnssec-trigger/dnssec_trigger_server\.key -- gen_context(system_u:object_r:dnssec_t,s0) - /etc/named\.rfc1912\.zones -- gen_context(system_u:object_r:named_conf_t,s0) --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0008-refpolicy-minimum-systemd-fix-for-systemd-tmp-files-.patch deleted +0 -109
109 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0009-fc-hwclock-add-hwclock-alternatives.patch deleted +0 -28
@@ -1,28 +0,0 @@ -From d21287d2c0b63e19e1004f098a1934b6b02a0c05 Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Thu, 28 Mar 2019 21:59:18 -0400 -Subject: [PATCH 09/34] fc/hwclock: add hwclock alternatives - -Upstream-Status: Pending - -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/clock.fc | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/policy/modules/system/clock.fc b/policy/modules/system/clock.fc -index 30196589..e0dc4b6f 100644 ---- a/policy/modules/system/clock.fc -+++ b/policy/modules/system/clock.fc -@@ -2,4 +2,7 @@ - - /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) -+/usr/sbin/hwclock\.util-linux -- gen_context(system_u:object_r:hwclock_exec_t,s0) -+/usr/sbin/hwclock -- gen_context(system_u:object_r:hwclock_exec_t,s0) -+/usr/lib/busybox/sbin/hwclock -- gen_context(system_u:object_r:hwclock_exec_t,s0) -+/sbin/hwclock -- gen_context(system_u:object_r:hwclock_exec_t,s0) --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0009-refpolicy-minimum-systemd-fix-for-syslog.patch deleted +0 -70
70 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0010-fc-dmesg-apply-policy-to-dmesg-alternatives.patch deleted +0 -24
@@ -1,24 +0,0 @@ -From 0ee40e0a68645e23f59842929629a94ebe9873b4 Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Fri, 29 Mar 2019 08:26:55 -0400 -Subject: [PATCH 10/34] fc/dmesg: apply policy to dmesg alternatives - -Upstream-Status: Pending - -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/admin/dmesg.fc | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/policy/modules/admin/dmesg.fc b/policy/modules/admin/dmesg.fc -index e52fdfcf..85d15127 100644 ---- a/policy/modules/admin/dmesg.fc -+++ b/policy/modules/admin/dmesg.fc -@@ -1 +1,3 @@ --/usr/bin/dmesg -- gen_context(system_u:object_r:dmesg_exec_t,s0) -+/usr/bin/dmesg -- gen_context(system_u:object_r:dmesg_exec_t,s0) -+/usr/bin/dmesg\.util-linux -- gen_context(system_u:object_r:dmesg_exec_t,s0) -+/usr/lib/busybox/bin/dmesg -- gen_context(system_u:object_r:dmesg_exec_t,s0) --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0011-fc-ssh-apply-policy-to-ssh-alternatives.patch deleted +0 -27
@@ -1,27 +0,0 @@ -From 10548eeaba694ff4320fdcbddc9e6cbb71856280 Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Fri, 29 Mar 2019 09:20:58 -0400 -Subject: [PATCH 11/34] fc/ssh: apply policy to ssh alternatives - -Upstream-Status: Pending - -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/services/ssh.fc | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/policy/modules/services/ssh.fc b/policy/modules/services/ssh.fc -index 4ac3e733..1f453091 100644 ---- a/policy/modules/services/ssh.fc -+++ b/policy/modules/services/ssh.fc -@@ -4,6 +4,7 @@ HOME_DIR/\.ssh(/.*)? gen_context(system_u:object_r:ssh_home_t,s0) - /etc/ssh/ssh_host.*_key -- gen_context(system_u:object_r:sshd_key_t,s0) - - /usr/bin/ssh -- gen_context(system_u:object_r:ssh_exec_t,s0) -+/usr/bin/ssh\.openssh -- 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) --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0012-fc-sysnetwork-apply-policy-to-ip-alternatives.patch deleted +0 -48
48 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0013-fc-udev-apply-policy-to-udevadm-in-libexec.patch deleted +0 -28
@@ -1,28 +0,0 @@ -From e38e269b172ec75dcd218cfeac64271fbb3d17db Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Fri, 29 Mar 2019 09:36:08 -0400 -Subject: [PATCH 13/34] fc/udev: apply policy to udevadm in libexec - -Upstream-Status: Pending - -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/udev.fc | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/policy/modules/system/udev.fc b/policy/modules/system/udev.fc -index 009d821a..cc438609 100644 ---- a/policy/modules/system/udev.fc -+++ b/policy/modules/system/udev.fc -@@ -28,6 +28,8 @@ ifdef(`distro_debian',` - /usr/sbin/udevstart -- gen_context(system_u:object_r:udev_exec_t,s0) - /usr/sbin/wait_for_sysfs -- gen_context(system_u:object_r:udev_exec_t,s0) - -+/usr/libexec/udevadm -- gen_context(system_u:object_r:udev_exec_t,s0) -+ - ifdef(`distro_redhat',` - /usr/sbin/start_udev -- gen_context(system_u:object_r:udev_exec_t,s0) - ') --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0014-fc-rpm-apply-rpm_exec-policy-to-cpio-binaries.patch deleted +0 -29
@@ -1,29 +0,0 @@ -From 8d730316e752601949346c9ebd4aff8a3cb2b1bf Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Fri, 29 Mar 2019 09:54:07 -0400 -Subject: [PATCH 14/34] fc/rpm: apply rpm_exec policy to cpio binaries - -Upstream-Status: Pending - -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/admin/rpm.fc | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/policy/modules/admin/rpm.fc b/policy/modules/admin/rpm.fc -index 578d465c..f2b8003a 100644 ---- a/policy/modules/admin/rpm.fc -+++ b/policy/modules/admin/rpm.fc -@@ -65,5 +65,8 @@ ifdef(`distro_redhat',` - /run/PackageKit(/.*)? gen_context(system_u:object_r:rpm_var_run_t,s0) - - ifdef(`enable_mls',` --/usr/sbin/cpio -- gen_context(system_u:object_r:rpm_exec_t,s0) -+/usr/sbin/cpio -- gen_context(system_u:object_r:rpm_exec_t,s0) -+/usr/bin/cpio -- gen_context(system_u:object_r:rpm_exec_t,s0) -+/usr/bin/cpio.cpio -- gen_context(system_u:object_r:rpm_exec_t,s0) - ') -+ --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0015-fc-su-apply-policy-to-su-alternatives.patch deleted +0 -26
@@ -1,26 +0,0 @@ -From d9f2d5857c1d558fa09f7e7864bba8427437bea6 Mon Sep 17 00:00:00 2001 -From: Wenzong Fan <[email protected]> -Date: Thu, 13 Feb 2014 00:33:07 -0500 -Subject: [PATCH 15/34] fc/su: apply policy to su alternatives - -Upstream-Status: Pending - -Signed-off-by: Wenzong Fan <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/admin/su.fc | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/policy/modules/admin/su.fc b/policy/modules/admin/su.fc -index 3375c969..435a6892 100644 ---- a/policy/modules/admin/su.fc -+++ b/policy/modules/admin/su.fc -@@ -1,3 +1,5 @@ - /usr/(local/)?bin/ksu -- gen_context(system_u:object_r:su_exec_t,s0) - /usr/bin/kdesu -- gen_context(system_u:object_r:su_exec_t,s0) - /usr/bin/su -- gen_context(system_u:object_r:su_exec_t,s0) -+/usr/bin/su\.shadow -- gen_context(system_u:object_r:su_exec_t,s0) -+/usr/bin/su\.util-linux -- gen_context(system_u:object_r:su_exec_t,s0) --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0016-fc-fstools-fix-real-path-for-fstools.patch deleted +0 -76
76 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0017-policy-module-logging-Add-the-syslogd_t-to-trusted-o.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From 628281e2e192269468cbe2c2818b6cab40975532 Mon Sep 17 00:00:00 2001 -From: Xin Ouyang <[email protected]> -Date: Thu, 22 Aug 2013 13:37:23 +0800 -Subject: [PATCH 17/34] policy/module/logging: Add the syslogd_t to trusted - object - -We add the syslogd_t to trusted object, because other process need -to have the right to connectto/sendto /dev/log. - -Upstream-Status: Inappropriate [only for Poky] - -Signed-off-by: Roy.Li <[email protected]> -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/logging.te | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te -index 07ed546d..a7b69932 100644 ---- a/policy/modules/system/logging.te -+++ b/policy/modules/system/logging.te -@@ -501,6 +501,7 @@ fs_getattr_all_fs(syslogd_t) - fs_search_auto_mountpoints(syslogd_t) - - mls_file_write_all_levels(syslogd_t) # Need to be able to write to /var/run/ and /var/log directories -+mls_trusted_object(syslogd_t) # Other process need to have the right to connectto/sendto /dev/log - - term_write_console(syslogd_t) - # Allow syslog to a terminal --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0018-policy-module-logging-add-rules-for-the-symlink-of-v.patch deleted +0 -100
100 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0019-policy-module-logging-add-rules-for-syslogd-symlink-.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From 51e282aa2730e4c6e038d42a84a561c080f41187 Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Fri, 29 Mar 2019 10:33:18 -0400 -Subject: [PATCH 19/34] policy/module/logging: add rules for syslogd symlink of - /var/log - -We have added rules for the symlink of /var/log in logging.if, while -syslogd_t uses /var/log but does not use the interfaces in logging.if. So -still need add a individual rule for syslogd_t. - -Upstream-Status: Inappropriate [only for Poky] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/logging.te | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te -index fa5664b0..63e92a8e 100644 ---- a/policy/modules/system/logging.te -+++ b/policy/modules/system/logging.te -@@ -417,6 +417,7 @@ files_search_spool(syslogd_t) - - # Allow access for syslog-ng - allow syslogd_t var_log_t:dir { create setattr }; -+allow syslogd_t var_log_t:lnk_file read_lnk_file_perms; - - # for systemd but can not be conditional - files_pid_filetrans(syslogd_t, syslogd_tmp_t, dir, "log") --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0020-policy-module-logging-add-domain-rules-for-the-subdi.patch deleted +0 -36
@@ -1,36 +0,0 @@ -From 6a0b9c735253a2596bfb2a453694e620a1fdc50b Mon Sep 17 00:00:00 2001 -From: Xin Ouyang <[email protected]> -Date: Fri, 23 Aug 2013 11:20:00 +0800 -Subject: [PATCH 20/34] policy/module/logging: add domain rules for the subdir - symlinks in /var/ - -Except /var/log,/var/run,/var/lock, there still other subdir symlinks in -/var for poky, so we need allow rules for all domains to read these -symlinks. Domains still need their practical allow rules to read the -contents, so this is still a secure relax. - -Upstream-Status: Inappropriate [only for Poky] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/kernel/domain.te | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/policy/modules/kernel/domain.te b/policy/modules/kernel/domain.te -index 1a55e3d2..babb794f 100644 ---- a/policy/modules/kernel/domain.te -+++ b/policy/modules/kernel/domain.te -@@ -110,6 +110,9 @@ term_use_controlling_term(domain) - # list the root directory - files_list_root(domain) - -+# Yocto/oe-core use some var volatile links -+files_read_var_symlinks(domain) -+ - ifdef(`hide_broken_symptoms',` - # This check is in the general socket - # listen code, before protocol-specific --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0021-policy-module-files-add-rules-for-the-symlink-of-tmp.patch deleted +0 -100
100 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0022-policy-module-terminals-add-rules-for-bsdpty_device_.patch deleted +0 -123
123 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0023-policy-module-terminals-don-t-audit-tty_device_t-in-.patch deleted +0 -37
@@ -1,37 +0,0 @@ -From fcf756e6906bba50d09224184d64ac56f40b6424 Mon Sep 17 00:00:00 2001 -From: Xin Ouyang <[email protected]> -Date: Thu, 22 Aug 2013 13:37:23 +0800 -Subject: [PATCH 23/34] policy/module/terminals: don't audit tty_device_t in - term_dontaudit_use_console. - -We should also not audit terminal to rw tty_device_t and fds in -term_dontaudit_use_console. - -Upstream-Status: Inappropriate [only for Poky] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/kernel/terminal.if | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/policy/modules/kernel/terminal.if b/policy/modules/kernel/terminal.if -index a84787e6..cf66da2f 100644 ---- a/policy/modules/kernel/terminal.if -+++ b/policy/modules/kernel/terminal.if -@@ -335,9 +335,12 @@ interface(`term_use_console',` - interface(`term_dontaudit_use_console',` - gen_require(` - type console_device_t; -+ type tty_device_t; - ') - -+ init_dontaudit_use_fds($1) - dontaudit $1 console_device_t:chr_file rw_chr_file_perms; -+ dontaudit $1 tty_device_t:chr_file rw_chr_file_perms; - ') - - ######################################## --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0024-policy-module-rpc-allow-nfsd-to-exec-shell-commands.patch deleted +0 -29
@@ -1,29 +0,0 @@ -From 85d5fc695ae69956715b502a8f1d95e9070dfbcc Mon Sep 17 00:00:00 2001 -From: Xin Ouyang <[email protected]> -Date: Thu, 22 Aug 2013 13:37:23 +0800 -Subject: [PATCH 24/34] policy/module/rpc: allow nfsd to exec shell commands. - -Upstream-Status: Inappropriate [only for Poky] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/services/rpc.te | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/policy/modules/services/rpc.te b/policy/modules/services/rpc.te -index 47fa2fd0..d4209231 100644 ---- a/policy/modules/services/rpc.te -+++ b/policy/modules/services/rpc.te -@@ -227,7 +227,7 @@ kernel_read_network_state(nfsd_t) - kernel_dontaudit_getattr_core_if(nfsd_t) - kernel_setsched(nfsd_t) - kernel_request_load_module(nfsd_t) --# kernel_mounton_proc(nfsd_t) -+kernel_mounton_proc(nfsd_t) - - corenet_sendrecv_nfs_server_packets(nfsd_t) - corenet_tcp_bind_nfs_port(nfsd_t) --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0025-policy-module-rpc-fix-policy-for-nfsserver-to-mount-.patch deleted +0 -77
77 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0026-policy-module-sysfs-fix-for-new-SELINUXMNT-in-sys.patch deleted +0 -126
126 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0027-policy-module-rpc-allow-sysadm-to-run-rpcinfo.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From fbb7431a4288c7dd2739bc3adfa521d427e6375a Mon Sep 17 00:00:00 2001 -From: Roy Li <[email protected]> -Date: Sat, 15 Feb 2014 09:45:00 +0800 -Subject: [PATCH 27/34] policy/module/rpc: allow sysadm to run rpcinfo - -Upstream-Status: Pending - -type=AVC msg=audit(1392427946.976:264): avc: denied { connectto } for pid=2111 comm="rpcinfo" path="/run/rpcbind.sock" scontext=system_u:system_r:rpcbind_t:s0-s15:c0.c1023 tcontext=system_u:system_r:rpcbind_t:s0-s15:c0.c1023 tclass=unix_stream_socket -type=SYSCALL msg=audit(1392427946.976:264): arch=c000003e syscall=42 success=no exit=-13 a0=3 a1=7fff3aa20000 a2=17 a3=22 items=0 ppid=2108 pid=2111 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=pts0 comm="rpcinfo" exe="/usr/sbin/rpcinfo" subj=system_u:system_r:rpcbind_t:s0-s15:c0.c1023 key=(null) - -Signed-off-by: Roy Li <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/roles/sysadm.te | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/policy/modules/roles/sysadm.te b/policy/modules/roles/sysadm.te -index e411d4fd..f326d1d7 100644 ---- a/policy/modules/roles/sysadm.te -+++ b/policy/modules/roles/sysadm.te -@@ -939,6 +939,7 @@ optional_policy(` - ') - - optional_policy(` -+ rpcbind_stream_connect(sysadm_t) - rpcbind_admin(sysadm_t, sysadm_r) - ') - --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0028-policy-module-userdomain-fix-selinux-utils-to-manage.patch deleted +0 -45
45 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0029-policy-module-selinuxutil-fix-setfiles-statvfs-to-ge.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From 524f823bb07e0eb763683b72f18999ef29ae43c9 Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Fri, 29 Mar 2019 11:30:27 -0400 -Subject: [PATCH 29/34] policy/module/selinuxutil: fix setfiles statvfs to get - file count - -New setfiles will read /proc/mounts and use statvfs in -file_system_count() to get file count of filesystems. - -Upstream-Status: Pending - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Shrikant Bobade <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/selinuxutil.te | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/policy/modules/system/selinuxutil.te b/policy/modules/system/selinuxutil.te -index db6bb368..98fed2d0 100644 ---- a/policy/modules/system/selinuxutil.te -+++ b/policy/modules/system/selinuxutil.te -@@ -607,6 +607,7 @@ files_relabel_all_files(setfiles_t) - files_read_usr_symlinks(setfiles_t) - files_dontaudit_read_all_symlinks(setfiles_t) - -+fs_getattr_all_fs(setfiles_t) - fs_getattr_all_xattr_fs(setfiles_t) - fs_getattr_cgroup(setfiles_t) - fs_getattr_nfs(setfiles_t) --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0030-policy-module-admin-fix-dmesg-to-use-dev-kmsg-as-def.patch deleted +0 -25
@@ -1,25 +0,0 @@ -From 78210f371391ccfad1d18b89a91ffb5a83f451e0 Mon Sep 17 00:00:00 2001 -From: Xin Ouyang <[email protected]> -Date: Fri, 23 Aug 2013 16:36:09 +0800 -Subject: [PATCH 30/34] policy/module/admin: fix dmesg to use /dev/kmsg as - default input - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/admin/dmesg.if | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/policy/modules/admin/dmesg.if b/policy/modules/admin/dmesg.if -index e1973c78..739a4bc5 100644 ---- a/policy/modules/admin/dmesg.if -+++ b/policy/modules/admin/dmesg.if -@@ -37,4 +37,5 @@ interface(`dmesg_exec',` - - corecmd_search_bin($1) - can_exec($1, dmesg_exec_t) -+ dev_read_kmsg($1) - ') --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0031-policy-module-ftp-add-ftpd_t-to-mls_file_write_all_l.patch deleted +0 -41
41 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0032-policy-module-init-update-for-systemd-related-allow-.patch deleted +0 -32
@@ -1,32 +0,0 @@ -From dfbda15401f92e5d1b9b55c7ba24a543deea18e8 Mon Sep 17 00:00:00 2001 -From: Shrikant Bobade <[email protected]> -Date: Fri, 12 Jun 2015 19:37:52 +0530 -Subject: [PATCH 32/34] policy/module/init: update for systemd related allow - rules - -It provide, the systemd support related allow rules - -Upstream-Status: Pending - -Signed-off-by: Shrikant Bobade <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/init.te | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te -index eabba1ed..5da25cd6 100644 ---- a/policy/modules/system/init.te -+++ b/policy/modules/system/init.te -@@ -1418,3 +1418,8 @@ optional_policy(` - userdom_dontaudit_rw_all_users_stream_sockets(systemprocess) - userdom_dontaudit_write_user_tmp_files(systemprocess) - ') -+ -+# systemd related allow rules -+allow kernel_t init_t:process dyntransition; -+allow devpts_t device_t:filesystem associate; -+allow init_t self:capability2 block_suspend; --- -2.19.1 -
recipes-security/refpolicy/refpolicy-2.20190201/0033-refpolicy-minimum-make-sysadmin-module-optional.patch deleted +0 -67
67 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20190201/0034-policy-module-apache-add-rules-for-the-symlink-of-va.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From bbad13d008ab4df827ac2ba8dfc6dd3e430f6dd6 Mon Sep 17 00:00:00 2001 -From: Xin Ouyang <[email protected]> -Date: Thu, 22 Aug 2013 19:36:44 +0800 -Subject: [PATCH 34/34] policy/module/apache: add rules for the symlink of - /var/log - apache2 - -We have added rules for the symlink of /var/log in logging.if, -while apache.te uses /var/log but does not use the interfaces in -logging.if. So still need add a individual rule for apache.te. - -Upstream-Status: Pending - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/services/apache.te | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/policy/modules/services/apache.te b/policy/modules/services/apache.te -index 15c4ea53..596370b1 100644 ---- a/policy/modules/services/apache.te -+++ b/policy/modules/services/apache.te -@@ -412,6 +412,7 @@ create_files_pattern(httpd_t, httpd_log_t, httpd_log_t) - read_files_pattern(httpd_t, httpd_log_t, httpd_log_t) - setattr_files_pattern(httpd_t, httpd_log_t, httpd_log_t) - read_lnk_files_pattern(httpd_t, httpd_log_t, httpd_log_t) -+read_lnk_files_pattern(httpd_t, var_log_t, var_log_t) - logging_log_filetrans(httpd_t, httpd_log_t, file) - - allow httpd_t httpd_modules_t:dir list_dir_perms; --- -2.19.1 -
recipes-security/refpolicy/refpolicy-mcs_2.20190201.bb deleted +0 -11
@@ -1,11 +0,0 @@ -SUMMARY = "MCS (Multi Category Security) variant of the SELinux policy" -DESCRIPTION = "\ -This is the reference policy for SE Linux built with MCS support. \ -An MCS policy is the same as an MLS policy but with only one sensitivity \ -level. This is useful on systems where a hierarchical policy (MLS) isn't \ -needed (pretty much all systems) but the non-hierarchical categories are. \ -" - -POLICY_TYPE = "mcs" - -include refpolicy_${PV}.inc
recipes-security/refpolicy/refpolicy-minimum_2.20190201.bb deleted +0 -91
91 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-mls_2.20190201.bb deleted +0 -10
@@ -1,10 +0,0 @@ -SUMMARY = "MLS (Multi Level Security) variant of the SELinux policy" -DESCRIPTION = "\ -This is the reference policy for SE Linux built with MLS support. \ -It allows giving data labels such as \"Top Secret\" and preventing \ -such data from leaking to processes or files with lower classification. \ -" - -POLICY_TYPE = "mls" - -include refpolicy_${PV}.inc
recipes-security/refpolicy/refpolicy-standard_2.20190201.bb deleted +0 -8
@@ -1,8 +0,0 @@ -SUMMARY = "Standard variants of the SELinux policy" -DESCRIPTION = "\ -This is the reference policy for SELinux built with type enforcement \ -only." - -POLICY_TYPE = "standard" - -include refpolicy_${PV}.inc
recipes-security/refpolicy/refpolicy-targeted_2.20190201.bb deleted +0 -35
@@ -1,35 +0,0 @@ -SUMMARY = "SELinux targeted policy" -DESCRIPTION = "\ -This is the targeted variant of the SELinux reference policy. Most service \ -domains are locked down. Users and admins will login in with unconfined_t \ -domain, so they have the same access to the system as if SELinux was not \ -enabled. \ -" - -FILESEXTRAPATHS_prepend := "${THISDIR}/refpolicy-${PV}:" - -POLICY_NAME = "targeted" -POLICY_TYPE = "mcs" -POLICY_MLS_SENS = "0" - -include refpolicy_${PV}.inc - -SYSTEMD_REFPOLICY_PATCHES = " \ - file://0001-refpolicy-minimum-audit-logging-getty-audit-related-.patch \ - file://0002-refpolicy-minimum-locallogin-add-allow-rules-for-typ.patch \ - file://0003-refpolicy-minimum-systemd-unconfined-lib-add-systemd.patch \ - file://0004-refpolicy-minimum-systemd-mount-logging-authlogin-ad.patch \ - file://0005-refpolicy-minimum-init-fix-reboot-with-systemd-as-in.patch \ - file://0006-refpolicy-minimum-systemd-mount-enable-required-refp.patch \ - file://0007-refpolicy-minimum-systemd-fix-for-login-journal-serv.patch \ - file://0008-refpolicy-minimum-systemd-fix-for-systemd-tmp-files-.patch \ - file://0009-refpolicy-minimum-systemd-fix-for-syslog.patch \ - " - -SYSVINIT_REFPOLICY_PATCHES = " \ - file://0001-fix-update-alternatives-for-sysvinit.patch \ - " - -SRC_URI += " \ - ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${SYSTEMD_REFPOLICY_PATCHES}', '${SYSVINIT_REFPOLICY_PATCHES}', d)} \ - "
recipes-security/refpolicy/refpolicy_2.20190201.inc deleted +0 -9
@@ -1,9 +0,0 @@ -SRC_URI = "https://github.com/SELinuxProject/refpolicy/releases/download/RELEASE_2_20190201/refpolicy-${PV}.tar.bz2" -SRC_URI[md5sum] = "babb0d5ca2ae333631d25392b2b3ce8d" -SRC_URI[sha256sum] = "ed620dc91c4e09eee6271b373f7c61a364a82ea57bd2dc86ca1f7075304e2843" - -UPSTREAM_CHECK_GITTAGREGEX = "RELEASE_(?P<pver>\d+_\d+)" - -FILESEXTRAPATHS_prepend := "${THISDIR}/refpolicy-2.20190201:" - -include refpolicy_common.inc
Signature · 1 line
2.17.1
PATCH 2/4 refpolicy: update to 20200229+git
In reply to Yi Zhao* Drop obsolete and unused patches.
* Rebase patches.
* Add patches to make systemd and sysvinit can work with all policy types.
---
...m-audit-logging-getty-audit-related-.patch | 68 ------
...m-locallogin-add-allow-rules-for-typ.patch | 54 -----
...ogd-apply-policy-to-sysklogd-symlink.patch | 57 ------
...m-systemd-unconfined-lib-add-systemd.patch | 121 -----------
...m-systemd-mount-logging-authlogin-ad.patch | 96 ---------
...m-init-fix-reboot-with-systemd-as-in.patch | 37 ----
...abel-resolv.conf-in-var-run-properly.patch | 30 ---
...m-systemd-mount-enable-required-refp.patch | 92 ---------
...m-systemd-fix-for-login-journal-serv.patch | 103 ----------
...m-systemd-fix-for-systemd-tmp-files-.patch | 110 ----------
...-fc-hwclock-add-hwclock-alternatives.patch | 28 ---
...olicy-minimum-systemd-fix-for-syslog.patch | 70 -------
...g-apply-policy-to-dmesg-alternatives.patch | 24 ---
...ply-rpm_exec-policy-to-cpio-binaries.patch | 29 ---
...pc-allow-nfsd-to-exec-shell-commands.patch | 29 ---
...c-fix-policy-for-nfsserver-to-mount-.patch | 77 -------
...-sysfs-fix-for-new-SELINUXMNT-in-sys.patch | 126 ------------
...dule-rpc-allow-sysadm-to-run-rpcinfo.patch | 31 ---
...erdomain-fix-selinux-utils-to-manage.patch | 45 ----
...linuxutil-fix-setfiles-statvfs-to-ge.patch | 33 ---
...min-fix-dmesg-to-use-dev-kmsg-as-def.patch | 25 ---
...p-add-ftpd_t-to-mls_file_write_all_l.patch | 41 ----
...it-update-for-systemd-related-allow-.patch | 32 ---
...ache-add-rules-for-the-symlink-of-va.patch | 33 ---
.../refpolicy/refpolicy-minimum_git.bb | 6 +-
.../refpolicy/refpolicy-targeted_git.bb | 20 +-
...tile-alias-common-var-volatile-paths.patch | 21 +-
...nimum-make-sysadmin-module-optional.patch} | 40 ++--
...ed-make-unconfined_u-the-default-sel.patch | 193 ++++++++++++++++++
...box-set-aliases-for-bin-sbin-and-usr.patch | 26 +--
...-policy-to-common-yocto-hostname-al.patch} | 21 +-
...r-bin-bash-context-to-bin-bash.bash.patch} | 17 +-
...abel-resolv.conf-in-var-run-properly.patch | 29 +++
...apply-login-context-to-login.shadow.patch} | 13 +-
...0007-fc-bind-fix-real-path-for-bind.patch} | 13 +-
...-fc-hwclock-add-hwclock-alternatives.patch | 25 +++
...g-apply-policy-to-dmesg-alternatives.patch | 23 +++
...sh-apply-policy-to-ssh-alternatives.patch} | 13 +-
...ork-apply-policy-to-ip-alternatives.patch} | 35 ++--
...-apply-policy-to-udevadm-in-libexec.patch} | 13 +-
...ply-rpm_exec-policy-to-cpio-binaries.patch | 27 +++
...-su-apply-policy-to-su-alternatives.patch} | 15 +-
...c-fstools-fix-real-path-for-fstools.patch} | 58 +++---
...ix-update-alternatives-for-sysvinit.patch} | 40 ++--
...l-apply-policy-to-brctl-alternatives.patch | 24 +++
...apply-policy-to-nologin-alternatives.patch | 28 +++
...apply-policy-to-sulogin-alternatives.patch | 25 +++
...tp-apply-policy-to-ntpd-alternatives.patch | 27 +++
...pply-policy-to-kerberos-alternatives.patch | 50 +++++
...ap-apply-policy-to-ldap-alternatives.patch | 40 ++++
...ply-policy-to-postgresql-alternative.patch | 37 ++++
...-apply-policy-to-screen-alternatives.patch | 25 +++
...ply-policy-to-usermanage-alternative.patch | 45 ++++
...etty-add-file-context-to-start_getty.patch | 27 +++
...file-context-to-etc-network-if-files.patch | 33 +++
...k-apply-policy-to-vlock-alternatives.patch | 25 +++
...ron-apply-policy-to-etc-init.d-crond.patch | 25 +++
...bs_dist-set-aliase-for-root-director.patch | 30 +++
...stem-logging-add-rules-for-the-syml.patch} | 59 ++++--
...stem-logging-add-rules-for-syslogd-.patch} | 17 +-
...stem-logging-add-domain-rules-for-t.patch} | 13 +-
...rnel-files-add-rules-for-the-symlin.patch} | 32 +--
...rnel-terminal-add-rules-for-bsdpty_.patch} | 17 +-
...rnel-terminal-don-t-audit-tty_devic.patch} | 13 +-
...ervices-avahi-allow-avahi_t-to-watch.patch | 34 +++
...ystem-getty-allow-getty_t-watch-gett.patch | 42 ++++
...ervices-bluetooth-allow-bluetooth_t-.patch | 65 ++++++
...oles-sysadm-allow-sysadm-to-run-rpci.patch | 38 ++++
...ervices-rpc-add-capability-dac_read_.patch | 34 +++
...ervices-rpcbind-allow-rpcbind_t-to-c.patch | 45 ++++
...ervices-rngd-fix-security-context-fo.patch | 64 ++++++
...ystem-authlogin-allow-chkpwd_t-to-ma.patch | 34 +++
...ystem-udev-allow-udevadm_t-to-search.patch | 34 +++
...dev-do-not-audit-udevadm_t-to-read-w.patch | 37 ++++
...ervices-rdisc-allow-rdisc_t-to-searc.patch | 34 +++
...ystem-logging-fix-auditd-startup-fai.patch | 52 +++++
...ervices-ssh-make-respective-init-scr.patch | 33 +++
...ernel-terminal-allow-loging-to-reset.patch | 31 +++
...ystem-selinuxutil-allow-semanage_t-t.patch | 33 +++
...ystem-sysnetwork-allow-ifconfig_t-to.patch | 35 ++++
...ervices-ntp-allow-ntpd_t-to-watch-sy.patch | 55 +++++
...ystem-systemd-enable-support-for-sys.patch | 64 ++++++
...ystem-logging-fix-systemd-journald-s.patch | 74 +++++++
...oles-sysadm-allow-sysadm_t-to-watch-.patch | 36 ++++
...ystem-systemd-add-capability-mknod-f.patch | 35 ++++
...ystem-systemd-systemd-gpt-auto-gener.patch | 35 ++++
...ervices-rpc-fix-policy-for-nfsserver.patch | 78 +++++++
...ervices-rpc-make-rpcd_t-MLS-trusted-.patch | 36 ++++
...oles-sysadm-MLS-sysadm-rw-to-clearan.patch | 41 ++++
...ystem-mount-make-mount_t-domain-MLS-.patch | 36 ++++
...ystem-setrans-allow-setrans-to-acces.patch | 53 +++++
...dmin-dmesg-make-dmesg_t-MLS-trusted-.patch | 36 ++++
...ernel-kernel-make-kernel_t-MLS-trust.patch | 77 +++++++
...ystem-init-make-init_t-MLS-trusted-f.patch | 46 +++++
...ystem-systemd-make-systemd-tmpfiles_.patch | 63 ++++++
...stem-logging-add-the-syslogd_t-to-t.patch} | 20 +-
...ystem-init-make-init_t-MLS-trusted-f.patch | 33 +++
...ystem-init-all-init_t-to-read-any-le.patch | 40 ++++
...ystem-logging-allow-auditd_t-to-writ.patch | 39 ++++
...ernel-kernel-make-kernel_t-MLS-trust.patch | 32 +++
...ystem-systemd-make-systemd-logind-do.patch | 42 ++++
...ystem-systemd-systemd-user-sessions-.patch | 41 ++++
...ystem-systemd-systemd-networkd-make-.patch | 36 ++++
...ystem-systemd-systemd-resolved-make-.patch | 40 ++++
...ystem-systemd-make-systemd-modules_t.patch | 36 ++++
...ystem-systemd-systemd-gpt-auto-gener.patch | 70 +++++++
...ervices-ntp-make-nptd_t-MLS-trusted-.patch | 40 ++++
...ervices-avahi-make-avahi_t-MLS-trust.patch | 29 +++
.../refpolicy/refpolicy_common.inc | 118 +++++++----
recipes-security/refpolicy/refpolicy_git.inc | 6 +-
110 files changed, 2982 insertions(+), 1681 deletions(-)
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0001-refpolicy-minimum-audit-logging-getty-audit-related-.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0002-refpolicy-minimum-locallogin-add-allow-rules-for-typ.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0003-fc-sysklogd-apply-policy-to-sysklogd-symlink.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0003-refpolicy-minimum-systemd-unconfined-lib-add-systemd.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0004-refpolicy-minimum-systemd-mount-logging-authlogin-ad.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0005-refpolicy-minimum-init-fix-reboot-with-systemd-as-in.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0006-fc-resolv.conf-label-resolv.conf-in-var-run-properly.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0006-refpolicy-minimum-systemd-mount-enable-required-refp.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0007-refpolicy-minimum-systemd-fix-for-login-journal-serv.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0008-refpolicy-minimum-systemd-fix-for-systemd-tmp-files-.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0009-fc-hwclock-add-hwclock-alternatives.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0009-refpolicy-minimum-systemd-fix-for-syslog.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0010-fc-dmesg-apply-policy-to-dmesg-alternatives.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0014-fc-rpm-apply-rpm_exec-policy-to-cpio-binaries.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0024-policy-module-rpc-allow-nfsd-to-exec-shell-commands.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0025-policy-module-rpc-fix-policy-for-nfsserver-to-mount-.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0026-policy-module-sysfs-fix-for-new-SELINUXMNT-in-sys.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0027-policy-module-rpc-allow-sysadm-to-run-rpcinfo.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0028-policy-module-userdomain-fix-selinux-utils-to-manage.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0029-policy-module-selinuxutil-fix-setfiles-statvfs-to-ge.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0030-policy-module-admin-fix-dmesg-to-use-dev-kmsg-as-def.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0031-policy-module-ftp-add-ftpd_t-to-mls_file_write_all_l.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0032-policy-module-init-update-for-systemd-related-allow-.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-git/0034-policy-module-apache-add-rules-for-the-symlink-of-va.patch
rename recipes-security/refpolicy/{refpolicy-git => refpolicy}/0001-fc-subs-volatile-alias-common-var-volatile-paths.patch (63%)
rename recipes-security/refpolicy/{refpolicy-git/0033-refpolicy-minimum-make-sysadmin-module-optional.patch => refpolicy/0001-refpolicy-minimum-make-sysadmin-module-optional.patch} (65%)
create mode 100644 recipes-security/refpolicy/refpolicy/0001-refpolicy-targeted-make-unconfined_u-the-default-sel.patch
rename recipes-security/refpolicy/{refpolicy-git => refpolicy}/0002-fc-subs-busybox-set-aliases-for-bin-sbin-and-usr.patch (54%)
rename recipes-security/refpolicy/{refpolicy-git/0004-fc-hostname-apply-policy-to-common-yocto-hostname-al.patch => refpolicy/0003-fc-hostname-apply-policy-to-common-yocto-hostname-al.patch} (60%)
rename recipes-security/refpolicy/{refpolicy-git/0005-fc-bash-apply-usr-bin-bash-context-to-bin-bash.bash.patch => refpolicy/0004-fc-bash-apply-usr-bin-bash-context-to-bin-bash.bash.patch} (66%)
create mode 100644 recipes-security/refpolicy/refpolicy/0005-fc-resolv.conf-label-resolv.conf-in-var-run-properly.patch
rename recipes-security/refpolicy/{refpolicy-git/0007-fc-login-apply-login-context-to-login.shadow.patch => refpolicy/0006-fc-login-apply-login-context-to-login.shadow.patch} (69%)
rename recipes-security/refpolicy/{refpolicy-git/0008-fc-bind-fix-real-path-for-bind.patch => refpolicy/0007-fc-bind-fix-real-path-for-bind.patch} (76%)
create mode 100644 recipes-security/refpolicy/refpolicy/0008-fc-hwclock-add-hwclock-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0009-fc-dmesg-apply-policy-to-dmesg-alternatives.patch
rename recipes-security/refpolicy/{refpolicy-git/0011-fc-ssh-apply-policy-to-ssh-alternatives.patch => refpolicy/0010-fc-ssh-apply-policy-to-ssh-alternatives.patch} (71%)
rename recipes-security/refpolicy/{refpolicy-git/0012-fc-sysnetwork-apply-policy-to-ip-alternatives.patch => refpolicy/0011-fc-sysnetwork-apply-policy-to-ip-alternatives.patch} (59%)
rename recipes-security/refpolicy/{refpolicy-git/0013-fc-udev-apply-policy-to-udevadm-in-libexec.patch => refpolicy/0012-fc-udev-apply-policy-to-udevadm-in-libexec.patch} (66%)
create mode 100644 recipes-security/refpolicy/refpolicy/0013-fc-rpm-apply-rpm_exec-policy-to-cpio-binaries.patch
rename recipes-security/refpolicy/{refpolicy-git/0015-fc-su-apply-policy-to-su-alternatives.patch => refpolicy/0014-fc-su-apply-policy-to-su-alternatives.patch} (61%)
rename recipes-security/refpolicy/{refpolicy-git/0016-fc-fstools-fix-real-path-for-fstools.patch => refpolicy/0015-fc-fstools-fix-real-path-for-fstools.patch} (62%)
rename recipes-security/refpolicy/{refpolicy-git/0001-fix-update-alternatives-for-sysvinit.patch => refpolicy/0016-fc-init-fix-update-alternatives-for-sysvinit.patch} (59%)
create mode 100644 recipes-security/refpolicy/refpolicy/0017-fc-brctl-apply-policy-to-brctl-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0018-fc-corecommands-apply-policy-to-nologin-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0019-fc-locallogin-apply-policy-to-sulogin-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0020-fc-ntp-apply-policy-to-ntpd-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0021-fc-kerberos-apply-policy-to-kerberos-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0022-fc-ldap-apply-policy-to-ldap-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0023-fc-postgresql-apply-policy-to-postgresql-alternative.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0024-fc-screen-apply-policy-to-screen-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0025-fc-usermanage-apply-policy-to-usermanage-alternative.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0026-fc-getty-add-file-context-to-start_getty.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0027-fc-init-add-file-context-to-etc-network-if-files.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0028-fc-vlock-apply-policy-to-vlock-alternatives.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0029-fc-cron-apply-policy-to-etc-init.d-crond.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0030-file_contexts.subs_dist-set-aliase-for-root-director.patch
rename recipes-security/refpolicy/{refpolicy-git/0018-policy-module-logging-add-rules-for-the-symlink-of-v.patch => refpolicy/0031-policy-modules-system-logging-add-rules-for-the-syml.patch} (63%)
rename recipes-security/refpolicy/{refpolicy-git/0019-policy-module-logging-add-rules-for-syslogd-symlink-.patch => refpolicy/0032-policy-modules-system-logging-add-rules-for-syslogd-.patch} (66%)
rename recipes-security/refpolicy/{refpolicy-git/0020-policy-module-logging-add-domain-rules-for-the-subdi.patch => refpolicy/0033-policy-modules-system-logging-add-domain-rules-for-t.patch} (76%)
rename recipes-security/refpolicy/{refpolicy-git/0021-policy-module-files-add-rules-for-the-symlink-of-tmp.patch => refpolicy/0034-policy-modules-kernel-files-add-rules-for-the-symlin.patch} (71%)
rename recipes-security/refpolicy/{refpolicy-git/0022-policy-module-terminals-add-rules-for-bsdpty_device_.patch => refpolicy/0035-policy-modules-kernel-terminal-add-rules-for-bsdpty_.patch} (87%)
rename recipes-security/refpolicy/{refpolicy-git/0023-policy-module-terminals-don-t-audit-tty_device_t-in-.patch => refpolicy/0036-policy-modules-kernel-terminal-don-t-audit-tty_devic.patch} (74%)
create mode 100644 recipes-security/refpolicy/refpolicy/0037-policy-modules-services-avahi-allow-avahi_t-to-watch.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0038-policy-modules-system-getty-allow-getty_t-watch-gett.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0039-policy-modules-services-bluetooth-allow-bluetooth_t-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0040-policy-modules-roles-sysadm-allow-sysadm-to-run-rpci.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0041-policy-modules-services-rpc-add-capability-dac_read_.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0042-policy-modules-services-rpcbind-allow-rpcbind_t-to-c.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0043-policy-modules-services-rngd-fix-security-context-fo.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0044-policy-modules-system-authlogin-allow-chkpwd_t-to-ma.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0045-policy-modules-system-udev-allow-udevadm_t-to-search.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0046-policy-modules-udev-do-not-audit-udevadm_t-to-read-w.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0047-policy-modules-services-rdisc-allow-rdisc_t-to-searc.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0048-policy-modules-system-logging-fix-auditd-startup-fai.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0049-policy-modules-services-ssh-make-respective-init-scr.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0050-policy-modules-kernel-terminal-allow-loging-to-reset.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0051-policy-modules-system-selinuxutil-allow-semanage_t-t.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0052-policy-modules-system-sysnetwork-allow-ifconfig_t-to.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0053-policy-modules-services-ntp-allow-ntpd_t-to-watch-sy.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0054-policy-modules-system-systemd-enable-support-for-sys.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0055-policy-modules-system-logging-fix-systemd-journald-s.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0056-policy-modules-roles-sysadm-allow-sysadm_t-to-watch-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0057-policy-modules-system-systemd-add-capability-mknod-f.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0058-policy-modules-system-systemd-systemd-gpt-auto-gener.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0059-policy-modules-services-rpc-fix-policy-for-nfsserver.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0060-policy-modules-services-rpc-make-rpcd_t-MLS-trusted-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0061-policy-modules-roles-sysadm-MLS-sysadm-rw-to-clearan.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0062-policy-modules-system-mount-make-mount_t-domain-MLS-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0063-policy-modules-system-setrans-allow-setrans-to-acces.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0064-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0065-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0066-policy-modules-system-init-make-init_t-MLS-trusted-f.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0067-policy-modules-system-systemd-make-systemd-tmpfiles_.patch
rename recipes-security/refpolicy/{refpolicy-git/0017-policy-module-logging-Add-the-syslogd_t-to-trusted-o.patch => refpolicy/0068-policy-modules-system-logging-add-the-syslogd_t-to-t.patch} (60%)
create mode 100644 recipes-security/refpolicy/refpolicy/0069-policy-modules-system-init-make-init_t-MLS-trusted-f.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0070-policy-modules-system-init-all-init_t-to-read-any-le.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0071-policy-modules-system-logging-allow-auditd_t-to-writ.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0072-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0073-policy-modules-system-systemd-make-systemd-logind-do.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0074-policy-modules-system-systemd-systemd-user-sessions-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0075-policy-modules-system-systemd-systemd-networkd-make-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0076-policy-modules-system-systemd-systemd-resolved-make-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0077-policy-modules-system-systemd-make-systemd-modules_t.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0078-policy-modules-system-systemd-systemd-gpt-auto-gener.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0079-policy-modules-services-ntp-make-nptd_t-MLS-trusted-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0080-policy-modules-services-avahi-make-avahi_t-MLS-trust.patchrecipes-security/refpolicy/refpolicy-git/0001-refpolicy-minimum-audit-logging-getty-audit-related-.patch deleted +0 -68
@@ -1,68 +0,0 @@ -From 0f25b7c345d516eccd1c02c93f752ce073b84865 Mon Sep 17 00:00:00 2001 -From: Shrikant Bobade <[email protected]> -Date: Fri, 26 Aug 2016 17:51:44 +0530 -Subject: [PATCH 1/9] refpolicy-minimum: audit: logging: getty: audit related - allow rules - -add allow rules for audit.log file & resolve dependent avc denials. - -without this change we are getting audit avc denials mixed into bootlog & -audit other avc denials. - -audit: type=1400 audit(): avc: denied { getattr } for pid=217 comm="mount" -name="/" dev="proc" ino=1 scontext=system_u:system_r:mount_t:s0 tcontext=system_0 -audit: type=1400 audit(): avc: denied { sendto } for pid=310 comm="klogd" -path="/run/systemd/journal/dev-log" scontext=sy0 -audit: type=1400 audit(): avc: denied { sendto } for pid=310 comm="klogd" -path="/run/systemd/journal/dev-log" scontext=system_u:system_r:klogd_t:s0 -audit(): avc: denied { open } for pid=540 comm="agetty" path="/var/ -volatile/log/wtmp" dev="tmpfs" ino=9536 scontext=system_u:system_r:getty_t -:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=file permissive=0 - -Upstream-Status: Pending - -Signed-off-by: Shrikant Bobade <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/getty.te | 3 +++ - policy/modules/system/logging.te | 8 ++++++++ - 2 files changed, 11 insertions(+) - -diff --git a/policy/modules/system/getty.te b/policy/modules/system/getty.te -index 6d3c4284..423db0cc 100644 ---- a/policy/modules/system/getty.te -+++ b/policy/modules/system/getty.te -@@ -129,3 +129,6 @@ optional_policy(` - optional_policy(` - udev_read_db(getty_t) - ') -+ -+allow getty_t tmpfs_t:dir search; -+allow getty_t tmpfs_t:file { open write lock }; -diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te -index e6221a02..4cc73327 100644 ---- a/policy/modules/system/logging.te -+++ b/policy/modules/system/logging.te -@@ -249,6 +249,7 @@ allow audisp_t self:unix_stream_socket create_stream_socket_perms; - allow audisp_t self:unix_dgram_socket create_socket_perms; - - allow audisp_t auditd_t:unix_stream_socket rw_socket_perms; -+allow audisp_t initrc_t:unix_dgram_socket sendto; - - manage_sock_files_pattern(audisp_t, audisp_var_run_t, audisp_var_run_t) - files_pid_filetrans(audisp_t, audisp_var_run_t, sock_file) -@@ -620,3 +621,10 @@ optional_policy(` - # log to the xconsole - xserver_rw_console(syslogd_t) - ') -+ -+ -+allow auditd_t tmpfs_t:file { getattr setattr create open read append }; -+allow auditd_t tmpfs_t:dir { open read search add_name write getattr search }; -+allow auditd_t initrc_t:unix_dgram_socket sendto; -+ -+allow klogd_t initrc_t:unix_dgram_socket sendto; -\ No newline at end of file --- -2.19.1 -
recipes-security/refpolicy/refpolicy-git/0002-refpolicy-minimum-locallogin-add-allow-rules-for-typ.patch deleted +0 -54
54 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-git/0003-fc-sysklogd-apply-policy-to-sysklogd-symlink.patch deleted +0 -57
57 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-git/0003-refpolicy-minimum-systemd-unconfined-lib-add-systemd.patch deleted +0 -121
121 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-git/0004-refpolicy-minimum-systemd-mount-logging-authlogin-ad.patch deleted +0 -96
96 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-git/0005-refpolicy-minimum-init-fix-reboot-with-systemd-as-in.patch deleted +0 -37
@@ -1,37 +0,0 @@ -From 54a00a22a0d9aca794440bf51511f5477e9249d2 Mon Sep 17 00:00:00 2001 -From: Shrikant Bobade <[email protected]> -Date: Fri, 26 Aug 2016 17:53:53 +0530 -Subject: [PATCH 5/9] refpolicy-minimum: init: fix reboot with systemd as init - manager. - -add allow rule to fix avc denial during system reboot. - -without this change we are getting: - -audit: type=1107 audit(): pid=1 uid=0 auid=4294967295 ses=4294967295 subj= -system_u:system_r:init_t:s0 msg='avc: denied { reboot } for auid=n/a uid=0 -gid=0 cmdline="/bin/systemctl --force reboot" scontext=system_u:system_r: -initrc_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=system - -Upstream-Status: Pending - -Signed-off-by: Shrikant Bobade <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/init.te | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te -index e15ec4b9..843fdcff 100644 ---- a/policy/modules/system/init.te -+++ b/policy/modules/system/init.te -@@ -1427,5 +1427,5 @@ allow devpts_t device_t:filesystem associate; - allow init_t self:capability2 block_suspend; - allow init_t self:capability2 audit_read; - --allow initrc_t init_t:system { start status }; -+allow initrc_t init_t:system { start status reboot }; - allow initrc_t init_var_run_t:service { start status }; --- -2.19.1 -
recipes-security/refpolicy/refpolicy-git/0006-fc-resolv.conf-label-resolv.conf-in-var-run-properly.patch deleted +0 -30
@@ -1,30 +0,0 @@ -From 9818faa2a732d6d1cda72926526f104de74bd992 Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Thu, 4 Apr 2019 10:45:03 -0400 -Subject: [PATCH 06/34] fc/resolv.conf: label resolv.conf in var/run/ properly - -Upstream-Status: Pending - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> - -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/sysnetwork.fc | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/policy/modules/system/sysnetwork.fc b/policy/modules/system/sysnetwork.fc -index 1e5432a4..ac7c2dd1 100644 ---- a/policy/modules/system/sysnetwork.fc -+++ b/policy/modules/system/sysnetwork.fc -@@ -22,6 +22,7 @@ ifdef(`distro_debian',` - /etc/denyhosts.* -- gen_context(system_u:object_r:net_conf_t,s0) - /etc/resolv\.conf.* -- gen_context(system_u:object_r:net_conf_t,s0) - /etc/yp\.conf.* -- gen_context(system_u:object_r:net_conf_t,s0) -+/var/run/resolv\.conf.* -- gen_context(system_u:object_r:net_conf_t,s0) - - /etc/dhcp3(/.*)? gen_context(system_u:object_r:dhcp_etc_t,s0) - /etc/dhcp3?/dhclient.* gen_context(system_u:object_r:dhcp_etc_t,s0) --- -2.19.1 -
recipes-security/refpolicy/refpolicy-git/0006-refpolicy-minimum-systemd-mount-enable-required-refp.patch deleted +0 -92
92 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-git/0007-refpolicy-minimum-systemd-fix-for-login-journal-serv.patch deleted +0 -103
103 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-git/0008-refpolicy-minimum-systemd-fix-for-systemd-tmp-files-.patch deleted +0 -110
110 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-git/0009-fc-hwclock-add-hwclock-alternatives.patch deleted +0 -28
@@ -1,28 +0,0 @@ -From afaee985ce8cb915905b9cbef141db5d4b7f228c Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Thu, 28 Mar 2019 21:59:18 -0400 -Subject: [PATCH 09/34] fc/hwclock: add hwclock alternatives - -Upstream-Status: Pending - -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/clock.fc | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/policy/modules/system/clock.fc b/policy/modules/system/clock.fc -index 30196589..e0dc4b6f 100644 ---- a/policy/modules/system/clock.fc -+++ b/policy/modules/system/clock.fc -@@ -2,4 +2,7 @@ - - /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) -+/usr/sbin/hwclock\.util-linux -- gen_context(system_u:object_r:hwclock_exec_t,s0) -+/usr/sbin/hwclock -- gen_context(system_u:object_r:hwclock_exec_t,s0) -+/usr/lib/busybox/sbin/hwclock -- gen_context(system_u:object_r:hwclock_exec_t,s0) -+/sbin/hwclock -- gen_context(system_u:object_r:hwclock_exec_t,s0) --- -2.19.1 -
recipes-security/refpolicy/refpolicy-git/0009-refpolicy-minimum-systemd-fix-for-syslog.patch deleted +0 -70
70 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-git/0010-fc-dmesg-apply-policy-to-dmesg-alternatives.patch deleted +0 -24
@@ -1,24 +0,0 @@ -From 9f8b5359ce85eab23a5c46157497c44fd3bc4335 Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Fri, 29 Mar 2019 08:26:55 -0400 -Subject: [PATCH 10/34] fc/dmesg: apply policy to dmesg alternatives - -Upstream-Status: Pending - -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/admin/dmesg.fc | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/policy/modules/admin/dmesg.fc b/policy/modules/admin/dmesg.fc -index e52fdfcf..85d15127 100644 ---- a/policy/modules/admin/dmesg.fc -+++ b/policy/modules/admin/dmesg.fc -@@ -1 +1,3 @@ --/usr/bin/dmesg -- gen_context(system_u:object_r:dmesg_exec_t,s0) -+/usr/bin/dmesg -- gen_context(system_u:object_r:dmesg_exec_t,s0) -+/usr/bin/dmesg\.util-linux -- gen_context(system_u:object_r:dmesg_exec_t,s0) -+/usr/lib/busybox/bin/dmesg -- gen_context(system_u:object_r:dmesg_exec_t,s0) --- -2.19.1 -
recipes-security/refpolicy/refpolicy-git/0014-fc-rpm-apply-rpm_exec-policy-to-cpio-binaries.patch deleted +0 -29
@@ -1,29 +0,0 @@ -From c8dbbbaed4371c600d057736d1dab78371066fdd Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Fri, 29 Mar 2019 09:54:07 -0400 -Subject: [PATCH 14/34] fc/rpm: apply rpm_exec policy to cpio binaries - -Upstream-Status: Pending - -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/admin/rpm.fc | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/policy/modules/admin/rpm.fc b/policy/modules/admin/rpm.fc -index 578d465c..f2b8003a 100644 ---- a/policy/modules/admin/rpm.fc -+++ b/policy/modules/admin/rpm.fc -@@ -65,5 +65,8 @@ ifdef(`distro_redhat',` - /run/PackageKit(/.*)? gen_context(system_u:object_r:rpm_var_run_t,s0) - - ifdef(`enable_mls',` --/usr/sbin/cpio -- gen_context(system_u:object_r:rpm_exec_t,s0) -+/usr/sbin/cpio -- gen_context(system_u:object_r:rpm_exec_t,s0) -+/usr/bin/cpio -- gen_context(system_u:object_r:rpm_exec_t,s0) -+/usr/bin/cpio.cpio -- gen_context(system_u:object_r:rpm_exec_t,s0) - ') -+ --- -2.19.1 -
recipes-security/refpolicy/refpolicy-git/0024-policy-module-rpc-allow-nfsd-to-exec-shell-commands.patch deleted +0 -29
@@ -1,29 +0,0 @@ -From bc1f2fba24fb63cd9a65ec22b34fcc59798bbaff Mon Sep 17 00:00:00 2001 -From: Xin Ouyang <[email protected]> -Date: Thu, 22 Aug 2013 13:37:23 +0800 -Subject: [PATCH 24/34] policy/module/rpc: allow nfsd to exec shell commands. - -Upstream-Status: Inappropriate [only for Poky] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/services/rpc.te | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/policy/modules/services/rpc.te b/policy/modules/services/rpc.te -index 47fa2fd0..d4209231 100644 ---- a/policy/modules/services/rpc.te -+++ b/policy/modules/services/rpc.te -@@ -227,7 +227,7 @@ kernel_read_network_state(nfsd_t) - kernel_dontaudit_getattr_core_if(nfsd_t) - kernel_setsched(nfsd_t) - kernel_request_load_module(nfsd_t) --# kernel_mounton_proc(nfsd_t) -+kernel_mounton_proc(nfsd_t) - - corenet_sendrecv_nfs_server_packets(nfsd_t) - corenet_tcp_bind_nfs_port(nfsd_t) --- -2.19.1 -
recipes-security/refpolicy/refpolicy-git/0025-policy-module-rpc-fix-policy-for-nfsserver-to-mount-.patch deleted +0 -77
77 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-git/0026-policy-module-sysfs-fix-for-new-SELINUXMNT-in-sys.patch deleted +0 -126
126 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-git/0027-policy-module-rpc-allow-sysadm-to-run-rpcinfo.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From 447036f5ead83977933b375f5587595b85307a7d Mon Sep 17 00:00:00 2001 -From: Roy Li <[email protected]> -Date: Sat, 15 Feb 2014 09:45:00 +0800 -Subject: [PATCH 27/34] policy/module/rpc: allow sysadm to run rpcinfo - -Upstream-Status: Pending - -type=AVC msg=audit(1392427946.976:264): avc: denied { connectto } for pid=2111 comm="rpcinfo" path="/run/rpcbind.sock" scontext=system_u:system_r:rpcbind_t:s0-s15:c0.c1023 tcontext=system_u:system_r:rpcbind_t:s0-s15:c0.c1023 tclass=unix_stream_socket -type=SYSCALL msg=audit(1392427946.976:264): arch=c000003e syscall=42 success=no exit=-13 a0=3 a1=7fff3aa20000 a2=17 a3=22 items=0 ppid=2108 pid=2111 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=pts0 comm="rpcinfo" exe="/usr/sbin/rpcinfo" subj=system_u:system_r:rpcbind_t:s0-s15:c0.c1023 key=(null) - -Signed-off-by: Roy Li <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/roles/sysadm.te | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/policy/modules/roles/sysadm.te b/policy/modules/roles/sysadm.te -index 2ae952bf..d781378f 100644 ---- a/policy/modules/roles/sysadm.te -+++ b/policy/modules/roles/sysadm.te -@@ -945,6 +945,7 @@ optional_policy(` - ') - - optional_policy(` -+ rpcbind_stream_connect(sysadm_t) - rpcbind_admin(sysadm_t, sysadm_r) - ') - --- -2.19.1 -
recipes-security/refpolicy/refpolicy-git/0028-policy-module-userdomain-fix-selinux-utils-to-manage.patch deleted +0 -45
45 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-git/0029-policy-module-selinuxutil-fix-setfiles-statvfs-to-ge.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From d97aef0ecdb2ff964b1ed3d0b18ce83c2ab42f14 Mon Sep 17 00:00:00 2001 -From: Joe MacDonald <[email protected]> -Date: Fri, 29 Mar 2019 11:30:27 -0400 -Subject: [PATCH 29/34] policy/module/selinuxutil: fix setfiles statvfs to get - file count - -New setfiles will read /proc/mounts and use statvfs in -file_system_count() to get file count of filesystems. - -Upstream-Status: Pending - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Shrikant Bobade <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/selinuxutil.te | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/policy/modules/system/selinuxutil.te b/policy/modules/system/selinuxutil.te -index 8a1688cc..a9930e9e 100644 ---- a/policy/modules/system/selinuxutil.te -+++ b/policy/modules/system/selinuxutil.te -@@ -607,6 +607,7 @@ files_relabel_all_files(setfiles_t) - files_read_usr_symlinks(setfiles_t) - files_dontaudit_read_all_symlinks(setfiles_t) - -+fs_getattr_all_fs(setfiles_t) - fs_getattr_all_xattr_fs(setfiles_t) - fs_getattr_cgroup(setfiles_t) - fs_getattr_nfs(setfiles_t) --- -2.19.1 -
recipes-security/refpolicy/refpolicy-git/0030-policy-module-admin-fix-dmesg-to-use-dev-kmsg-as-def.patch deleted +0 -25
@@ -1,25 +0,0 @@ -From 43eba9b9205c5e63f634d60ab8eb5302f7bf4408 Mon Sep 17 00:00:00 2001 -From: Xin Ouyang <[email protected]> -Date: Fri, 23 Aug 2013 16:36:09 +0800 -Subject: [PATCH 30/34] policy/module/admin: fix dmesg to use /dev/kmsg as - default input - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/admin/dmesg.if | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/policy/modules/admin/dmesg.if b/policy/modules/admin/dmesg.if -index e1973c78..739a4bc5 100644 ---- a/policy/modules/admin/dmesg.if -+++ b/policy/modules/admin/dmesg.if -@@ -37,4 +37,5 @@ interface(`dmesg_exec',` - - corecmd_search_bin($1) - can_exec($1, dmesg_exec_t) -+ dev_read_kmsg($1) - ') --- -2.19.1 -
recipes-security/refpolicy/refpolicy-git/0031-policy-module-ftp-add-ftpd_t-to-mls_file_write_all_l.patch deleted +0 -41
41 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-git/0032-policy-module-init-update-for-systemd-related-allow-.patch deleted +0 -32
@@ -1,32 +0,0 @@ -From ddb7393018483be0ce1cfc4734043b413e3b8a04 Mon Sep 17 00:00:00 2001 -From: Shrikant Bobade <[email protected]> -Date: Fri, 12 Jun 2015 19:37:52 +0530 -Subject: [PATCH 32/34] policy/module/init: update for systemd related allow - rules - -It provide, the systemd support related allow rules - -Upstream-Status: Pending - -Signed-off-by: Shrikant Bobade <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/init.te | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te -index f7635d6f..2e6b57a6 100644 ---- a/policy/modules/system/init.te -+++ b/policy/modules/system/init.te -@@ -1418,3 +1418,8 @@ optional_policy(` - userdom_dontaudit_rw_all_users_stream_sockets(systemprocess) - userdom_dontaudit_write_user_tmp_files(systemprocess) - ') -+ -+# systemd related allow rules -+allow kernel_t init_t:process dyntransition; -+allow devpts_t device_t:filesystem associate; -+allow init_t self:capability2 block_suspend; --- -2.19.1 -
recipes-security/refpolicy/refpolicy-git/0034-policy-module-apache-add-rules-for-the-symlink-of-va.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From 2e2abdbc7a0e57a27518de0d879ecc84053203d8 Mon Sep 17 00:00:00 2001 -From: Xin Ouyang <[email protected]> -Date: Thu, 22 Aug 2013 19:36:44 +0800 -Subject: [PATCH 34/34] policy/module/apache: add rules for the symlink of - /var/log - apache2 - -We have added rules for the symlink of /var/log in logging.if, -while apache.te uses /var/log but does not use the interfaces in -logging.if. So still need add a individual rule for apache.te. - -Upstream-Status: Inappropriate [only for Poky] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/services/apache.te | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/policy/modules/services/apache.te b/policy/modules/services/apache.te -index 15c4ea53..596370b1 100644 ---- a/policy/modules/services/apache.te -+++ b/policy/modules/services/apache.te -@@ -412,6 +412,7 @@ create_files_pattern(httpd_t, httpd_log_t, httpd_log_t) - read_files_pattern(httpd_t, httpd_log_t, httpd_log_t) - setattr_files_pattern(httpd_t, httpd_log_t, httpd_log_t) - read_lnk_files_pattern(httpd_t, httpd_log_t, httpd_log_t) -+read_lnk_files_pattern(httpd_t, var_log_t, var_log_t) - logging_log_filetrans(httpd_t, httpd_log_t, file) - - allow httpd_t httpd_modules_t:dir list_dir_perms; --- -2.19.1 -
recipes-security/refpolicy/refpolicy-minimum_git.bb +5 -1
@@ -11,6 +11,10 @@ Pretty much everything runs as initrc_t or unconfined_t so all of the \ domains are unconfined. \ " +SRC_URI += " \ + file://0001-refpolicy-minimum-make-sysadmin-module-optional.patch \ + " + POLICY_NAME = "minimum" CORE_POLICY_MODULES = "unconfined \
@@ -30,7 +34,7 @@ CORE_POLICY_MODULES = "unconfined \ locallogin \ " #systemd dependent policy modules -CORE_POLICY_MODULES += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'clock systemd udev fstools', '', d)}" +CORE_POLICY_MODULES += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'clock systemd udev fstools dbus', '', d)}" # nscd caches libc-issued requests to the name service. # Without nscd.pp, commands want to use these caches will be blocked.
recipes-security/refpolicy/refpolicy-targeted_git.bb +2 -18
@@ -14,22 +14,6 @@ POLICY_MLS_SENS = "0" include refpolicy_${PV}.inc -SYSTEMD_REFPOLICY_PATCHES = " \ - file://0001-refpolicy-minimum-audit-logging-getty-audit-related-.patch \ - file://0002-refpolicy-minimum-locallogin-add-allow-rules-for-typ.patch \ - file://0003-refpolicy-minimum-systemd-unconfined-lib-add-systemd.patch \ - file://0004-refpolicy-minimum-systemd-mount-logging-authlogin-ad.patch \ - file://0005-refpolicy-minimum-init-fix-reboot-with-systemd-as-in.patch \ - file://0006-refpolicy-minimum-systemd-mount-enable-required-refp.patch \ - file://0007-refpolicy-minimum-systemd-fix-for-login-journal-serv.patch \ - file://0008-refpolicy-minimum-systemd-fix-for-systemd-tmp-files-.patch \ - file://0009-refpolicy-minimum-systemd-fix-for-syslog.patch \ - " - -SYSVINIT_REFPOLICY_PATCHES = " \ - file://0001-fix-update-alternatives-for-sysvinit.patch \ - " - SRC_URI += " \ - ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${SYSTEMD_REFPOLICY_PATCHES}', '${SYSVINIT_REFPOLICY_PATCHES}', d)} \ - " + file://0001-refpolicy-targeted-make-unconfined_u-the-default-sel.patch \ + "
recipes-security/refpolicy/refpolicy/0001-fc-subs-volatile-alias-common-var-volatile-paths.patch renamed from recipes-security/refpolicy/refpolicy-git/0001-fc-subs-volatile-alias-common-var-volatile-paths.patch +9 -12
@@ -1,23 +1,24 @@ -From ab97bea9248f62e735526292fc1253ebb1ecfa6c Mon Sep 17 00:00:00 2001 +From 7dc492abc2918e770b36099cf079ca9be10598c8 Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Thu, 28 Mar 2019 16:14:09 -0400 -Subject: [PATCH 01/34] fc/subs/volatile: alias common /var/volatile paths +Subject: [PATCH] fc/subs/volatile: alias common /var/volatile paths Ensure /var/volatile paths get the appropriate base file context. -Upstream-Status: Pending +Upstream-Status: Inappropriate [embedded specific] Signed-off-by: Xin Ouyang <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> --- - config/file_contexts.subs_dist | 10 ++++++++++ - 1 file changed, 10 insertions(+) + config/file_contexts.subs_dist | 6 ++++++ + 1 file changed, 6 insertions(+) diff --git a/config/file_contexts.subs_dist b/config/file_contexts.subs_dist -index 346d920e..be532d7f 100644 +index 346d920e3..aeb25a5bb 100644 --- a/config/file_contexts.subs_dist +++ b/config/file_contexts.subs_dist -@@ -31,3 +31,13 @@ +@@ -31,3 +31,9 @@ # not for refpolicy intern, but for /var/run using applications, # like systemd tmpfiles or systemd socket configurations /var/run /run
@@ -26,11 +27,7 @@ index 346d920e..be532d7f 100644 +# ensure the policy applied to the base filesystem objects are reflected in the +# volatile hierarchy. +/var/volatile/log /var/log -+/var/volatile/run /var/run -+/var/volatile/cache /var/cache +/var/volatile/tmp /var/tmp -+/var/volatile/lock /var/lock -+/var/volatile/run/lock /var/lock -- -2.19.1 +2.17.1
recipes-security/refpolicy/refpolicy/0001-refpolicy-minimum-make-sysadmin-module-optional.patch renamed from recipes-security/refpolicy/refpolicy-git/0033-refpolicy-minimum-make-sysadmin-module-optional.patch +20 -20
@@ -1,44 +1,44 @@ -From a45624beb571ad5dadfca95d53ff69925c9f628c Mon Sep 17 00:00:00 2001 +From efe4d5472fde3d4f043f4e8660c6cc73c7fc1542 Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Fri, 5 Apr 2019 11:53:28 -0400 -Subject: [PATCH 33/34] refpolicy/minimum: make sysadmin module optional +Subject: [PATCH] refpolicy-minimum: make sysadmin module optional -init and locallogin modules have a depend for sysadm module because -they have called sysadm interfaces(sysadm_shell_domtrans). Since -sysadm is not a core module, we could make the sysadm_shell_domtrans -calls optionally by optional_policy. +The init and locallogin modules have a depend for sysadm module +because they have called sysadm interfaces(sysadm_shell_domtrans). +Since sysadm is not a core module, we could make the +sysadm_shell_domtrans calls optionally by optional_policy. So, we could make the minimum policy without sysadm module. -Upstream-Status: pending +Upstream-Status: Inappropriate [embedded specific] Signed-off-by: Xin Ouyang <[email protected]> Signed-off-by: Wenzong Fan <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> --- - policy/modules/system/init.te | 16 +++++++++------- + policy/modules/system/init.te | 14 ++++++++------ policy/modules/system/locallogin.te | 4 +++- - 2 files changed, 12 insertions(+), 8 deletions(-) + 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te -index 2e6b57a6..d8696580 100644 +index feed5af5f..6b6b723b8 100644 --- a/policy/modules/system/init.te +++ b/policy/modules/system/init.te -@@ -448,13 +448,15 @@ ifdef(`init_systemd',` - modutils_domtrans(init_t) +@@ -515,13 +515,15 @@ ifdef(`init_systemd',` + unconfined_write_keys(init_t) ') ',` - tunable_policy(`init_upstart',` - corecmd_shell_domtrans(init_t, initrc_t) -- ',` ++ optional_policy(` ++ tunable_policy(`init_upstart',` ++ corecmd_shell_domtrans(init_t, initrc_t) + ',` - # Run the shell in the sysadm role for single-user mode. - # causes problems with upstart - ifndef(`distro_debian',` - sysadm_shell_domtrans(init_t) -+ optional_policy(` -+ tunable_policy(`init_upstart',` -+ corecmd_shell_domtrans(init_t, initrc_t) -+ ',` + # Run the shell in the sysadm role for single-user mode. + # causes problems with upstart + ifndef(`distro_debian',`
@@ -48,10 +48,10 @@ index 2e6b57a6..d8696580 100644 ') ') diff --git a/policy/modules/system/locallogin.te b/policy/modules/system/locallogin.te -index a56f3d1f..4c679ff3 100644 +index f629b0040..971ca40e5 100644 --- a/policy/modules/system/locallogin.te +++ b/policy/modules/system/locallogin.te -@@ -266,7 +266,9 @@ userdom_use_unpriv_users_fds(sulogin_t) +@@ -267,7 +267,9 @@ userdom_use_unpriv_users_fds(sulogin_t) userdom_search_user_home_dirs(sulogin_t) userdom_use_user_ptys(sulogin_t)
@@ -63,5 +63,5 @@ index a56f3d1f..4c679ff3 100644 # by default, sulogin does not use pam... # sulogin_pam might need to be defined otherwise -- -2.19.1 +2.17.1
recipes-security/refpolicy/refpolicy/0001-refpolicy-targeted-make-unconfined_u-the-default-sel.patch new file +193 -0
193 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0002-fc-subs-busybox-set-aliases-for-bin-sbin-and-usr.patch renamed from recipes-security/refpolicy/refpolicy-git/0002-fc-subs-busybox-set-aliases-for-bin-sbin-and-usr.patch +14 -12
@@ -1,31 +1,33 @@ -From a47fb4d6a25574d900213ef63b5c7e3ce7182419 Mon Sep 17 00:00:00 2001 +From 2a68b7539104bec76aaf2a18b399770f59d0cb28 Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Thu, 28 Mar 2019 20:48:10 -0400 -Subject: [PATCH 02/34] fc/subs/busybox: set aliases for bin, sbin and usr +Subject: [PATCH] fc/subs/busybox: set aliases for bin, sbin and usr The objects in /usr/lib/busybox/* should have the same policy applied as the corresponding objects in the / hierarchy. +Upstream-Status: Inappropriate [embedded specific] + Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> --- - config/file_contexts.subs_dist | 7 +++++++ - 1 file changed, 7 insertions(+) + config/file_contexts.subs_dist | 6 ++++++ + 1 file changed, 6 insertions(+) diff --git a/config/file_contexts.subs_dist b/config/file_contexts.subs_dist -index be532d7f..04fca3c3 100644 +index aeb25a5bb..c249c5207 100644 --- a/config/file_contexts.subs_dist +++ b/config/file_contexts.subs_dist -@@ -41,3 +41,10 @@ +@@ -37,3 +37,9 @@ + # volatile hierarchy. + /var/volatile/log /var/log /var/volatile/tmp /var/tmp - /var/volatile/lock /var/lock - /var/volatile/run/lock /var/lock + +# busybox aliases +# quickly match up the busybox built-in tree to the base filesystem tree -+/usr/lib/busybox/bin /bin -+/usr/lib/busybox/sbin /sbin ++/usr/lib/busybox/bin /usr/bin ++/usr/lib/busybox/sbin /usr/sbin +/usr/lib/busybox/usr /usr -+ -- -2.19.1 +2.17.1
recipes-security/refpolicy/refpolicy/0003-fc-hostname-apply-policy-to-common-yocto-hostname-al.patch renamed from recipes-security/refpolicy/refpolicy-git/0004-fc-hostname-apply-policy-to-common-yocto-hostname-al.patch +10 -11
@@ -1,27 +1,26 @@ -From abd7d9fa3398be45e733930ebaec9e05b1aba252 Mon Sep 17 00:00:00 2001 +From 9f73ec53a4a5d5bb9b7fa453f3089c55f777c2ce Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Thu, 22 Aug 2013 13:37:23 +0800 -Subject: [PATCH 04/34] fc/hostname: apply policy to common yocto hostname +Subject: [PATCH] fc/hostname: apply policy to common yocto hostname alternatives -Upstream-Status: Inappropriate [only for Yocto] +Upstream-Status: Inappropriate [embedded specific] Signed-off-by: Xin Ouyang <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> --- - policy/modules/system/hostname.fc | 4 ++++ - 1 file changed, 4 insertions(+) + policy/modules/system/hostname.fc | 2 ++ + 1 file changed, 2 insertions(+) diff --git a/policy/modules/system/hostname.fc b/policy/modules/system/hostname.fc -index 83ddeb57..653e038d 100644 +index 83ddeb573..cf523bc4c 100644 --- a/policy/modules/system/hostname.fc +++ b/policy/modules/system/hostname.fc -@@ -1 +1,5 @@ +@@ -1 +1,3 @@ + /usr/bin/hostname -- gen_context(system_u:object_r:hostname_exec_t,s0) +/usr/bin/hostname\.net-tools -- gen_context(system_u:object_r:hostname_exec_t,s0) +/usr/bin/hostname\.coreutils -- gen_context(system_u:object_r:hostname_exec_t,s0) -+/usr/lib/busybox/bin/hostname -- gen_context(system_u:object_r:hostname_exec_t,s0) -+ - /usr/bin/hostname -- gen_context(system_u:object_r:hostname_exec_t,s0) -- -2.19.1 +2.17.1
recipes-security/refpolicy/refpolicy/0004-fc-bash-apply-usr-bin-bash-context-to-bin-bash.bash.patch renamed from recipes-security/refpolicy/refpolicy-git/0005-fc-bash-apply-usr-bin-bash-context-to-bin-bash.bash.patch +9 -8
@@ -1,30 +1,31 @@ -From 783ba03eff9d5b94363fff148aa1c745ff02ddd4 Mon Sep 17 00:00:00 2001 +From fda1e656c46b360f1023834636c460c5510acf68 Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Thu, 28 Mar 2019 21:37:32 -0400 -Subject: [PATCH 05/34] fc/bash: apply /usr/bin/bash context to /bin/bash.bash +Subject: [PATCH] fc/bash: apply /usr/bin/bash context to /bin/bash.bash We include /bin/bash.bash as a valid alias for /bin/bash, so ensure we apply the proper context to the target for our policy. -Upstream-Status: Inappropriate [only for Yocto] +Upstream-Status: Inappropriate [embedded specific] Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> --- policy/modules/kernel/corecommands.fc | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc -index e7415cac..cf3848db 100644 +index b473850d4..7e199b7b0 100644 --- a/policy/modules/kernel/corecommands.fc +++ b/policy/modules/kernel/corecommands.fc -@@ -141,6 +141,7 @@ ifdef(`distro_gentoo',` +@@ -142,6 +142,7 @@ ifdef(`distro_gentoo',` + /usr/bin(/.*)? gen_context(system_u:object_r:bin_t,s0) /usr/bin/d?ash -- gen_context(system_u:object_r:shell_exec_t,s0) /usr/bin/bash -- gen_context(system_u:object_r:shell_exec_t,s0) ++/usr/bin/bash\.bash -- gen_context(system_u:object_r:shell_exec_t,s0) /usr/bin/bash2 -- gen_context(system_u:object_r:shell_exec_t,s0) -+/usr/bin/bash.bash -- 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) -- -2.19.1 +2.17.1
recipes-security/refpolicy/refpolicy/0005-fc-resolv.conf-label-resolv.conf-in-var-run-properly.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 90a9ef3adb997517f921a3524da99c966e3b00df Mon Sep 17 00:00:00 2001 +From: Joe MacDonald <[email protected]> +Date: Thu, 4 Apr 2019 10:45:03 -0400 +Subject: [PATCH] fc/resolv.conf: label resolv.conf in var/run/ properly + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Xin Ouyang <[email protected]> +Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/system/sysnetwork.fc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/policy/modules/system/sysnetwork.fc b/policy/modules/system/sysnetwork.fc +index fddf9f693..acf539656 100644 +--- a/policy/modules/system/sysnetwork.fc ++++ b/policy/modules/system/sysnetwork.fc +@@ -83,6 +83,7 @@ ifdef(`distro_redhat',` + /run/dhcpcd(/.*)? gen_context(system_u:object_r:dhcpc_runtime_t,s0) + /run/netns -d gen_context(system_u:object_r:ifconfig_runtime_t,s0) + /run/netns/[^/]+ -- <<none>> ++/run/resolv\.conf.* -- gen_context(system_u:object_r:net_conf_t,s0) + + ifdef(`distro_gentoo',` + /var/lib/dhcpc(/.*)? gen_context(system_u:object_r:dhcpc_state_t,s0) +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0006-fc-login-apply-login-context-to-login.shadow.patch renamed from recipes-security/refpolicy/refpolicy-git/0007-fc-login-apply-login-context-to-login.shadow.patch +7 -6
@@ -1,27 +1,28 @@ -From 3323cd185bd27a010fb4353d16cb6c3a8608fd20 Mon Sep 17 00:00:00 2001 +From 3383027dfb8c672468a99805535eeadffbe7d332 Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Thu, 28 Mar 2019 21:43:53 -0400 -Subject: [PATCH 07/34] fc/login: apply login context to login.shadow +Subject: [PATCH] fc/login: apply login context to login.shadow -Upstream-Status: Inappropriate [only for Poky] +Upstream-Status: Inappropriate [embedded specific] Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> --- policy/modules/system/authlogin.fc | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/system/authlogin.fc b/policy/modules/system/authlogin.fc -index e22945cd..a42bc0da 100644 +index 7fd315706..fa86d6f92 100644 --- a/policy/modules/system/authlogin.fc +++ b/policy/modules/system/authlogin.fc @@ -5,6 +5,7 @@ /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/login\.shadow -- gen_context(system_u:object_r:login_exec_t,s0) ++/usr/bin/login\.shadow -- 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) -- -2.19.1 +2.17.1
recipes-security/refpolicy/refpolicy/0007-fc-bind-fix-real-path-for-bind.patch renamed from recipes-security/refpolicy/refpolicy-git/0008-fc-bind-fix-real-path-for-bind.patch +7 -6
@@ -1,18 +1,19 @@ -From 9207386c0a860b3b6520eca5e509b9633c67c1e4 Mon Sep 17 00:00:00 2001 +From fcf91092015155c4a10a1d7c4dd352ead0b5698b Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Thu, 28 Mar 2019 21:58:53 -0400 -Subject: [PATCH 08/34] fc/bind: fix real path for bind +Subject: [PATCH] fc/bind: fix real path for bind -Upstream-Status: Pending +Upstream-Status: Inappropriate [embedded specific] Signed-off-by: Xin Ouyang <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> --- policy/modules/services/bind.fc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/services/bind.fc b/policy/modules/services/bind.fc -index b4879dc1..59498e25 100644 +index 7c1df4895..9f87a21a6 100644 --- a/policy/modules/services/bind.fc +++ b/policy/modules/services/bind.fc @@ -1,8 +1,10 @@
@@ -22,10 +23,10 @@ index b4879dc1..59498e25 100644 /etc/bind(/.*)? gen_context(system_u:object_r:named_zone_t,s0) /etc/bind/named\.conf.* -- gen_context(system_u:object_r:named_conf_t,s0) -+/etc/bind/rndc\.conf -- gen_context(system_u:object_r:named_conf_t,s0) ++/etc/bind/rndc\.conf.* -- gen_context(system_u:object_r:named_conf_t,s0) /etc/bind/rndc\.key -- gen_context(system_u:object_r:dnssec_t,s0) /etc/dnssec-trigger/dnssec_trigger_server\.key -- gen_context(system_u:object_r:dnssec_t,s0) /etc/named\.rfc1912\.zones -- gen_context(system_u:object_r:named_conf_t,s0) -- -2.19.1 +2.17.1
recipes-security/refpolicy/refpolicy/0008-fc-hwclock-add-hwclock-alternatives.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 2e5be9a910fc07a63efafc87a3c10bd81bd9c052 Mon Sep 17 00:00:00 2001 +From: Joe MacDonald <[email protected]> +Date: Thu, 28 Mar 2019 21:59:18 -0400 +Subject: [PATCH] fc/hwclock: add hwclock alternatives + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/system/clock.fc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/policy/modules/system/clock.fc b/policy/modules/system/clock.fc +index 301965892..139485835 100644 +--- a/policy/modules/system/clock.fc ++++ b/policy/modules/system/clock.fc +@@ -3,3 +3,4 @@ + /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) ++/usr/sbin/hwclock\.util-linux -- gen_context(system_u:object_r:hwclock_exec_t,s0) +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0009-fc-dmesg-apply-policy-to-dmesg-alternatives.patch new file +23 -0
@@ -0,0 +1,23 @@ +From 924ecc31c140dcd862d067849d4e11e111284165 Mon Sep 17 00:00:00 2001 +From: Joe MacDonald <[email protected]> +Date: Fri, 29 Mar 2019 08:26:55 -0400 +Subject: [PATCH] fc/dmesg: apply policy to dmesg alternatives + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/admin/dmesg.fc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/policy/modules/admin/dmesg.fc b/policy/modules/admin/dmesg.fc +index e52fdfcf8..526b92ed2 100644 +--- a/policy/modules/admin/dmesg.fc ++++ b/policy/modules/admin/dmesg.fc +@@ -1 +1,2 @@ + /usr/bin/dmesg -- gen_context(system_u:object_r:dmesg_exec_t,s0) ++/usr/bin/dmesg\.util-linux -- gen_context(system_u:object_r:dmesg_exec_t,s0) +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0010-fc-ssh-apply-policy-to-ssh-alternatives.patch renamed from recipes-security/refpolicy/refpolicy-git/0011-fc-ssh-apply-policy-to-ssh-alternatives.patch +7 -6
@@ -1,27 +1,28 @@ -From c7002e990710f83763a1481ddaa56a1f658defee Mon Sep 17 00:00:00 2001 +From 261892950c5b2a40b7c3bb050ede148cbd1c7a84 Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Fri, 29 Mar 2019 09:20:58 -0400 -Subject: [PATCH 11/34] fc/ssh: apply policy to ssh alternatives +Subject: [PATCH] fc/ssh: apply policy to ssh alternatives -Upstream-Status: Pending +Upstream-Status: Inappropriate [embedded specific] Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> --- policy/modules/services/ssh.fc | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/services/ssh.fc b/policy/modules/services/ssh.fc -index 4ac3e733..1f453091 100644 +index 60060c35c..518043a9b 100644 --- a/policy/modules/services/ssh.fc +++ b/policy/modules/services/ssh.fc @@ -4,6 +4,7 @@ HOME_DIR/\.ssh(/.*)? gen_context(system_u:object_r:ssh_home_t,s0) /etc/ssh/ssh_host.*_key -- gen_context(system_u:object_r:sshd_key_t,s0) /usr/bin/ssh -- gen_context(system_u:object_r:ssh_exec_t,s0) -+/usr/bin/ssh\.openssh -- gen_context(system_u:object_r:ssh_exec_t,s0) ++/usr/bin/ssh\.openssh -- 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) -- -2.19.1 +2.17.1
recipes-security/refpolicy/refpolicy/0011-fc-sysnetwork-apply-policy-to-ip-alternatives.patch renamed from recipes-security/refpolicy/refpolicy-git/0012-fc-sysnetwork-apply-policy-to-ip-alternatives.patch +13 -22
@@ -1,48 +1,39 @@ -From 881a9f637b6eec90d1fa20bf4c102bb595225aaf Mon Sep 17 00:00:00 2001 +From bb8832629e85af2a16800f5cfec97ca0bf8319e6 Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Tue, 9 Jun 2015 21:22:52 +0530 -Subject: [PATCH 12/34] fc/sysnetwork: apply policy to ip alternatives +Subject: [PATCH] fc/sysnetwork: apply policy to ip alternatives -Upstream-Status: Pending +Upstream-Status: Inappropriate [embedded specific] Signed-off-by: Xin Ouyang <[email protected]> Signed-off-by: Shrikant Bobade <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> --- - policy/modules/system/sysnetwork.fc | 10 ++++++++++ - 1 file changed, 10 insertions(+) + policy/modules/system/sysnetwork.fc | 3 +++ + 1 file changed, 3 insertions(+) diff --git a/policy/modules/system/sysnetwork.fc b/policy/modules/system/sysnetwork.fc -index ac7c2dd1..4e441503 100644 +index acf539656..d8902d725 100644 --- a/policy/modules/system/sysnetwork.fc +++ b/policy/modules/system/sysnetwork.fc -@@ -60,6 +60,8 @@ ifdef(`distro_redhat',` +@@ -59,13 +59,16 @@ ifdef(`distro_redhat',` /usr/sbin/dhcpcd -- gen_context(system_u:object_r:dhcpc_exec_t,s0) /usr/sbin/ethtool -- gen_context(system_u:object_r:ifconfig_exec_t,s0) /usr/sbin/ifconfig -- gen_context(system_u:object_r:ifconfig_exec_t,s0) -+/usr/sbin/ifconfig\.net-tools -- gen_context(system_u:object_r:ifconfig_exec_t,s0) -+/usr/sbin/ip\.iproute2 -- gen_context(system_u:object_r:ifconfig_exec_t,s0) ++/usr/sbin/ifconfig\.net-tools -- gen_context(system_u:object_r:ifconfig_exec_t,s0) /usr/sbin/ip -- gen_context(system_u:object_r:ifconfig_exec_t,s0) ++/usr/sbin/ip\.iproute2 -- gen_context(system_u:object_r:ifconfig_exec_t,s0) /usr/sbin/ipx_configure -- gen_context(system_u:object_r:ifconfig_exec_t,s0) /usr/sbin/ipx_interface -- gen_context(system_u:object_r:ifconfig_exec_t,s0) -@@ -67,9 +69,17 @@ ifdef(`distro_redhat',` + /usr/sbin/ipx_internal_net -- gen_context(system_u:object_r:ifconfig_exec_t,s0) /usr/sbin/iw -- gen_context(system_u:object_r:ifconfig_exec_t,s0) /usr/sbin/iwconfig -- gen_context(system_u:object_r:ifconfig_exec_t,s0) /usr/sbin/mii-tool -- gen_context(system_u:object_r:ifconfig_exec_t,s0) -+/usr/sbin/mii-tool\.net-tools -- gen_context(system_u:object_r:ifconfig_exec_t,s0) ++/usr/sbin/mii-tool\.net-tools -- gen_context(system_u:object_r:ifconfig_exec_t,s0) /usr/sbin/pump -- gen_context(system_u:object_r:dhcpc_exec_t,s0) /usr/sbin/tc -- gen_context(system_u:object_r:ifconfig_exec_t,s0) -+# -+# /usr/lib/busybox -+# -+/usr/lib/busybox/bin/ifconfig -- gen_context(system_u:object_r:ifconfig_exec_t,s0) -+/usr/lib/busybox/bin/ip -- gen_context(system_u:object_r:ifconfig_exec_t,s0) -+/usr/lib/busybox/sbin/mii-tool -- gen_context(system_u:object_r:ifconfig_exec_t,s0) -+ - # - # /var - # -- -2.19.1 +2.17.1
recipes-security/refpolicy/refpolicy/0012-fc-udev-apply-policy-to-udevadm-in-libexec.patch renamed from recipes-security/refpolicy/refpolicy-git/0013-fc-udev-apply-policy-to-udevadm-in-libexec.patch +7 -6
@@ -1,28 +1,29 @@ -From 434fe791713127cea8a796529266b87763833117 Mon Sep 17 00:00:00 2001 +From 02a3c7a06f760d3cae909d2c271d1e4fde07c09b Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Fri, 29 Mar 2019 09:36:08 -0400 -Subject: [PATCH 13/34] fc/udev: apply policy to udevadm in libexec +Subject: [PATCH] fc/udev: apply policy to udevadm in libexec -Upstream-Status: Pending +Upstream-Status: Inappropriate [embedded specific] Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> --- policy/modules/system/udev.fc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/system/udev.fc b/policy/modules/system/udev.fc -index 606ad517..2919c0bd 100644 +index 0ae7571cd..ceb5b70b3 100644 --- a/policy/modules/system/udev.fc +++ b/policy/modules/system/udev.fc @@ -28,6 +28,8 @@ ifdef(`distro_debian',` /usr/sbin/udevstart -- gen_context(system_u:object_r:udev_exec_t,s0) /usr/sbin/wait_for_sysfs -- gen_context(system_u:object_r:udev_exec_t,s0) -+/usr/libexec/udevadm -- gen_context(system_u:object_r:udev_exec_t,s0) ++/usr/libexec/udevadm -- gen_context(system_u:object_r:udevadm_exec_t,s0) + ifdef(`distro_redhat',` /usr/sbin/start_udev -- gen_context(system_u:object_r:udev_exec_t,s0) ') -- -2.19.1 +2.17.1
recipes-security/refpolicy/refpolicy/0013-fc-rpm-apply-rpm_exec-policy-to-cpio-binaries.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 117884178c9ba63334f732da6f30e67e22aa898e Mon Sep 17 00:00:00 2001 +From: Joe MacDonald <[email protected]> +Date: Fri, 29 Mar 2019 09:54:07 -0400 +Subject: [PATCH] fc/rpm: apply rpm_exec policy to cpio binaries + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/admin/rpm.fc | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/policy/modules/admin/rpm.fc b/policy/modules/admin/rpm.fc +index 6194a4833..ace922ac1 100644 +--- a/policy/modules/admin/rpm.fc ++++ b/policy/modules/admin/rpm.fc +@@ -66,4 +66,6 @@ ifdef(`distro_redhat',` + + ifdef(`enable_mls',` + /usr/sbin/cpio -- gen_context(system_u:object_r:rpm_exec_t,s0) ++/usr/bin/cpio -- gen_context(system_u:object_r:rpm_exec_t,s0) ++/usr/bin/cpio\.cpio -- gen_context(system_u:object_r:rpm_exec_t,s0) + ') +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0014-fc-su-apply-policy-to-su-alternatives.patch renamed from recipes-security/refpolicy/refpolicy-git/0015-fc-su-apply-policy-to-su-alternatives.patch +8 -7
@@ -1,26 +1,27 @@ -From d6eb7326773a01cea4cb6949e8e8f94e12d145ca Mon Sep 17 00:00:00 2001 +From 522d08c0dac1cfe9e33f06bc1252b7b672d9ffd3 Mon Sep 17 00:00:00 2001 From: Wenzong Fan <[email protected]> Date: Thu, 13 Feb 2014 00:33:07 -0500 -Subject: [PATCH 15/34] fc/su: apply policy to su alternatives +Subject: [PATCH] fc/su: apply policy to su alternatives -Upstream-Status: Pending +Upstream-Status: Inappropriate [embedded specific] Signed-off-by: Wenzong Fan <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> --- policy/modules/admin/su.fc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/admin/su.fc b/policy/modules/admin/su.fc -index 3375c969..435a6892 100644 +index 3375c9692..a9868cd58 100644 --- a/policy/modules/admin/su.fc +++ b/policy/modules/admin/su.fc @@ -1,3 +1,5 @@ /usr/(local/)?bin/ksu -- gen_context(system_u:object_r:su_exec_t,s0) /usr/bin/kdesu -- gen_context(system_u:object_r:su_exec_t,s0) /usr/bin/su -- gen_context(system_u:object_r:su_exec_t,s0) -+/usr/bin/su\.shadow -- gen_context(system_u:object_r:su_exec_t,s0) -+/usr/bin/su\.util-linux -- gen_context(system_u:object_r:su_exec_t,s0) ++/usr/bin/su\.shadow -- gen_context(system_u:object_r:su_exec_t,s0) ++/usr/bin/su\.util-linux -- gen_context(system_u:object_r:su_exec_t,s0) -- -2.19.1 +2.17.1
recipes-security/refpolicy/refpolicy/0015-fc-fstools-fix-real-path-for-fstools.patch renamed from recipes-security/refpolicy/refpolicy-git/0016-fc-fstools-fix-real-path-for-fstools.patch +29 -29
105 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0016-fc-init-fix-update-alternatives-for-sysvinit.patch renamed from recipes-security/refpolicy/refpolicy-git/0001-fix-update-alternatives-for-sysvinit.patch +21 -19
@@ -1,20 +1,21 @@ -From cf2f08bdb2d64b38b6c83c96f409c1cd9975fe6a Mon Sep 17 00:00:00 2001 +From 95a843719394827621e3b33c13f2696f7e498e5b Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Thu, 22 Aug 2013 13:37:23 +0800 -Subject: [PATCH] fix update-alternatives for sysvinit +Subject: [PATCH] fc/init: fix update-alternatives for sysvinit -Upstream-Status: Inappropriate [only for Poky] +Upstream-Status: Inappropriate [embedded specific] Signed-off-by: Xin Ouyang <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> --- policy/modules/admin/shutdown.fc | 1 + - policy/modules/kernel/corecommands.fc | 1 + + policy/modules/kernel/corecommands.fc | 2 ++ policy/modules/system/init.fc | 1 + - 3 files changed, 3 insertions(+) + 3 files changed, 4 insertions(+) diff --git a/policy/modules/admin/shutdown.fc b/policy/modules/admin/shutdown.fc -index 03a2230c..2ba049ff 100644 +index bf51c103f..91ed72be0 100644 --- a/policy/modules/admin/shutdown.fc +++ b/policy/modules/admin/shutdown.fc @@ -5,5 +5,6 @@
@@ -23,31 +24,32 @@ index 03a2230c..2ba049ff 100644 /usr/sbin/shutdown -- gen_context(system_u:object_r:shutdown_exec_t,s0) +/usr/sbin/shutdown\.sysvinit -- gen_context(system_u:object_r:shutdown_exec_t,s0) - /run/shutdown\.pid -- gen_context(system_u:object_r:shutdown_var_run_t,s0) + /run/shutdown\.pid -- gen_context(system_u:object_r:shutdown_runtime_t,s0) diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc -index cf3848db..86920167 100644 +index 7e199b7b0..157eeb0d0 100644 --- a/policy/modules/kernel/corecommands.fc +++ b/policy/modules/kernel/corecommands.fc -@@ -149,6 +149,7 @@ ifdef(`distro_gentoo',` +@@ -151,6 +151,8 @@ ifdef(`distro_gentoo',` /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/mountpoint\.sysvinit -- gen_context(system_u:object_r:bin_t,s0) ++/usr/bin/mountpoint\.sysvinit -- gen_context(system_u:object_r:bin_t,s0) ++/usr/bin/mountpoint\.util-linux -- 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) diff --git a/policy/modules/system/init.fc b/policy/modules/system/init.fc -index 11a6ce93..93e9d2b4 100644 +index fee6ff3b6..fe72df22a 100644 --- a/policy/modules/system/init.fc +++ b/policy/modules/system/init.fc -@@ -23,6 +23,7 @@ ifdef(`distro_gentoo',` - # /usr - # - /usr/bin/init(ng)? -- gen_context(system_u:object_r:init_exec_t,s0) +@@ -40,6 +40,7 @@ ifdef(`distro_gentoo',` + /usr/libexec/dcc/stop-.* -- gen_context(system_u:object_r:initrc_exec_t,s0) + + /usr/sbin/init(ng)? -- gen_context(system_u:object_r:init_exec_t,s0) +/usr/sbin/init\.sysvinit -- 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/sbin/open_init_pty -- gen_context(system_u:object_r:initrc_exec_t,s0) + /usr/sbin/upstart -- gen_context(system_u:object_r:init_exec_t,s0) + -- -2.19.1 +2.17.1
recipes-security/refpolicy/refpolicy/0017-fc-brctl-apply-policy-to-brctl-alternatives.patch new file +24 -0
@@ -0,0 +1,24 @@ +From 0b05d71fea73c9fc0dc8aac6e7d096b0214db5eb Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Fri, 15 Nov 2019 10:19:54 +0800 +Subject: [PATCH] fc/brctl: apply policy to brctl alternatives + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/admin/brctl.fc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/policy/modules/admin/brctl.fc b/policy/modules/admin/brctl.fc +index ed472f095..2a852b0fd 100644 +--- a/policy/modules/admin/brctl.fc ++++ b/policy/modules/admin/brctl.fc +@@ -1,3 +1,4 @@ + /usr/bin/brctl -- gen_context(system_u:object_r:brctl_exec_t,s0) + + /usr/sbin/brctl -- gen_context(system_u:object_r:brctl_exec_t,s0) ++/usr/sbin/brctl\.bridge-utils -- gen_context(system_u:object_r:brctl_exec_t,s0) +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0018-fc-corecommands-apply-policy-to-nologin-alternatives.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 5f759c3d89b52e62607266c4e684d66953803d4d Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Fri, 15 Nov 2019 10:21:51 +0800 +Subject: [PATCH] fc/corecommands: apply policy to nologin alternatives + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/kernel/corecommands.fc | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc +index 157eeb0d0..515948ea9 100644 +--- a/policy/modules/kernel/corecommands.fc ++++ b/policy/modules/kernel/corecommands.fc +@@ -303,6 +303,8 @@ ifdef(`distro_debian',` + /usr/sbin/insmod_ksymoops_clean -- gen_context(system_u:object_r:bin_t,s0) + /usr/sbin/mkfs\.cramfs -- gen_context(system_u:object_r:bin_t,s0) + /usr/sbin/nologin -- gen_context(system_u:object_r:shell_exec_t,s0) ++/usr/sbin/nologin\.shadow -- gen_context(system_u:object_r:shell_exec_t,s0) ++/usr/sbin/nologin\.util-linux -- gen_context(system_u:object_r:shell_exec_t,s0) + /usr/sbin/scponlyc -- gen_context(system_u:object_r:shell_exec_t,s0) + /usr/sbin/sesh -- gen_context(system_u:object_r:shell_exec_t,s0) + /usr/sbin/smrsh -- gen_context(system_u:object_r:shell_exec_t,s0) +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0019-fc-locallogin-apply-policy-to-sulogin-alternatives.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 84f715b8d128bcbfdc95adf18d6bc8eb225f05cd Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Fri, 15 Nov 2019 10:43:28 +0800 +Subject: [PATCH] fc/locallogin: apply policy to sulogin alternatives + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/system/locallogin.fc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/policy/modules/system/locallogin.fc b/policy/modules/system/locallogin.fc +index fc8d58507..59e6e9601 100644 +--- a/policy/modules/system/locallogin.fc ++++ b/policy/modules/system/locallogin.fc +@@ -2,4 +2,5 @@ + /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/sulogin\.util-linux -- gen_context(system_u:object_r:sulogin_exec_t,s0) + /usr/sbin/sushell -- gen_context(system_u:object_r:sulogin_exec_t,s0) +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0020-fc-ntp-apply-policy-to-ntpd-alternatives.patch new file +27 -0
@@ -0,0 +1,27 @@ +From b30d9ad872f613d2b1c3aad45eac65593de37b9b Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Fri, 15 Nov 2019 10:45:23 +0800 +Subject: [PATCH] fc/ntp: apply policy to ntpd alternatives + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/services/ntp.fc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/policy/modules/services/ntp.fc b/policy/modules/services/ntp.fc +index cd69ea5d5..49ffe6f68 100644 +--- a/policy/modules/services/ntp.fc ++++ b/policy/modules/services/ntp.fc +@@ -25,6 +25,7 @@ + /usr/lib/systemd/systemd-timesyncd -- gen_context(system_u:object_r:ntpd_exec_t,s0) + + /usr/sbin/ntpd -- gen_context(system_u:object_r:ntpd_exec_t,s0) ++/usr/sbin/ntpd\.ntp -- gen_context(system_u:object_r:ntpd_exec_t,s0) + /usr/sbin/ntpdate -- gen_context(system_u:object_r:ntpdate_exec_t,s0) + /usr/sbin/sntp -- gen_context(system_u:object_r:ntpdate_exec_t,s0) + +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0021-fc-kerberos-apply-policy-to-kerberos-alternatives.patch new file +50 -0
50 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0022-fc-ldap-apply-policy-to-ldap-alternatives.patch new file +40 -0
@@ -0,0 +1,40 @@ +From a580b0154da9dd07369b172ed459046197e388c7 Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Fri, 15 Nov 2019 11:06:13 +0800 +Subject: [PATCH] fc/ldap: apply policy to ldap alternatives + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/services/ldap.fc | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/policy/modules/services/ldap.fc b/policy/modules/services/ldap.fc +index 0a1d08d0f..65b202962 100644 +--- a/policy/modules/services/ldap.fc ++++ b/policy/modules/services/ldap.fc +@@ -1,8 +1,10 @@ + /etc/ldap/slapd\.conf -- gen_context(system_u:object_r:slapd_etc_t,s0) + /etc/openldap/certs(/.*)? gen_context(system_u:object_r:slapd_cert_t,s0) + /etc/openldap/slapd\.d(/.*)? gen_context(system_u:object_r:slapd_db_t,s0) ++/etc/openldap/slapd\.conf -- gen_context(system_u:object_r:slapd_etc_t,s0) + + /etc/rc\.d/init\.d/ldap -- gen_context(system_u:object_r:slapd_initrc_exec_t,s0) ++/etc/rc\.d/init\.d/openldap -- gen_context(system_u:object_r:slapd_initrc_exec_t,s0) + + /usr/bin/slapd -- gen_context(system_u:object_r:slapd_exec_t,s0) + +@@ -25,6 +27,9 @@ + /var/log/ldap.* gen_context(system_u:object_r:slapd_log_t,s0) + /var/log/slapd.* gen_context(system_u:object_r:slapd_log_t,s0) + ++/var/openldap(/.*)? gen_context(system_u:object_r:slapd_db_t,s0) ++/var/openldap/replog(/.*)? gen_context(system_u:object_r:slapd_replog_t,s0) ++ + /run/ldapi -s gen_context(system_u:object_r:slapd_runtime_t,s0) + /run/openldap(/.*)? gen_context(system_u:object_r:slapd_runtime_t,s0) + /run/slapd.* -s gen_context(system_u:object_r:slapd_runtime_t,s0) +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0023-fc-postgresql-apply-policy-to-postgresql-alternative.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 926401518bca5a1e63b7f2c2cbae4a3bc42bf342 Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Fri, 15 Nov 2019 11:13:16 +0800 +Subject: [PATCH] fc/postgresql: apply policy to postgresql alternatives + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/services/postgresql.fc | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +diff --git a/policy/modules/services/postgresql.fc b/policy/modules/services/postgresql.fc +index f31a52cf8..f9bf46870 100644 +--- a/policy/modules/services/postgresql.fc ++++ b/policy/modules/services/postgresql.fc +@@ -27,6 +27,17 @@ + /usr/lib/postgresql(-.*)?/(.*/)?bin/postgres -- gen_context(system_u:object_r:postgresql_exec_t,s0) + /usr/lib/postgresql(-.*)?/(.*/)?bin/postmaster -l gen_context(system_u:object_r:postgresql_exec_t,s0) + ++/usr/bin/pg_archivecleanup -- gen_context(system_u:object_r:postgresql_exec_t,s0) ++/usr/bin/pg_basebackup -- gen_context(system_u:object_r:postgresql_exec_t,s0) ++/usr/bin/pg_controldata -- gen_context(system_u:object_r:postgresql_exec_t,s0) ++/usr/bin/pg_ctl -- gen_context(system_u:object_r:postgresql_exec_t,s0) ++/usr/bin/pg_resetxlog -- gen_context(system_u:object_r:postgresql_exec_t,s0) ++/usr/bin/pg_standby -- gen_context(system_u:object_r:postgresql_exec_t,s0) ++/usr/bin/pg_upgrade -- gen_context(system_u:object_r:postgresql_exec_t,s0) ++/usr/bin/pg_xlogdump -- gen_context(system_u:object_r:postgresql_exec_t,s0) ++/usr/bin/postgres -- gen_context(system_u:object_r:postgresql_exec_t,s0) ++/usr/bin/postmaster -l gen_context(system_u:object_r:postgresql_exec_t,s0) ++ + ifdef(`distro_redhat', ` + /usr/share/jonas/pgsql(/.*)? gen_context(system_u:object_r:postgresql_db_t,s0) + ') +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0024-fc-screen-apply-policy-to-screen-alternatives.patch new file +25 -0
@@ -0,0 +1,25 @@ +From f3f6f0cb4857954afd8a025a1cd3f14b8a11b64d Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Fri, 15 Nov 2019 11:15:33 +0800 +Subject: [PATCH] fc/screen: apply policy to screen alternatives + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/apps/screen.fc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/policy/modules/apps/screen.fc b/policy/modules/apps/screen.fc +index 7196c598e..cada9944e 100644 +--- a/policy/modules/apps/screen.fc ++++ b/policy/modules/apps/screen.fc +@@ -6,4 +6,5 @@ HOME_DIR/\.tmux\.conf -- gen_context(system_u:object_r:screen_home_t,s0) + /run/tmux(/.*)? gen_context(system_u:object_r:screen_runtime_t,s0) + + /usr/bin/screen -- gen_context(system_u:object_r:screen_exec_t,s0) ++/usr/bin/screen-.* -- gen_context(system_u:object_r:screen_exec_t,s0) + /usr/bin/tmux -- gen_context(system_u:object_r:screen_exec_t,s0) +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0025-fc-usermanage-apply-policy-to-usermanage-alternative.patch new file +45 -0
45 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0026-fc-getty-add-file-context-to-start_getty.patch new file +27 -0
@@ -0,0 +1,27 @@ +From cc8da498e20518cc9e8f59d1a4570e073f19e88b Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Fri, 15 Nov 2019 16:07:30 +0800 +Subject: [PATCH] fc/getty: add file context to start_getty + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/system/getty.fc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/policy/modules/system/getty.fc b/policy/modules/system/getty.fc +index 116ea6421..53ff6137b 100644 +--- a/policy/modules/system/getty.fc ++++ b/policy/modules/system/getty.fc +@@ -4,6 +4,7 @@ + /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/bin/start_getty -- gen_context(system_u:object_r:bin_t,s0) + + /usr/sbin/.*getty -- gen_context(system_u:object_r:getty_exec_t,s0) + +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0027-fc-init-add-file-context-to-etc-network-if-files.patch new file +33 -0
@@ -0,0 +1,33 @@ +From 1d6f9b62082188992bfb681632dff15d5ad608c9 Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Tue, 19 Nov 2019 14:33:28 +0800 +Subject: [PATCH] fc/init: add file context to /etc/network/if-* files + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/system/init.fc | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/policy/modules/system/init.fc b/policy/modules/system/init.fc +index fe72df22a..a9d8f343a 100644 +--- a/policy/modules/system/init.fc ++++ b/policy/modules/system/init.fc +@@ -70,11 +70,12 @@ ifdef(`distro_redhat',` + ifdef(`distro_debian',` + /run/hotkey-setup -- gen_context(system_u:object_r:initrc_runtime_t,s0) + /run/kdm/.* -- gen_context(system_u:object_r:initrc_runtime_t,s0) ++') ++ + /etc/network/if-pre-up\.d/.* -- gen_context(system_u:object_r:initrc_exec_t,s0) + /etc/network/if-up\.d/.* -- gen_context(system_u:object_r:initrc_exec_t,s0) + /etc/network/if-down\.d/.* -- gen_context(system_u:object_r:initrc_exec_t,s0) + /etc/network/if-post-down\.d/.* -- gen_context(system_u:object_r:initrc_exec_t,s0) +-') + + ifdef(`distro_gentoo', ` + /var/lib/init\.d(/.*)? gen_context(system_u:object_r:initrc_state_t,s0) +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0028-fc-vlock-apply-policy-to-vlock-alternatives.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 8d8858bd8569db106f0feb44a0912daa872954ec Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Wed, 18 Dec 2019 15:04:41 +0800 +Subject: [PATCH] fc/vlock: apply policy to vlock alternatives + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/apps/vlock.fc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/policy/modules/apps/vlock.fc b/policy/modules/apps/vlock.fc +index f668cde9c..c4bc50984 100644 +--- a/policy/modules/apps/vlock.fc ++++ b/policy/modules/apps/vlock.fc +@@ -1,4 +1,5 @@ + /usr/bin/vlock -- gen_context(system_u:object_r:vlock_exec_t,s0) ++/usr/bin/vlock\.kbd -- gen_context(system_u:object_r:vlock_exec_t,s0) + /usr/bin/vlock-main -- gen_context(system_u:object_r:vlock_exec_t,s0) + + /usr/sbin/vlock-main -- gen_context(system_u:object_r:vlock_exec_t,s0) +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0029-fc-cron-apply-policy-to-etc-init.d-crond.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 25701662f7149743556bb2d5edb5c69e6de2744f Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Tue, 30 Jun 2020 10:45:57 +0800 +Subject: [PATCH] fc/cron: apply policy to /etc/init.d/crond + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/services/cron.fc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/policy/modules/services/cron.fc b/policy/modules/services/cron.fc +index 827363d88..e8412396d 100644 +--- a/policy/modules/services/cron.fc ++++ b/policy/modules/services/cron.fc +@@ -1,4 +1,5 @@ + /etc/rc\.d/init\.d/(anacron|atd) -- gen_context(system_u:object_r:crond_initrc_exec_t,s0) ++/etc/rc\.d/init\.d/crond -- gen_context(system_u:object_r:crond_initrc_exec_t,s0) + + /etc/cron\.d(/.*)? gen_context(system_u:object_r:system_cron_spool_t,s0) + /etc/crontab -- gen_context(system_u:object_r:system_cron_spool_t,s0) +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0030-file_contexts.subs_dist-set-aliase-for-root-director.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 9260b04d257cdddf42d0267456d3ba2b38dc22d4 Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Sun, 5 Apr 2020 22:03:45 +0800 +Subject: [PATCH] file_contexts.subs_dist: set aliase for /root directory + +The genhomedircon.py will expand /root directory to /home/root. +Add an aliase for it + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + config/file_contexts.subs_dist | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/config/file_contexts.subs_dist b/config/file_contexts.subs_dist +index c249c5207..67f476868 100644 +--- a/config/file_contexts.subs_dist ++++ b/config/file_contexts.subs_dist +@@ -43,3 +43,7 @@ + /usr/lib/busybox/bin /usr/bin + /usr/lib/busybox/sbin /usr/sbin + /usr/lib/busybox/usr /usr ++ ++# The genhomedircon.py will expand /root home directory to /home/root ++# Add an aliase for it ++/root /home/root +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0031-policy-modules-system-logging-add-rules-for-the-syml.patch renamed from recipes-security/refpolicy/refpolicy-git/0018-policy-module-logging-add-rules-for-the-symlink-of-v.patch +42 -17
124 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0032-policy-modules-system-logging-add-rules-for-syslogd-.patch renamed from recipes-security/refpolicy/refpolicy-git/0019-policy-module-logging-add-rules-for-syslogd-symlink-.patch +9 -8
@@ -1,33 +1,34 @@ -From b52614cce12e4a7d3437350bb35688d5470f92fc Mon Sep 17 00:00:00 2001 +From aaa818cd6d0b1d7a3ad99f911c6c21d5b30b9f49 Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Fri, 29 Mar 2019 10:33:18 -0400 -Subject: [PATCH 19/34] policy/module/logging: add rules for syslogd symlink of - /var/log +Subject: [PATCH] policy/modules/system/logging: add rules for syslogd symlink + of /var/log We have added rules for the symlink of /var/log in logging.if, while syslogd_t uses /var/log but does not use the interfaces in logging.if. So still need add a individual rule for syslogd_t. -Upstream-Status: Inappropriate [only for Poky] +Upstream-Status: Inappropriate [embedded specific] Signed-off-by: Xin Ouyang <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> --- policy/modules/system/logging.te | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te -index 499a4552..e6221a02 100644 +index 513d811ef..2d9f65d2d 100644 --- a/policy/modules/system/logging.te +++ b/policy/modules/system/logging.te -@@ -417,6 +417,7 @@ files_search_spool(syslogd_t) +@@ -414,6 +414,7 @@ files_search_spool(syslogd_t) # Allow access for syslog-ng allow syslogd_t var_log_t:dir { create setattr }; +allow syslogd_t var_log_t:lnk_file read_lnk_file_perms; # for systemd but can not be conditional - files_pid_filetrans(syslogd_t, syslogd_tmp_t, dir, "log") + files_runtime_filetrans(syslogd_t, syslogd_tmp_t, dir, "log") -- -2.19.1 +2.17.1
recipes-security/refpolicy/refpolicy/0033-policy-modules-system-logging-add-domain-rules-for-t.patch renamed from recipes-security/refpolicy/refpolicy-git/0020-policy-module-logging-add-domain-rules-for-the-subdi.patch +7 -6
@@ -1,24 +1,25 @@ -From 07456143d9478b345dbe480e1b418b744de96751 Mon Sep 17 00:00:00 2001 +From 0385f2374297ab2b8799fe1ec28d12e1682ec074 Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Fri, 23 Aug 2013 11:20:00 +0800 -Subject: [PATCH 20/34] policy/module/logging: add domain rules for the subdir - symlinks in /var/ +Subject: [PATCH] policy/modules/system/logging: add domain rules for the + subdir symlinks in /var/ Except /var/log,/var/run,/var/lock, there still other subdir symlinks in
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0034-policy-modules-kernel-files-add-rules-for-the-symlin.patch renamed from recipes-security/refpolicy/refpolicy-git/0021-policy-module-files-add-rules-for-the-symlink-of-tmp.patch +17 -15
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0035-policy-modules-kernel-terminal-add-rules-for-bsdpty_.patch renamed from recipes-security/refpolicy/refpolicy-git/0022-policy-module-terminals-add-rules-for-bsdpty_device_.patch +9 -8
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0036-policy-modules-kernel-terminal-don-t-audit-tty_devic.patch renamed from recipes-security/refpolicy/refpolicy-git/0023-policy-module-terminals-don-t-audit-tty_device_t-in-.patch +7 -6
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0037-policy-modules-services-avahi-allow-avahi_t-to-watch.patch new file +34 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0038-policy-modules-system-getty-allow-getty_t-watch-gett.patch new file +42 -0
42 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0039-policy-modules-services-bluetooth-allow-bluetooth_t-.patch new file +65 -0
65 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0040-policy-modules-roles-sysadm-allow-sysadm-to-run-rpci.patch new file +38 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0041-policy-modules-services-rpc-add-capability-dac_read_.patch new file +34 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0042-policy-modules-services-rpcbind-allow-rpcbind_t-to-c.patch new file +45 -0
45 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0043-policy-modules-services-rngd-fix-security-context-fo.patch new file +64 -0
64 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0044-policy-modules-system-authlogin-allow-chkpwd_t-to-ma.patch new file +34 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0045-policy-modules-system-udev-allow-udevadm_t-to-search.patch new file +34 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0046-policy-modules-udev-do-not-audit-udevadm_t-to-read-w.patch new file +37 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0047-policy-modules-services-rdisc-allow-rdisc_t-to-searc.patch new file +34 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0048-policy-modules-system-logging-fix-auditd-startup-fai.patch new file +52 -0
52 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0049-policy-modules-services-ssh-make-respective-init-scr.patch new file +33 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0050-policy-modules-kernel-terminal-allow-loging-to-reset.patch new file +31 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0051-policy-modules-system-selinuxutil-allow-semanage_t-t.patch new file +33 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0052-policy-modules-system-sysnetwork-allow-ifconfig_t-to.patch new file +35 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0053-policy-modules-services-ntp-allow-ntpd_t-to-watch-sy.patch new file +55 -0
55 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0054-policy-modules-system-systemd-enable-support-for-sys.patch new file +64 -0
64 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0055-policy-modules-system-logging-fix-systemd-journald-s.patch new file +74 -0
74 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0056-policy-modules-roles-sysadm-allow-sysadm_t-to-watch-.patch new file +36 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0057-policy-modules-system-systemd-add-capability-mknod-f.patch new file +35 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0058-policy-modules-system-systemd-systemd-gpt-auto-gener.patch new file +35 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0059-policy-modules-services-rpc-fix-policy-for-nfsserver.patch new file +78 -0
78 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0060-policy-modules-services-rpc-make-rpcd_t-MLS-trusted-.patch new file +36 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0061-policy-modules-roles-sysadm-MLS-sysadm-rw-to-clearan.patch new file +41 -0
41 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0062-policy-modules-system-mount-make-mount_t-domain-MLS-.patch new file +36 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0063-policy-modules-system-setrans-allow-setrans-to-acces.patch new file +53 -0
53 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0064-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch new file +36 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0065-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch new file +77 -0
77 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0066-policy-modules-system-init-make-init_t-MLS-trusted-f.patch new file +46 -0
46 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0067-policy-modules-system-systemd-make-systemd-tmpfiles_.patch new file +63 -0
63 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0068-policy-modules-system-logging-add-the-syslogd_t-to-t.patch renamed from recipes-security/refpolicy/refpolicy-git/0017-policy-module-logging-Add-the-syslogd_t-to-trusted-o.patch +12 -8
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0069-policy-modules-system-init-make-init_t-MLS-trusted-f.patch new file +33 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0070-policy-modules-system-init-all-init_t-to-read-any-le.patch new file +40 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0071-policy-modules-system-logging-allow-auditd_t-to-writ.patch new file +39 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0072-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch new file +32 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0073-policy-modules-system-systemd-make-systemd-logind-do.patch new file +42 -0
42 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0074-policy-modules-system-systemd-systemd-user-sessions-.patch new file +41 -0
41 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0075-policy-modules-system-systemd-systemd-networkd-make-.patch new file +36 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0076-policy-modules-system-systemd-systemd-resolved-make-.patch new file +40 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0077-policy-modules-system-systemd-make-systemd-modules_t.patch new file +36 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0078-policy-modules-system-systemd-systemd-gpt-auto-gener.patch new file +70 -0
70 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0079-policy-modules-services-ntp-make-nptd_t-MLS-trusted-.patch new file +40 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0080-policy-modules-services-avahi-make-avahi_t-MLS-trust.patch new file +29 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy_common.inc +82 -36
118 lines not on this page · raw message
recipes-security/refpolicy/refpolicy_git.inc +3 -3
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.17.1
Part of the diff is not shown here. View the raw message.
PATCH 3/4 audit: set correct security context for /var/log/audit
In reply to Yi ZhaoBy default /var/log is a symbolic link of /var/volatile/log. But restorecon does not follow symbolic links then we will encounter the following error when set /var/log/audit directory:
$ /sbin/restorecon -F /var/log/audit /sbin/restorecon: SELinux: Could not get canonical path for /var/log/audit restorecon: Permission denied.
Use readlink to find the real path before set security context.
--- recipes-security/audit/audit/auditd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 recipes-security/audit/audit/auditd
recipes-security/audit/audit/auditd +1 -1
@@ -86,7 +86,7 @@ do_reload() { if [ ! -e /var/log/audit ]; then mkdir -p /var/log/audit - [ -x /sbin/restorecon ] && /sbin/restorecon -F /var/log/audit + [ -x /sbin/restorecon ] && /sbin/restorecon -F $(readlink -f /var/log/audit) fi case "$1" in
Signature · 1 line
2.17.1
PATCH 4/4 sysklogd: set correct security context for /var/log in initscript
In reply to Yi ZhaoWe don't need to set security context for /dev/log after syslogd daemon startup because it is already set by udev. We just need to set the correct security context for symbolic link /var/log before syslogd startup.
--- recipes-extended/sysklogd/files/sysklogd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-extended/sysklogd/files/sysklogd +1 -1
@@ -108,8 +108,8 @@ case "$1" in start) log_begin_msg "Starting system log daemon..." create_xconsole + test ! -x /sbin/restorecon || /sbin/restorecon -F /var/log start-stop-daemon --start --quiet --pidfile $pidfile_syslogd --name syslogd --startas $binpath_syslogd -- $SYSLOGD - test ! -x /sbin/restorecon || /sbin/restorecon -RF /dev/log /var/log/ log_end_msg $? ;; stop)
Signature · 1 line
2.17.1
Quoted 15 lines · Yi Zhao
Here is the changelog for this is patchset:
* Drop refpolicy 2.20190201
If we still keep two versions of refpolicy, it is difficult to maintain two huge local patchsets. So drop this version and only keep the git version.* Add patches to make systemd/sysvinit can work with all policy types.
Here are the results with this patcheset:
Machine: qemux86-64
Image: core-image-selinux
Init manager: sysvinit and systemd
Policy types: minimum, targeted, standard, mcs, mls
Boot command: runqemu qemux86-64 kvm nographic bootparams="selinux=1 enforcing=1" qemuparams="-m 1024"
Quoted 4 lines
1. All refpolicy type can be built without problems.
2. With parameter selinux=1 & enforcing=1
The qemu can boot up and login with all policy types.
[snip]
I suspect I'm really missing something, but I'm unable to successfully make this work with poky + meta-selinux and its meta-openembedded dependencies with either sysvinit or systemd; I see denials on boot and cannot log in due to denials on reading /etc/passwd. That's also the behavior I see without this update, so I'm wondering if I'm just doing something significantly wrong with respect to configuration. My local.conf additions for testing are just:
DISTRO_FEATURES_append = " selinux" PREFERRED_PROVIDER_virtual/refpolicy = "refpolicy-targeted"
Any ideas?
Thanks,
Scott
Quoted 31 lines · Scott Murray
Quoted 15 lines · Yi Zhao
Here is the changelog for this is patchset:
* Drop refpolicy 2.20190201
If we still keep two versions of refpolicy, it is difficult to maintain two huge local patchsets. So drop this version and only keep the git version.* Add patches to make systemd/sysvinit can work with all policy types.
Here are the results with this patcheset:
Machine: qemux86-64
Image: core-image-selinux
Init manager: sysvinit and systemd
Policy types: minimum, targeted, standard, mcs, mls
Boot command: runqemu qemux86-64 kvm nographic bootparams="selinux=1 enforcing=1" qemuparams="-m 1024"Quoted 4 lines
1. All refpolicy type can be built without problems.
2. With parameter selinux=1 & enforcing=1
The qemu can boot up and login with all policy types.[snip]
I suspect I'm really missing something, but I'm unable to successfully make this work with poky + meta-selinux and its meta-openembedded dependencies with either sysvinit or systemd; I see denials on boot and cannot log in due to denials on reading
/etc/passwd. That's also the behavior I see without this update, so I'm wondering if I'm just doing something significantly wrong with respect to configuration. My local.conf additions for testing are just:
Quoted 1 line
DISTRO_FEATURES_append= " selinux"
Please set the following DISTRO_FEATURES:
DISTRO_FEATURES_append = " acl xattr pam selinux"
If you see some AVC denials for {map} like below:
avc: denied { map } for pid=249 comm="dbus-daemon" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0 avc: denied { map } for pid=319 comm="avahi-daemon" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:avahi_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0 avc: denied { map } for pid=379 comm="login" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0
They are harmless.
//Yi
Quoted 9 lines
PREFERRED_PROVIDER_virtual/refpolicy = "refpolicy-targeted"
Any ideas?
Thanks,
Scott
Quoted 36 lines · Yi Zhao
Quoted 34 lines · Scott Murray
Quoted 18 lines · Yi Zhao
Here is the changelog for this is patchset:
* Drop refpolicy 2.20190201
If we still keep two versions of refpolicy, it is difficult to maintain two huge local patchsets. So drop this version and only keep the git version.* Add patches to make systemd/sysvinit can work with all policy types.
Here are the results with this patcheset:
Machine: qemux86-64
Image: core-image-selinux
Init manager: sysvinit and systemd
Policy types: minimum, targeted, standard, mcs, mls
Boot command: runqemu qemux86-64 kvm nographic bootparams="selinux=1 enforcing=1" qemuparams="-m 1024"Quoted 4 lines
1. All refpolicy type can be built without problems.
2. With parameter selinux=1 & enforcing=1
The qemu can boot up and login with all policy types.[snip]
I suspect I'm really missing something, but I'm unable to successfully make this work with poky + meta-selinux and its meta-openembedded dependencies with either sysvinit or systemd; I see denials on boot and cannot log in due to denials on reading
/etc/passwd. That's also the behavior I see without this update, so I'm wondering if I'm just doing something significantly wrong with respect to configuration. My local.conf additions for testing are just:
Quoted 6 lines
Quoted 1 line
DISTRO_FEATURES_append= " selinux"Please set the following
DISTRO_FEATURES:
DISTRO_FEATURES_append= " acl xattr pam selinux"
Ah, poky is missing "pam", I somehow missed that when I checked previously. I can get logged in when I add it and rebuild. It likely would make sense to use the check_features class in e.g. core-image-selinux to catch this. Would you be okay with a patch that does so?
Quoted 12 lines
If you see some AVC denials for {map} like below:
avc: denied { map } for pid=249 comm="dbus-daemon" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0 avc: denied { map } for pid=319 comm="avahi-daemon" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:avahi_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0 avc: denied { map } for pid=379 comm="login" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0
Quoted 1 line
They are harmless.
Having spurious denials seems like it would make using them for detecting actual bad behavior harder, I'll likely start looking at the policy to see if some of this can be fixed.
Thanks,
Scott
Quoted 39 lines · Scott Murray
Quoted 37 lines · Yi Zhao
Quoted 35 lines · Scott Murray
Quoted 18 lines · Yi Zhao
Here is the changelog for this is patchset:
* Drop refpolicy 2.20190201
If we still keep two versions of refpolicy, it is difficult to maintain two huge local patchsets. So drop this version and only keep the git version.* Add patches to make systemd/sysvinit can work with all policy types.
Here are the results with this patcheset:
Machine: qemux86-64
Image: core-image-selinux
Init manager: sysvinit and systemd
Policy types: minimum, targeted, standard, mcs, mls
Boot command: runqemu qemux86-64 kvm nographic bootparams="selinux=1 enforcing=1" qemuparams="-m 1024"Quoted 4 lines
1. All refpolicy type can be built without problems.
2. With parameter selinux=1 & enforcing=1
The qemu can boot up and login with all policy types.[snip]
I suspect I'm really missing something, but I'm unable to successfully make this work with poky + meta-selinux and its meta-openembedded dependencies with either sysvinit or systemd; I see denials on boot and cannot log in due to denials on reading
/etc/passwd. That's also the behavior I see without this update, so I'm wondering if I'm just doing something significantly wrong with respect to configuration. My local.conf additions for testing are just:
DISTRO_FEATURES_append= " selinux"
Quoted 8 lines
Quoted 3 lines
Please set the following
DISTRO_FEATURES:
DISTRO_FEATURES_append= " acl xattr pam selinux"Ah, poky is missing "pam", I somehow missed that when I checked previously. I can get logged in when I add it and rebuild. It likely would make sense to use the
check_featuresclass in e.g. core-image-selinux to catch this. Would you be okay with a patch that does so?
Thanks. It makes sense. I can send a patch later or you can also do it.
Quoted 13 lines
Quoted 13 lines
If you see some AVC denials for {map} like below:
avc: denied { map } for pid=249 comm="dbus-daemon" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0 avc: denied { map } for pid=319 comm="avahi-daemon" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:avahi_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0 avc: denied { map } for pid=379 comm="login" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0
Quoted 4 lines
Quoted 1 line
They are harmless.
Having spurious denials seems like it would make using them for detecting actual bad behavior harder, I'll likely start looking at the policy to see if some of this can be fixed.
For this issue, there is a discussion in http://oss.tresys.com/pipermail/refpolicy/2017-September/009865.html
Actually I saw lots of map denials on /etc/passwd or /etc/group for various commands. I'm not sure if we should allow them all via files_map_etc_files(domain) or dontaudit them ...
//Yi
Quoted 4 lines
Thanks,
Scott
Quoted 44 lines · Yi Zhao
Quoted 42 lines · Scott Murray
Quoted 40 lines · Yi Zhao
Quoted 35 lines · Scott Murray
Quoted 19 lines · Yi Zhao
Here is the changelog for this is patchset:
* Drop refpolicy 2.20190201
If we still keep two versions of refpolicy, it is difficult to maintain
two huge local patchsets. So drop this version and only keep the git version.* Add patches to make systemd/sysvinit can work with all policy types.
Here are the results with this patcheset:
Machine: qemux86-64
Image: core-image-selinux
Init manager: sysvinit and systemd
Policy types: minimum, targeted, standard, mcs, mls
Boot command: runqemu qemux86-64 kvm nographic bootparams="selinux=1 enforcing=1" qemuparams="-m 1024"Quoted 4 lines
1. All refpolicy type can be built without problems.
2. With parameter selinux=1 & enforcing=1
The qemu can boot up and login with all policy types.[snip]
I suspect I'm really missing something, but I'm unable to successfully make this work with poky + meta-selinux and its meta-openembedded dependencies with either sysvinit or systemd; I see denials on boot and cannot log in due to denials on reading
/etc/passwd. That's also the behavior I see without this update, so I'm wondering if I'm just doing something significantly wrong with respect to configuration. My local.conf additions for testing are just:Quoted 1 line
DISTRO_FEATURES_append= " selinux"Please set the following
DISTRO_FEATURES:
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
DISTRO_FEATURES_append= " acl xattr pam selinux"Ah, poky is missing "pam", I somehow missed that when I checked previously. I can get logged in when I add it and rebuild. It likely would make sense to use the
check_featuresclass in e.g. core-image-selinux to catch this. Would you be okay with a patch that does so?Thanks. It makes sense. I can send a patch later or you can also do it.
I'll look at it on the weekend and see about getting a patch posted.
Quoted 18 lines
Quoted 13 lines
Quoted 13 lines
If you see some AVC denials for {map} like below:
avc: denied { map } for pid=249 comm="dbus-daemon" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0 avc: denied { map } for pid=319 comm="avahi-daemon" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:avahi_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0 avc: denied { map } for pid=379 comm="login" path="/etc/passwd" dev="vda"
ino=345 scontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0Quoted 4 lines
Quoted 1 line
They are harmless.
Having spurious denials seems like it would make using them for detecting actual bad behavior harder, I'll likely start looking at the policy to see if some of this can be fixed.
Quoted 6 lines
For this issue, there is a discussion in
http://oss.tresys.com/pipermail/refpolicy/2017-September/009865.htmlActually I saw lots of map denials on
/etc/passwdor/etc/groupfor various commands. I'm not sure if we should allow them all viafiles_map_etc_files(domain)or dontaudit them ...
Okay. I plan to research this further, worse comes to worst I'll carry a policy patch locally.
Scott
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 43 lines · Yi Zhao
Quoted 41 lines · Scott Murray
Quoted 39 lines · Yi Zhao
Quoted 34 lines · Scott Murray
Quoted 18 lines · Yi Zhao
Here is the changelog for this is patchset:
* Drop refpolicy 2.20190201
If we still keep two versions of refpolicy, it is difficult to maintain two huge local patchsets. So drop this version and only keep the git version.* Add patches to make systemd/sysvinit can work with all policy types.
Here are the results with this patcheset:
Machine: qemux86-64
Image: core-image-selinux
Init manager: sysvinit and systemd
Policy types: minimum, targeted, standard, mcs, mls
Boot command: runqemu qemux86-64 kvm nographic bootparams="selinux=1 enforcing=1" qemuparams="-m 1024"Quoted 4 lines
1. All refpolicy type can be built without problems.
2. With parameter selinux=1 & enforcing=1
The qemu can boot up and login with all policy types.[snip]
I suspect I'm really missing something, but I'm unable to successfully make this work with poky + meta-selinux and its meta-openembedded dependencies with either sysvinit or systemd; I see denials on boot and cannot log in due to denials on reading /etc/passwd. That's also the behavior I see without this update, so I'm wondering if I'm just doing something significantly wrong with respect to configuration. My local.conf additions for testing are just:
Quoted 1 line
DISTRO_FEATURES_append= " selinux"Please set the following
DISTRO_FEATURES:
Quoted 27 lines
Quoted 6 lines
Quoted 1 line
DISTRO_FEATURES_append= " acl xattr pam selinux"Ah, poky is missing "pam", I somehow missed that when I checked previously. I can get logged in when I add it and rebuild. It likely would make sense to use the
check_featuresclass in e.g. core-image-selinux to catch this. Would you be okay with a patch that does so?Thanks. It makes sense. I can send a patch later or you can also do it.
Quoted 17 lines
Quoted 13 lines
If you see some AVC denials for {map} like below:
avc: denied { map } for pid=249 comm="dbus-daemon" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0 avc: denied { map } for pid=319 comm="avahi-daemon" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:avahi_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0 avc: denied { map } for pid=379 comm="login" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0
Quoted 1 line
They are harmless.
Having spurious denials seems like it would make using them for detecting actual bad behavior harder, I'll likely start looking at the policy to see if some of this can be fixed.
You can install auditd into the rootfs and startup the daemon to let the denials messages write to audit.log rather than print to the console.
//Yi
Quoted 15 lines
Quoted 1 line
For this issue, there is a discussion in http://oss.tresys.com/pipermail/refpolicy/2017-September/009865.html
Actually I saw lots of map denials on
/etc/passwdor/etc/groupfor various commands. I'm not sure if we should allow them all viafiles_map_etc_files(domain)or dontaudit them ...//Yi
Quoted 4 lines
Thanks,
Scott
Quoted 69 lines · Yi Zhao
Quoted 67 lines · Yi Zhao
Quoted 40 lines · Scott Murray
Quoted 38 lines · Yi Zhao
Quoted 36 lines · Scott Murray
Quoted 19 lines · Yi Zhao
Here is the changelog for this is patchset:
* Drop refpolicy 2.20190201
If we still keep two versions of refpolicy, it is difficult to maintain
two huge local patchsets. So drop this version and only keep the git version.* Add patches to make systemd/sysvinit can work with all policy types.
Here are the results with this patcheset:
Machine: qemux86-64
Image: core-image-selinux
Init manager: sysvinit and systemd
Policy types: minimum, targeted, standard, mcs, mls
Boot command: runqemu qemux86-64 kvm nographic bootparams="selinux=1 enforcing=1" qemuparams="-m 1024"Quoted 4 lines
1. All refpolicy type can be built without problems.
2. With parameter selinux=1 & enforcing=1
The qemu can boot up and login with all policy types.[snip]
I suspect I'm really missing something, but I'm unable to successfully make this work with poky + meta-selinux and its meta-openembedded dependencies with either sysvinit or systemd; I see denials on boot and cannot log in due to denials on reading /etc/passwd. That's also the behavior I see without this update, so I'm wondering if I'm just doing something significantly wrong with respect to configuration. My local.conf additions for testing are just:
DISTRO_FEATURES_append= " selinux"Quoted 8 lines
Quoted 3 lines
Please set the following
DISTRO_FEATURES:
DISTRO_FEATURES_append= " acl xattr pam selinux"Ah, poky is missing "pam", I somehow missed that when I checked previously. I can get logged in when I add it and rebuild. It likely would make sense to use the
check_featuresclass in e.g. core-image-selinux to catch this. Would you be okay with a patch that does so?Thanks. It makes sense. I can send a patch later or you can also do it.
Quoted 14 lines
Quoted 14 lines
If you see some AVC denials for {map} like below:
avc: denied { map } for pid=249 comm="dbus-daemon" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0 avc: denied { map } for pid=319 comm="avahi-daemon" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:avahi_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0 avc: denied { map } for pid=379 comm="login" path="/etc/passwd" dev="vda"
ino=345 scontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
They are harmless.
Having spurious denials seems like it would make using them for detecting actual bad behavior harder, I'll likely start looking at the policy to see if some of this can be fixed.
You can install auditd into the rootfs and startup the daemon to let the denials messages write to audit.log rather than print to the console.
Yes, but ideally I'd like to not have to filter a bunch of spam from the auditd logs to have them be useful for potential incident detection. As I mentioned on my other reply, I plan to look into it further and likely will just carry a policy patch locally if it's reasonable to work out one.
Scott
Quoted 76 lines · [Re: [yocto] [meta-selinux][PATCH 0/4] refpolicy: update to 20200229+git] On…
Quoted 74 lines · Yi Zhao
Quoted 71 lines · Yi Zhao
Quoted 40 lines · Scott Murray
Quoted 38 lines · Yi Zhao
Quoted 36 lines · Scott Murray
Quoted 19 lines · Yi Zhao
Here is the changelog for this is patchset:
* Drop refpolicy 2.20190201
If we still keep two versions of refpolicy, it is difficult to maintain
two huge local patchsets. So drop this version and only keep the git version.* Add patches to make systemd/sysvinit can work with all policy types.
Here are the results with this patcheset:
Machine: qemux86-64
Image: core-image-selinux
Init manager: sysvinit and systemd
Policy types: minimum, targeted, standard, mcs, mls
Boot command: runqemu qemux86-64 kvm nographic bootparams="selinux=1 enforcing=1" qemuparams="-m 1024"Quoted 4 lines
1. All refpolicy type can be built without problems.
2. With parameter selinux=1 & enforcing=1
The qemu can boot up and login with all policy types.[snip]
I suspect I'm really missing something, but I'm unable to successfully make this work with poky + meta-selinux and its meta-openembedded dependencies with either sysvinit or systemd; I see denials on boot and cannot log in due to denials on reading /etc/passwd. That's also the behavior I see without this update, so I'm wondering if I'm just doing something significantly wrong with respect to configuration. My local.conf additions for testing are just:
DISTRO_FEATURES_append= " selinux"Quoted 8 lines
Quoted 3 lines
Please set the following
DISTRO_FEATURES:
DISTRO_FEATURES_append= " acl xattr pam selinux"Ah, poky is missing "pam", I somehow missed that when I checked previously. I can get logged in when I add it and rebuild. It likely would make sense to use the
check_featuresclass in e.g. core-image-selinux to catch this. Would you be okay with a patch that does so?Thanks. It makes sense. I can send a patch later or you can also do it.
Quoted 18 lines
Quoted 14 lines
If you see some AVC denials for {map} like below:
avc: denied { map } for pid=249 comm="dbus-daemon" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0 avc: denied { map } for pid=319 comm="avahi-daemon" path="/etc/passwd" dev="vda" ino=345 scontext=system_u:system_r:avahi_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0 avc: denied { map } for pid=379 comm="login" path="/etc/passwd" dev="vda"
ino=345 scontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0Quoted 1 line
They are harmless.
Having spurious denials seems like it would make using them for detecting actual bad behavior harder, I'll likely start looking at the policy to see if some of this can be fixed.
Quoted 7 lines
Quoted 2 lines
You can install auditd into the rootfs and startup the daemon to let the denials messages write to audit.log rather than print to the console.
Yes, but ideally I'd like to not have to filter a bunch of spam from the auditd logs to have them be useful for potential incident detection. As I mentioned on my other reply, I plan to look into it further and likely will just carry a policy patch locally if it's reasonable to work out one.
I tend to agree. My goal with the policy has always been to have a clean boot in a 'standard' configuration for exactly the reason you state here. Having warnings that are harmless should be avoided as much as possible because it makes it harder to detect real problems if there's a bunch of noise.
So if you do get a change you'd like to propose sharing back, we'd definitely want to consider merging it.
Signature · 2 lines
-Joe MacDonald. :wq