selinux: upgrade refpolicy
cover selinux: upgrade refpolicy
Upgrade refpolicy from 20200229+git to 20210203+git
Yi Zhao (7):
selinux-python: depend on libselinux
parted: remove bbappend
audit: move audisp-* to audispd-plugins package
audit: upgrade 3.0 -> 3.0.1
packagegroup-core-selinux: add auditd
initscripts: restore security contexts after running
populate-volatile.sh
refpolicy: upgrade 20200229+git -> 20210203+git
.../initscripts/initscripts-1.0_selinux.inc | 2 +-
recipes-extended/parted/parted_%.bbappend | 1 -
...arm_table.h-update-arm-syscall-table.patch | 49 -----
.../audit/{audit_3.0.bb => audit_3.0.1.bb} | 17 +-
.../packagegroup-core-selinux.bb | 1 +
.../refpolicy/refpolicy-minimum_git.bb | 1 +
.../refpolicy/refpolicy-targeted_git.bb | 2 -
...tile-alias-common-var-volatile-paths.patch | 6 +-
...inimum-make-sysadmin-module-optional.patch | 10 +-
...ed-make-unconfined_u-the-default-sel.patch | 20 +-
...box-set-aliases-for-bin-sbin-and-usr.patch | 6 +-
...efpolicy-minimum-enable-nscd_use_shm.patch | 35 ++++
...y-policy-to-common-yocto-hostname-al.patch | 2 +-
...sr-bin-bash-context-to-bin-bash.bash.patch | 4 +-
...abel-resolv.conf-in-var-run-properly.patch | 6 +-
...-apply-login-context-to-login.shadow.patch | 2 +-
.../0007-fc-bind-fix-real-path-for-bind.patch | 4 +-
...-fc-hwclock-add-hwclock-alternatives.patch | 2 +-
...g-apply-policy-to-dmesg-alternatives.patch | 2 +-
...ssh-apply-policy-to-ssh-alternatives.patch | 2 +-
...work-apply-policy-to-ip-alternatives.patch | 6 +-
...v-apply-policy-to-udevadm-in-libexec.patch | 6 +-
...ply-rpm_exec-policy-to-cpio-binaries.patch | 4 +-
...c-su-apply-policy-to-su-alternatives.patch | 2 +-
...fc-fstools-fix-real-path-for-fstools.patch | 2 +-
...fix-update-alternatives-for-sysvinit.patch | 6 +-
...l-apply-policy-to-brctl-alternatives.patch | 2 +-
...apply-policy-to-nologin-alternatives.patch | 6 +-
...apply-policy-to-sulogin-alternatives.patch | 2 +-
...tp-apply-policy-to-ntpd-alternatives.patch | 2 +-
...pply-policy-to-kerberos-alternatives.patch | 2 +-
...ap-apply-policy-to-ldap-alternatives.patch | 2 +-
...ply-policy-to-postgresql-alternative.patch | 2 +-
...-apply-policy-to-screen-alternatives.patch | 6 +-
...ply-policy-to-usermanage-alternative.patch | 2 +-
...etty-add-file-context-to-start_getty.patch | 2 +-
...file-context-to-etc-network-if-files.patch | 6 +-
...k-apply-policy-to-vlock-alternatives.patch | 2 +-
...ron-apply-policy-to-etc-init.d-crond.patch | 2 +-
...rk-update-file-context-for-ifconfig.patch} | 6 +-
...s_dist-set-aliase-for-root-director.patch} | 6 +-
...stem-logging-add-rules-for-the-syml.patch} | 43 +---
...ystem-logging-add-domain-rules-for-t.patch | 37 ----
...stem-logging-add-rules-for-syslogd-.patch} | 6 +-
...ernel-files-add-rules-for-the-symlin.patch | 24 +--
...ernel-terminal-add-rules-for-bsdpty_.patch | 124 ------------
...ystem-logging-fix-auditd-startup-fai.patch | 64 ++++++
...ernel-terminal-don-t-audit-tty_devic.patch | 4 +-
...ystem-modutils-allow-mod_t-to-access.patch | 67 +++++++
...rvices-avahi-allow-avahi_t-to-watch.patch} | 8 +-
...ystem-getty-allow-getty_t-watch-gett.patch | 42 ----
...ervices-bluetooth-allow-bluetooth_t-.patch | 65 ------
...ystem-getty-allow-getty_t-to-search-.patch | 32 +++
...ervices-bluetooth-fix-bluetoothd-sta.patch | 88 ++++++++
...les-sysadm-allow-sysadm-to-run-rpci.patch} | 6 +-
...rvices-rpc-add-capability-dac_read_.patch} | 6 +-
...rvices-rpcbind-allow-rpcbind_t-to-c.patch} | 24 ++-
...rvices-rngd-fix-security-context-fo.patch} | 29 +--
...ystem-authlogin-allow-chkpwd_t-to-ma.patch | 34 ----
...ervices-ssh-allow-ssh_keygen_t-to-re.patch | 34 ++++
...ystem-udev-allow-udevadm_t-to-search.patch | 34 ----
...rvices-ssh-make-respective-init-scr.patch} | 4 +-
...dev-do-not-audit-udevadm_t-to-read-w.patch | 37 ----
...rnel-terminal-allow-loging-to-reset.patch} | 4 +-
...ervices-rdisc-allow-rdisc_t-to-searc.patch | 34 ----
...ystem-logging-fix-auditd-startup-fai.patch | 52 -----
...stem-selinuxutil-allow-semanage_t-t.patch} | 6 +-
...stem-systemd-enable-support-for-sys.patch} | 10 +-
...ystem-systemd-fix-systemd-resolved-s.patch | 69 +++++++
...ystem-init-add-capability2-bpf-and-p.patch | 37 ++++
...ystem-sysnetwork-allow-ifconfig_t-to.patch | 35 ----
...ystem-systemd-allow-systemd_logind_t.patch | 37 ++++
...ervices-ntp-allow-ntpd_t-to-watch-sy.patch | 55 -----
...ystem-logging-set-label-devlog_t-to-.patch | 86 ++++++++
...-system-systemd-support-systemd-user.patch | 189 ++++++++++++++++++
...ystem-logging-fix-systemd-journald-s.patch | 74 -------
...ystem-systemd-allow-systemd-generato.patch | 69 +++++++
...ystem-systemd-allow-systemd_backligh.patch | 35 ++++
...ystem-logging-fix-systemd-journald-s.patch | 47 +++++
...ystem-systemd-add-capability-mknod-f.patch | 35 ----
...ervices-cron-allow-crond_t-to-search.patch | 34 ++++
...ystem-systemd-systemd-gpt-auto-gener.patch | 35 ----
...ervices-crontab-allow-sysadm_r-to-ru.patch | 46 +++++
...ystem-sysnetwork-support-priviledge-.patch | 120 +++++++++++
...ervices-acpi-allow-acpid-to-watch-th.patch | 35 ++++
...stem-setrans-allow-setrans-to-acces.patch} | 19 +-
...ystem-modutils-allow-kmod_t-to-write.patch | 35 ++++
...les-sysadm-allow-sysadm_t-to-watch-.patch} | 17 +-
...ystem-selinux-allow-setfiles_t-to-re.patch | 44 ++++
...stem-mount-make-mount_t-domain-MLS-.patch} | 6 +-
...les-sysadm-MLS-sysadm-rw-to-clearan.patch} | 4 +-
...rvices-rpc-make-nfsd_t-domain-MLS-t.patch} | 31 +--
...min-dmesg-make-dmesg_t-MLS-trusted-.patch} | 4 +-
...rnel-kernel-make-kernel_t-MLS-trust.patch} | 4 +-
...stem-init-make-init_t-MLS-trusted-f.patch} | 6 +-
...stem-systemd-make-systemd-tmpfiles_.patch} | 6 +-
...stem-logging-add-the-syslogd_t-to-t.patch} | 8 +-
...stem-init-make-init_t-MLS-trusted-f.patch} | 6 +-
...stem-init-all-init_t-to-read-any-le.patch} | 6 +-
...ystem-systemd-systemd-networkd-make-.patch | 36 ----
...stem-logging-allow-auditd_t-to-writ.patch} | 6 +-
...ystem-systemd-systemd-resolved-make-.patch | 40 ----
...rnel-kernel-make-kernel_t-MLS-trust.patch} | 4 +-
...ystem-systemd-make-systemd-modules_t.patch | 36 ----
...stem-systemd-make-systemd-logind-do.patch} | 6 +-
...ystem-systemd-systemd-gpt-auto-gener.patch | 70 -------
...stem-systemd-systemd-user-sessions-.patch} | 6 +-
...ystem-systemd-systemd-make-systemd_-.patch | 162 +++++++++++++++
...rvices-ntp-make-nptd_t-MLS-trusted-.patch} | 6 +-
...ystem-setrans-allow-setrans_t-use-fd.patch | 30 +++
...ervices-acpi-make-acpid_t-domain-MLS.patch | 35 ++++
...rvices-avahi-make-avahi_t-MLS-trust.patch} | 4 +-
...ervices-bluetooth-make-bluetooth_t-d.patch | 36 ++++
...ystem-sysnetwork-make-dhcpc_t-domain.patch | 38 ++++
...ervices-inetd-make-inetd_t-domain-ML.patch | 36 ++++
...ervices-bind-make-named_t-domain-MLS.patch | 38 ++++
...rvices-rpc-make-rpcd_t-MLS-trusted-.patch} | 6 +-
...ystem-systemd-make-_systemd_t-MLS-tr.patch | 42 ++++
.../refpolicy/refpolicy_common.inc | 113 ++++++-----
recipes-security/refpolicy/refpolicy_git.inc | 4 +-
recipes-security/selinux/selinux-python.inc | 2 +-
121 files changed, 1918 insertions(+), 1240 deletions(-)
delete mode 100644 recipes-extended/parted/parted_%.bbappend
delete mode 100644 recipes-security/audit/audit/0001-lib-arm_table.h-update-arm-syscall-table.patch
rename recipes-security/audit/{audit_3.0.bb => audit_3.0.1.bb} (87%)
create mode 100644 recipes-security/refpolicy/refpolicy/0002-refpolicy-minimum-enable-nscd_use_shm.patch
rename recipes-security/refpolicy/refpolicy/{0081-fc-sysnetwork-update-file-context-for-ifconfig.patch => 0030-fc-sysnetwork-update-file-context-for-ifconfig.patch} (89%)
rename recipes-security/refpolicy/refpolicy/{0030-file_contexts.subs_dist-set-aliase-for-root-director.patch => 0031-file_contexts.subs_dist-set-aliase-for-root-director.patch} (87%)
rename recipes-security/refpolicy/refpolicy/{0031-policy-modules-system-logging-add-rules-for-the-syml.patch => 0032-policy-modules-system-logging-add-rules-for-the-syml.patch} (60%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0033-policy-modules-system-logging-add-domain-rules-for-t.patch
rename recipes-security/refpolicy/refpolicy/{0032-policy-modules-system-logging-add-rules-for-syslogd-.patch => 0033-policy-modules-system-logging-add-rules-for-syslogd-.patch} (87%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0035-policy-modules-kernel-terminal-add-rules-for-bsdpty_.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0035-policy-modules-system-logging-fix-auditd-startup-fai.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0037-policy-modules-system-modutils-allow-mod_t-to-access.patch
rename recipes-security/refpolicy/refpolicy/{0037-policy-modules-services-avahi-allow-avahi_t-to-watch.patch => 0038-policy-modules-services-avahi-allow-avahi_t-to-watch.patch} (87%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0038-policy-modules-system-getty-allow-getty_t-watch-gett.patch
delete mode 100644 recipes-security/refpolicy/refpolicy/0039-policy-modules-services-bluetooth-allow-bluetooth_t-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0039-policy-modules-system-getty-allow-getty_t-to-search-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0040-policy-modules-services-bluetooth-fix-bluetoothd-sta.patch
rename recipes-security/refpolicy/refpolicy/{0040-policy-modules-roles-sysadm-allow-sysadm-to-run-rpci.patch => 0041-policy-modules-roles-sysadm-allow-sysadm-to-run-rpci.patch} (87%)
rename recipes-security/refpolicy/refpolicy/{0041-policy-modules-services-rpc-add-capability-dac_read_.patch => 0042-policy-modules-services-rpc-add-capability-dac_read_.patch} (88%)
rename recipes-security/refpolicy/refpolicy/{0042-policy-modules-services-rpcbind-allow-rpcbind_t-to-c.patch => 0043-policy-modules-services-rpcbind-allow-rpcbind_t-to-c.patch} (61%)
rename recipes-security/refpolicy/refpolicy/{0043-policy-modules-services-rngd-fix-security-context-fo.patch => 0044-policy-modules-services-rngd-fix-security-context-fo.patch} (66%)
delete 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-services-ssh-allow-ssh_keygen_t-to-re.patch
delete mode 100644 recipes-security/refpolicy/refpolicy/0045-policy-modules-system-udev-allow-udevadm_t-to-search.patch
rename recipes-security/refpolicy/refpolicy/{0049-policy-modules-services-ssh-make-respective-init-scr.patch => 0046-policy-modules-services-ssh-make-respective-init-scr.patch} (89%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0046-policy-modules-udev-do-not-audit-udevadm_t-to-read-w.patch
rename recipes-security/refpolicy/refpolicy/{0050-policy-modules-kernel-terminal-allow-loging-to-reset.patch => 0047-policy-modules-kernel-terminal-allow-loging-to-reset.patch} (90%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0047-policy-modules-services-rdisc-allow-rdisc_t-to-searc.patch
delete mode 100644 recipes-security/refpolicy/refpolicy/0048-policy-modules-system-logging-fix-auditd-startup-fai.patch
rename recipes-security/refpolicy/refpolicy/{0051-policy-modules-system-selinuxutil-allow-semanage_t-t.patch => 0048-policy-modules-system-selinuxutil-allow-semanage_t-t.patch} (84%)
rename recipes-security/refpolicy/refpolicy/{0054-policy-modules-system-systemd-enable-support-for-sys.patch => 0049-policy-modules-system-systemd-enable-support-for-sys.patch} (89%)
create mode 100644 recipes-security/refpolicy/refpolicy/0050-policy-modules-system-systemd-fix-systemd-resolved-s.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0051-policy-modules-system-init-add-capability2-bpf-and-p.patch
delete mode 100644 recipes-security/refpolicy/refpolicy/0052-policy-modules-system-sysnetwork-allow-ifconfig_t-to.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0052-policy-modules-system-systemd-allow-systemd_logind_t.patch
delete 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/0053-policy-modules-system-logging-set-label-devlog_t-to-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0054-policy-modules-system-systemd-support-systemd-user.patch
delete mode 100644 recipes-security/refpolicy/refpolicy/0055-policy-modules-system-logging-fix-systemd-journald-s.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0055-policy-modules-system-systemd-allow-systemd-generato.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0056-policy-modules-system-systemd-allow-systemd_backligh.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0057-policy-modules-system-logging-fix-systemd-journald-s.patch
delete 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-services-cron-allow-crond_t-to-search.patch
delete 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-crontab-allow-sysadm_r-to-ru.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0060-policy-modules-system-sysnetwork-support-priviledge-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0061-policy-modules-services-acpi-allow-acpid-to-watch-th.patch
rename recipes-security/refpolicy/refpolicy/{0063-policy-modules-system-setrans-allow-setrans-to-acces.patch => 0062-policy-modules-system-setrans-allow-setrans-to-acces.patch} (71%)
create mode 100644 recipes-security/refpolicy/refpolicy/0063-policy-modules-system-modutils-allow-kmod_t-to-write.patch
rename recipes-security/refpolicy/refpolicy/{0056-policy-modules-roles-sysadm-allow-sysadm_t-to-watch-.patch => 0064-policy-modules-roles-sysadm-allow-sysadm_t-to-watch-.patch} (60%)
create mode 100644 recipes-security/refpolicy/refpolicy/0065-policy-modules-system-selinux-allow-setfiles_t-to-re.patch
rename recipes-security/refpolicy/refpolicy/{0062-policy-modules-system-mount-make-mount_t-domain-MLS-.patch => 0066-policy-modules-system-mount-make-mount_t-domain-MLS-.patch} (85%)
rename recipes-security/refpolicy/refpolicy/{0061-policy-modules-roles-sysadm-MLS-sysadm-rw-to-clearan.patch => 0067-policy-modules-roles-sysadm-MLS-sysadm-rw-to-clearan.patch} (92%)
rename recipes-security/refpolicy/refpolicy/{0059-policy-modules-services-rpc-fix-policy-for-nfsserver.patch => 0068-policy-modules-services-rpc-make-nfsd_t-domain-MLS-t.patch} (61%)
rename recipes-security/refpolicy/refpolicy/{0064-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch => 0069-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch} (91%)
rename recipes-security/refpolicy/refpolicy/{0065-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch => 0070-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch} (96%)
rename recipes-security/refpolicy/refpolicy/{0066-policy-modules-system-init-make-init_t-MLS-trusted-f.patch => 0071-policy-modules-system-init-make-init_t-MLS-trusted-f.patch} (90%)
rename recipes-security/refpolicy/refpolicy/{0067-policy-modules-system-systemd-make-systemd-tmpfiles_.patch => 0072-policy-modules-system-systemd-make-systemd-tmpfiles_.patch} (92%)
rename recipes-security/refpolicy/refpolicy/{0068-policy-modules-system-logging-add-the-syslogd_t-to-t.patch => 0073-policy-modules-system-logging-add-the-syslogd_t-to-t.patch} (86%)
rename recipes-security/refpolicy/refpolicy/{0069-policy-modules-system-init-make-init_t-MLS-trusted-f.patch => 0074-policy-modules-system-init-make-init_t-MLS-trusted-f.patch} (86%)
rename recipes-security/refpolicy/refpolicy/{0070-policy-modules-system-init-all-init_t-to-read-any-le.patch => 0075-policy-modules-system-init-all-init_t-to-read-any-le.patch} (88%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0075-policy-modules-system-systemd-systemd-networkd-make-.patch
rename recipes-security/refpolicy/refpolicy/{0071-policy-modules-system-logging-allow-auditd_t-to-writ.patch => 0076-policy-modules-system-logging-allow-auditd_t-to-writ.patch} (88%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0076-policy-modules-system-systemd-systemd-resolved-make-.patch
rename recipes-security/refpolicy/refpolicy/{0072-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch => 0077-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch} (90%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0077-policy-modules-system-systemd-make-systemd-modules_t.patch
rename recipes-security/refpolicy/refpolicy/{0073-policy-modules-system-systemd-make-systemd-logind-do.patch => 0078-policy-modules-system-systemd-make-systemd-logind-do.patch} (90%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0078-policy-modules-system-systemd-systemd-gpt-auto-gener.patch
rename recipes-security/refpolicy/refpolicy/{0074-policy-modules-system-systemd-systemd-user-sessions-.patch => 0079-policy-modules-system-systemd-systemd-user-sessions-.patch} (88%)
create mode 100644 recipes-security/refpolicy/refpolicy/0080-policy-modules-system-systemd-systemd-make-systemd_-.patch
rename recipes-security/refpolicy/refpolicy/{0079-policy-modules-services-ntp-make-nptd_t-MLS-trusted-.patch => 0081-policy-modules-services-ntp-make-nptd_t-MLS-trusted-.patch} (89%)
create mode 100644 recipes-security/refpolicy/refpolicy/0082-policy-modules-system-setrans-allow-setrans_t-use-fd.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0083-policy-modules-services-acpi-make-acpid_t-domain-MLS.patch
rename recipes-security/refpolicy/refpolicy/{0080-policy-modules-services-avahi-make-avahi_t-MLS-trust.patch => 0084-policy-modules-services-avahi-make-avahi_t-MLS-trust.patch} (89%)
create mode 100644 recipes-security/refpolicy/refpolicy/0085-policy-modules-services-bluetooth-make-bluetooth_t-d.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0086-policy-modules-system-sysnetwork-make-dhcpc_t-domain.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0087-policy-modules-services-inetd-make-inetd_t-domain-ML.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0088-policy-modules-services-bind-make-named_t-domain-MLS.patch
rename recipes-security/refpolicy/refpolicy/{0060-policy-modules-services-rpc-make-rpcd_t-MLS-trusted-.patch => 0089-policy-modules-services-rpc-make-rpcd_t-MLS-trusted-.patch} (85%)
create mode 100644 recipes-security/refpolicy/refpolicy/0090-policy-modules-system-systemd-make-_systemd_t-MLS-tr.patchSignature · 1 line
2.25.1
PATCH 1/7 selinux-python: depend on libselinux
Fix build error when selinux feature is not enabled:
sepolgen-ifgen-attr-helper.c:29:10: fatal error: selinux/selinux.h: No such file or directory
29 | #include <selinux/selinux.h>
| ^~~~~~~~~~~~~~~~~~~
--- recipes-security/selinux/selinux-python.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-security/selinux/selinux-python.inc +1 -1
@@ -10,7 +10,7 @@ SRC_URI += "file://fix-sepolicy-install-path.patch" inherit python3native -DEPENDS += "python3 libsepol" +DEPENDS += "python3 libsepol libselinux" RDEPENDS_${BPN}-audit2allow += "\ python3-core \ libselinux-python \
Signature · 1 line
2.25.1
PATCH 2/7 parted: remove bbappend
In reply to Yi ZhaoRemove bbappend since parted 3.4 has removed the enable_selinux configure option[1].
Fixes:
QA Issue: parted: configure was passed unrecognised options: --enable-selinux [unknown-configure-option]
[1] https://git.savannah.gnu.org/cgit/parted.git/commit/?id=059200d50beb259c54469ae65f2d034af48ff849
--- recipes-extended/parted/parted_%.bbappend | 1 - 1 file changed, 1 deletion(-) delete mode 100644 recipes-extended/parted/parted_%.bbappend
recipes-extended/parted/parted_%.bbappend deleted +0 -1
@@ -1 +0,0 @@ -inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'enable-selinux', '', d)}
Signature · 1 line
2.25.1
PATCH 3/7 audit: move audisp-* to audispd-plugins package
In reply to Yi ZhaoThe audisp-* files should be in audispd-plugins package rather than auditd package.
--- recipes-security/audit/audit_3.0.bb | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
recipes-security/audit/audit_3.0.bb +10 -4
@@ -59,10 +59,13 @@ PACKAGES =+ "audispd-plugins" PACKAGES += "auditd ${PN}-python" FILES_${PN} = "${sysconfdir}/libaudit.conf ${base_libdir}/libaudit.so.1* ${base_libdir}/libauparse.so.*" -FILES_auditd += "${bindir}/* ${base_sbindir}/* ${sysconfdir}/* ${datadir}/audit/*" -FILES_audispd-plugins += "${sysconfdir}/audisp/audisp-remote.conf \ - ${sysconfdir}/audisp/plugins.d/au-remote.conf \ - ${sbindir}/audisp-remote ${localstatedir}/spool/audit \ +FILES_auditd = "${bindir}/* ${base_sbindir}/* ${sysconfdir}/* ${datadir}/audit/*" +FILES_audispd-plugins = "${sysconfdir}/audit/audisp-remote.conf \ + ${sysconfdir}/audit/plugins.d/au-remote.conf \ + ${sysconfdir}/audit/plugins.d/syslog.conf \ + ${base_sbindir}/audisp-remote \ + ${base_sbindir}/audisp-syslog \ + ${localstatedir}/spool/audit \ " FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/*/.debug" FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}"
@@ -101,4 +104,7 @@ do_install_append() { # Based on the audit.spec "Copy default rules into place on new installation" cp ${D}/etc/audit/rules.d/audit.rules ${D}/etc/audit/audit.rules + + # Create /var/spool/audit directory for audisp-remote + install -m 0700 -d ${D}${localstatedir}/spool/audit }
Signature · 1 line
2.25.1
PATCH 4/7 audit: upgrade 3.0 -> 3.0.1
In reply to Yi ZhaoDrop backported patch:
0001-lib-arm_table.h-update-arm-syscall-table.patch
---
...arm_table.h-update-arm-syscall-table.patch | 49 -------------------
.../audit/{audit_3.0.bb => audit_3.0.1.bb} | 3 +-
2 files changed, 1 insertion(+), 51 deletions(-)
delete mode 100644 recipes-security/audit/audit/0001-lib-arm_table.h-update-arm-syscall-table.patch
rename recipes-security/audit/{audit_3.0.bb => audit_3.0.1.bb} (96%)recipes-security/audit/audit/0001-lib-arm_table.h-update-arm-syscall-table.patch deleted +0 -49
@@ -1,49 +0,0 @@ -From b75eb0db2aed045787b8bf326c7a78e61855af32 Mon Sep 17 00:00:00 2001 -From: Yi Zhao <[email protected]> -Date: Mon, 11 Jan 2021 10:25:42 +0800 -Subject: [PATCH] lib/arm_table.h: update arm syscall table - -Refer to Glibc 2.32, add *_time64 syscalls. - -Upstream-Status: Backport -[https://github.com/linux-audit/audit-userspace/commit/e7b4006239b5e2c1df7d501a422e39be79a13dc2] - -Signed-off-by: Yi Zhao <[email protected]> ---- - lib/arm_table.h | 20 ++++++++++++++++++++ - 1 file changed, 20 insertions(+) - -diff --git a/lib/arm_table.h b/lib/arm_table.h -index 51a0792..5b0da7d 100644 ---- a/lib/arm_table.h -+++ b/lib/arm_table.h -@@ -385,6 +385,26 @@ _S(398, "rseq") - _S(399, "io_pgetevents") - _S(400, "migrate_pages") - _S(401, "kexec_file_load") -+_S(403, "clock_gettime64") -+_S(404, "clock_settime64") -+_S(405, "clock_adjtime64") -+_S(406, "clock_getres_time64") -+_S(407, "clock_nanosleep_time64") -+_S(408, "timer_gettime64") -+_S(409, "timer_settime64") -+_S(410, "timerfd_gettime64") -+_S(411, "timerfd_settime64") -+_S(412, "utimensat_time64") -+_S(413, "pselect6_time64") -+_S(414, "ppoll_time64") -+_S(416, "io_pgetevents_time64") -+_S(417, "recvmmsg_time64") -+_S(418, "mq_timedsend_time64") -+_S(419, "mq_timedreceive_time64") -+_S(420, "semtimedop_time64") -+_S(421, "rt_sigtimedwait_time64") -+_S(422, "futex_time64") -+_S(423, "sched_rr_get_interval64") - _S(424, "pidfd_send_signal") - _S(425, "io_uring_setup") - _S(426, "io_uring_enter") --- -2.25.1 -
recipes-security/audit/audit_3.0.1.bb renamed from recipes-security/audit/audit_3.0.bb +1 -2
@@ -9,14 +9,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" SRC_URI = "git://github.com/linux-audit/${BPN}-userspace.git;branch=master \ file://Fixed-swig-host-contamination-issue.patch \ - file://0001-lib-arm_table.h-update-arm-syscall-table.patch \ file://auditd \ file://auditd.service \ file://audit-volatile.conf \ " S = "${WORKDIR}/git" -SRCREV = "ea8dbab9e0fb3fb2507ac5b8dc792ef32a97c87e" +SRCREV = "46cb7d92443c9ec7b3af15fb0baa65f65f6415d3" inherit autotools python3native update-rc.d systemd
Signature · 1 line
2.25.1
PATCH 5/7 packagegroup-core-selinux: add auditd
In reply to Yi ZhaoInstall auditd which will help the users debug and eliminate the audit logs on screen.
--- recipes-security/packagegroups/packagegroup-core-selinux.bb | 1 + 1 file changed, 1 insertion(+)
recipes-security/packagegroups/packagegroup-core-selinux.bb +1 -0
@@ -24,4 +24,5 @@ RDEPENDS_${PN} = " \ selinux-labeldev \ refpolicy \ coreutils \ + auditd \ "
Signature · 1 line
2.25.1
PATCH 6/7 initscripts: restore security contexts after running populate-volatile.sh
In reply to Yi ZhaoSome directories are created by populate-volatile.sh. We need to restore their security contexts.
Before the patch:
$ ls -dZ /tmp /var/tmp /var/lock /var/run system_u:object_r:root_t /tmp system_u:object_r:var_t /var/lock system_u:object_r:var_t /var/run system_u:object_r:var_t /var/tmp
After the patch:
$ ls -dZ /tmp /var/tmp /var/lock /var/run system_u:object_r:tmp_t /tmp system_u:object_r:var_lock_t /var/lock system_u:object_r:var_run_t /var/run system_u:object_r:tmp_t /var/tmp
--- recipes-core/initscripts/initscripts-1.0_selinux.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-core/initscripts/initscripts-1.0_selinux.inc +1 -1
@@ -4,7 +4,7 @@ do_install_append () { cat <<-EOF >> ${D}${sysconfdir}/init.d/populate-volatile.sh touch /var/log/lastlog test ! -x /sbin/restorecon || /sbin/restorecon -iRF /var/volatile/ /var/lib /run \ - /etc/resolv.conf /etc/adjtime + /etc/resolv.conf /etc/adjtime /tmp /var/tmp /var/log /var/lock /var/run EOF sed -i '/mount -n -o remount,$rootmode/i\test ! -x /sbin/restorecon || /sbin/restorecon -iRF /run' \ ${D}${sysconfdir}/init.d/checkroot.sh
Signature · 1 line
2.25.1
PATCH 7/7 refpolicy: upgrade 20200229+git -> 20210203+git
In reply to Yi Zhao* Update to latest git rev.
* Drop obsolete and unused patches.
* Rebase patches.
* Add patches to make systemd --user work.
---
.../refpolicy/refpolicy-minimum_git.bb | 1 +
.../refpolicy/refpolicy-targeted_git.bb | 2 -
...tile-alias-common-var-volatile-paths.patch | 6 +-
...inimum-make-sysadmin-module-optional.patch | 10 +-
...ed-make-unconfined_u-the-default-sel.patch | 20 +-
...box-set-aliases-for-bin-sbin-and-usr.patch | 6 +-
...efpolicy-minimum-enable-nscd_use_shm.patch | 35 ++++
...y-policy-to-common-yocto-hostname-al.patch | 2 +-
...sr-bin-bash-context-to-bin-bash.bash.patch | 4 +-
...abel-resolv.conf-in-var-run-properly.patch | 6 +-
...-apply-login-context-to-login.shadow.patch | 2 +-
.../0007-fc-bind-fix-real-path-for-bind.patch | 4 +-
...-fc-hwclock-add-hwclock-alternatives.patch | 2 +-
...g-apply-policy-to-dmesg-alternatives.patch | 2 +-
...ssh-apply-policy-to-ssh-alternatives.patch | 2 +-
...work-apply-policy-to-ip-alternatives.patch | 6 +-
...v-apply-policy-to-udevadm-in-libexec.patch | 6 +-
...ply-rpm_exec-policy-to-cpio-binaries.patch | 4 +-
...c-su-apply-policy-to-su-alternatives.patch | 2 +-
...fc-fstools-fix-real-path-for-fstools.patch | 2 +-
...fix-update-alternatives-for-sysvinit.patch | 6 +-
...l-apply-policy-to-brctl-alternatives.patch | 2 +-
...apply-policy-to-nologin-alternatives.patch | 6 +-
...apply-policy-to-sulogin-alternatives.patch | 2 +-
...tp-apply-policy-to-ntpd-alternatives.patch | 2 +-
...pply-policy-to-kerberos-alternatives.patch | 2 +-
...ap-apply-policy-to-ldap-alternatives.patch | 2 +-
...ply-policy-to-postgresql-alternative.patch | 2 +-
...-apply-policy-to-screen-alternatives.patch | 6 +-
...ply-policy-to-usermanage-alternative.patch | 2 +-
...etty-add-file-context-to-start_getty.patch | 2 +-
...file-context-to-etc-network-if-files.patch | 6 +-
...k-apply-policy-to-vlock-alternatives.patch | 2 +-
...ron-apply-policy-to-etc-init.d-crond.patch | 2 +-
...rk-update-file-context-for-ifconfig.patch} | 6 +-
...s_dist-set-aliase-for-root-director.patch} | 6 +-
...stem-logging-add-rules-for-the-syml.patch} | 43 +---
...ystem-logging-add-domain-rules-for-t.patch | 37 ----
...stem-logging-add-rules-for-syslogd-.patch} | 6 +-
...ernel-files-add-rules-for-the-symlin.patch | 24 +--
...ernel-terminal-add-rules-for-bsdpty_.patch | 124 ------------
...ystem-logging-fix-auditd-startup-fai.patch | 64 ++++++
...ernel-terminal-don-t-audit-tty_devic.patch | 4 +-
...ystem-modutils-allow-mod_t-to-access.patch | 67 +++++++
...rvices-avahi-allow-avahi_t-to-watch.patch} | 8 +-
...ystem-getty-allow-getty_t-watch-gett.patch | 42 ----
...ervices-bluetooth-allow-bluetooth_t-.patch | 65 ------
...ystem-getty-allow-getty_t-to-search-.patch | 32 +++
...ervices-bluetooth-fix-bluetoothd-sta.patch | 88 ++++++++
...les-sysadm-allow-sysadm-to-run-rpci.patch} | 6 +-
...rvices-rpc-add-capability-dac_read_.patch} | 6 +-
...rvices-rpcbind-allow-rpcbind_t-to-c.patch} | 24 ++-
...rvices-rngd-fix-security-context-fo.patch} | 29 +--
...ystem-authlogin-allow-chkpwd_t-to-ma.patch | 34 ----
...ervices-ssh-allow-ssh_keygen_t-to-re.patch | 34 ++++
...ystem-udev-allow-udevadm_t-to-search.patch | 34 ----
...rvices-ssh-make-respective-init-scr.patch} | 4 +-
...dev-do-not-audit-udevadm_t-to-read-w.patch | 37 ----
...rnel-terminal-allow-loging-to-reset.patch} | 4 +-
...ervices-rdisc-allow-rdisc_t-to-searc.patch | 34 ----
...ystem-logging-fix-auditd-startup-fai.patch | 52 -----
...stem-selinuxutil-allow-semanage_t-t.patch} | 6 +-
...stem-systemd-enable-support-for-sys.patch} | 10 +-
...ystem-systemd-fix-systemd-resolved-s.patch | 69 +++++++
...ystem-init-add-capability2-bpf-and-p.patch | 37 ++++
...ystem-sysnetwork-allow-ifconfig_t-to.patch | 35 ----
...ystem-systemd-allow-systemd_logind_t.patch | 37 ++++
...ervices-ntp-allow-ntpd_t-to-watch-sy.patch | 55 -----
...ystem-logging-set-label-devlog_t-to-.patch | 86 ++++++++
...-system-systemd-support-systemd-user.patch | 189 ++++++++++++++++++
...ystem-logging-fix-systemd-journald-s.patch | 74 -------
...ystem-systemd-allow-systemd-generato.patch | 69 +++++++
...ystem-systemd-allow-systemd_backligh.patch | 35 ++++
...ystem-logging-fix-systemd-journald-s.patch | 47 +++++
...ystem-systemd-add-capability-mknod-f.patch | 35 ----
...ervices-cron-allow-crond_t-to-search.patch | 34 ++++
...ystem-systemd-systemd-gpt-auto-gener.patch | 35 ----
...ervices-crontab-allow-sysadm_r-to-ru.patch | 46 +++++
...ystem-sysnetwork-support-priviledge-.patch | 120 +++++++++++
...ervices-acpi-allow-acpid-to-watch-th.patch | 35 ++++
...stem-setrans-allow-setrans-to-acces.patch} | 19 +-
...ystem-modutils-allow-kmod_t-to-write.patch | 35 ++++
...les-sysadm-allow-sysadm_t-to-watch-.patch} | 17 +-
...ystem-selinux-allow-setfiles_t-to-re.patch | 44 ++++
...stem-mount-make-mount_t-domain-MLS-.patch} | 6 +-
...les-sysadm-MLS-sysadm-rw-to-clearan.patch} | 4 +-
...rvices-rpc-make-nfsd_t-domain-MLS-t.patch} | 31 +--
...min-dmesg-make-dmesg_t-MLS-trusted-.patch} | 4 +-
...rnel-kernel-make-kernel_t-MLS-trust.patch} | 4 +-
...stem-init-make-init_t-MLS-trusted-f.patch} | 6 +-
...stem-systemd-make-systemd-tmpfiles_.patch} | 6 +-
...stem-logging-add-the-syslogd_t-to-t.patch} | 8 +-
...stem-init-make-init_t-MLS-trusted-f.patch} | 6 +-
...stem-init-all-init_t-to-read-any-le.patch} | 6 +-
...ystem-systemd-systemd-networkd-make-.patch | 36 ----
...stem-logging-allow-auditd_t-to-writ.patch} | 6 +-
...ystem-systemd-systemd-resolved-make-.patch | 40 ----
...rnel-kernel-make-kernel_t-MLS-trust.patch} | 4 +-
...ystem-systemd-make-systemd-modules_t.patch | 36 ----
...stem-systemd-make-systemd-logind-do.patch} | 6 +-
...ystem-systemd-systemd-gpt-auto-gener.patch | 70 -------
...stem-systemd-systemd-user-sessions-.patch} | 6 +-
...ystem-systemd-systemd-make-systemd_-.patch | 162 +++++++++++++++
...rvices-ntp-make-nptd_t-MLS-trusted-.patch} | 6 +-
...ystem-setrans-allow-setrans_t-use-fd.patch | 30 +++
...ervices-acpi-make-acpid_t-domain-MLS.patch | 35 ++++
...rvices-avahi-make-avahi_t-MLS-trust.patch} | 4 +-
...ervices-bluetooth-make-bluetooth_t-d.patch | 36 ++++
...ystem-sysnetwork-make-dhcpc_t-domain.patch | 38 ++++
...ervices-inetd-make-inetd_t-domain-ML.patch | 36 ++++
...ervices-bind-make-named_t-domain-MLS.patch | 38 ++++
...rvices-rpc-make-rpcd_t-MLS-trusted-.patch} | 6 +-
...ystem-systemd-make-_systemd_t-MLS-tr.patch | 42 ++++
.../refpolicy/refpolicy_common.inc | 113 ++++++-----
recipes-security/refpolicy/refpolicy_git.inc | 4 +-
115 files changed, 1904 insertions(+), 1182 deletions(-)
create mode 100644 recipes-security/refpolicy/refpolicy/0002-refpolicy-minimum-enable-nscd_use_shm.patch
rename recipes-security/refpolicy/refpolicy/{0081-fc-sysnetwork-update-file-context-for-ifconfig.patch => 0030-fc-sysnetwork-update-file-context-for-ifconfig.patch} (89%)
rename recipes-security/refpolicy/refpolicy/{0030-file_contexts.subs_dist-set-aliase-for-root-director.patch => 0031-file_contexts.subs_dist-set-aliase-for-root-director.patch} (87%)
rename recipes-security/refpolicy/refpolicy/{0031-policy-modules-system-logging-add-rules-for-the-syml.patch => 0032-policy-modules-system-logging-add-rules-for-the-syml.patch} (60%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0033-policy-modules-system-logging-add-domain-rules-for-t.patch
rename recipes-security/refpolicy/refpolicy/{0032-policy-modules-system-logging-add-rules-for-syslogd-.patch => 0033-policy-modules-system-logging-add-rules-for-syslogd-.patch} (87%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0035-policy-modules-kernel-terminal-add-rules-for-bsdpty_.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0035-policy-modules-system-logging-fix-auditd-startup-fai.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0037-policy-modules-system-modutils-allow-mod_t-to-access.patch
rename recipes-security/refpolicy/refpolicy/{0037-policy-modules-services-avahi-allow-avahi_t-to-watch.patch => 0038-policy-modules-services-avahi-allow-avahi_t-to-watch.patch} (87%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0038-policy-modules-system-getty-allow-getty_t-watch-gett.patch
delete mode 100644 recipes-security/refpolicy/refpolicy/0039-policy-modules-services-bluetooth-allow-bluetooth_t-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0039-policy-modules-system-getty-allow-getty_t-to-search-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0040-policy-modules-services-bluetooth-fix-bluetoothd-sta.patch
rename recipes-security/refpolicy/refpolicy/{0040-policy-modules-roles-sysadm-allow-sysadm-to-run-rpci.patch => 0041-policy-modules-roles-sysadm-allow-sysadm-to-run-rpci.patch} (87%)
rename recipes-security/refpolicy/refpolicy/{0041-policy-modules-services-rpc-add-capability-dac_read_.patch => 0042-policy-modules-services-rpc-add-capability-dac_read_.patch} (88%)
rename recipes-security/refpolicy/refpolicy/{0042-policy-modules-services-rpcbind-allow-rpcbind_t-to-c.patch => 0043-policy-modules-services-rpcbind-allow-rpcbind_t-to-c.patch} (61%)
rename recipes-security/refpolicy/refpolicy/{0043-policy-modules-services-rngd-fix-security-context-fo.patch => 0044-policy-modules-services-rngd-fix-security-context-fo.patch} (66%)
delete 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-services-ssh-allow-ssh_keygen_t-to-re.patch
delete mode 100644 recipes-security/refpolicy/refpolicy/0045-policy-modules-system-udev-allow-udevadm_t-to-search.patch
rename recipes-security/refpolicy/refpolicy/{0049-policy-modules-services-ssh-make-respective-init-scr.patch => 0046-policy-modules-services-ssh-make-respective-init-scr.patch} (89%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0046-policy-modules-udev-do-not-audit-udevadm_t-to-read-w.patch
rename recipes-security/refpolicy/refpolicy/{0050-policy-modules-kernel-terminal-allow-loging-to-reset.patch => 0047-policy-modules-kernel-terminal-allow-loging-to-reset.patch} (90%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0047-policy-modules-services-rdisc-allow-rdisc_t-to-searc.patch
delete mode 100644 recipes-security/refpolicy/refpolicy/0048-policy-modules-system-logging-fix-auditd-startup-fai.patch
rename recipes-security/refpolicy/refpolicy/{0051-policy-modules-system-selinuxutil-allow-semanage_t-t.patch => 0048-policy-modules-system-selinuxutil-allow-semanage_t-t.patch} (84%)
rename recipes-security/refpolicy/refpolicy/{0054-policy-modules-system-systemd-enable-support-for-sys.patch => 0049-policy-modules-system-systemd-enable-support-for-sys.patch} (89%)
create mode 100644 recipes-security/refpolicy/refpolicy/0050-policy-modules-system-systemd-fix-systemd-resolved-s.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0051-policy-modules-system-init-add-capability2-bpf-and-p.patch
delete mode 100644 recipes-security/refpolicy/refpolicy/0052-policy-modules-system-sysnetwork-allow-ifconfig_t-to.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0052-policy-modules-system-systemd-allow-systemd_logind_t.patch
delete 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/0053-policy-modules-system-logging-set-label-devlog_t-to-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0054-policy-modules-system-systemd-support-systemd-user.patch
delete mode 100644 recipes-security/refpolicy/refpolicy/0055-policy-modules-system-logging-fix-systemd-journald-s.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0055-policy-modules-system-systemd-allow-systemd-generato.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0056-policy-modules-system-systemd-allow-systemd_backligh.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0057-policy-modules-system-logging-fix-systemd-journald-s.patch
delete 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-services-cron-allow-crond_t-to-search.patch
delete 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-crontab-allow-sysadm_r-to-ru.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0060-policy-modules-system-sysnetwork-support-priviledge-.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0061-policy-modules-services-acpi-allow-acpid-to-watch-th.patch
rename recipes-security/refpolicy/refpolicy/{0063-policy-modules-system-setrans-allow-setrans-to-acces.patch => 0062-policy-modules-system-setrans-allow-setrans-to-acces.patch} (71%)
create mode 100644 recipes-security/refpolicy/refpolicy/0063-policy-modules-system-modutils-allow-kmod_t-to-write.patch
rename recipes-security/refpolicy/refpolicy/{0056-policy-modules-roles-sysadm-allow-sysadm_t-to-watch-.patch => 0064-policy-modules-roles-sysadm-allow-sysadm_t-to-watch-.patch} (60%)
create mode 100644 recipes-security/refpolicy/refpolicy/0065-policy-modules-system-selinux-allow-setfiles_t-to-re.patch
rename recipes-security/refpolicy/refpolicy/{0062-policy-modules-system-mount-make-mount_t-domain-MLS-.patch => 0066-policy-modules-system-mount-make-mount_t-domain-MLS-.patch} (85%)
rename recipes-security/refpolicy/refpolicy/{0061-policy-modules-roles-sysadm-MLS-sysadm-rw-to-clearan.patch => 0067-policy-modules-roles-sysadm-MLS-sysadm-rw-to-clearan.patch} (92%)
rename recipes-security/refpolicy/refpolicy/{0059-policy-modules-services-rpc-fix-policy-for-nfsserver.patch => 0068-policy-modules-services-rpc-make-nfsd_t-domain-MLS-t.patch} (61%)
rename recipes-security/refpolicy/refpolicy/{0064-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch => 0069-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch} (91%)
rename recipes-security/refpolicy/refpolicy/{0065-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch => 0070-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch} (96%)
rename recipes-security/refpolicy/refpolicy/{0066-policy-modules-system-init-make-init_t-MLS-trusted-f.patch => 0071-policy-modules-system-init-make-init_t-MLS-trusted-f.patch} (90%)
rename recipes-security/refpolicy/refpolicy/{0067-policy-modules-system-systemd-make-systemd-tmpfiles_.patch => 0072-policy-modules-system-systemd-make-systemd-tmpfiles_.patch} (92%)
rename recipes-security/refpolicy/refpolicy/{0068-policy-modules-system-logging-add-the-syslogd_t-to-t.patch => 0073-policy-modules-system-logging-add-the-syslogd_t-to-t.patch} (86%)
rename recipes-security/refpolicy/refpolicy/{0069-policy-modules-system-init-make-init_t-MLS-trusted-f.patch => 0074-policy-modules-system-init-make-init_t-MLS-trusted-f.patch} (86%)
rename recipes-security/refpolicy/refpolicy/{0070-policy-modules-system-init-all-init_t-to-read-any-le.patch => 0075-policy-modules-system-init-all-init_t-to-read-any-le.patch} (88%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0075-policy-modules-system-systemd-systemd-networkd-make-.patch
rename recipes-security/refpolicy/refpolicy/{0071-policy-modules-system-logging-allow-auditd_t-to-writ.patch => 0076-policy-modules-system-logging-allow-auditd_t-to-writ.patch} (88%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0076-policy-modules-system-systemd-systemd-resolved-make-.patch
rename recipes-security/refpolicy/refpolicy/{0072-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch => 0077-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch} (90%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0077-policy-modules-system-systemd-make-systemd-modules_t.patch
rename recipes-security/refpolicy/refpolicy/{0073-policy-modules-system-systemd-make-systemd-logind-do.patch => 0078-policy-modules-system-systemd-make-systemd-logind-do.patch} (90%)
delete mode 100644 recipes-security/refpolicy/refpolicy/0078-policy-modules-system-systemd-systemd-gpt-auto-gener.patch
rename recipes-security/refpolicy/refpolicy/{0074-policy-modules-system-systemd-systemd-user-sessions-.patch => 0079-policy-modules-system-systemd-systemd-user-sessions-.patch} (88%)
create mode 100644 recipes-security/refpolicy/refpolicy/0080-policy-modules-system-systemd-systemd-make-systemd_-.patch
rename recipes-security/refpolicy/refpolicy/{0079-policy-modules-services-ntp-make-nptd_t-MLS-trusted-.patch => 0081-policy-modules-services-ntp-make-nptd_t-MLS-trusted-.patch} (89%)
create mode 100644 recipes-security/refpolicy/refpolicy/0082-policy-modules-system-setrans-allow-setrans_t-use-fd.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0083-policy-modules-services-acpi-make-acpid_t-domain-MLS.patch
rename recipes-security/refpolicy/refpolicy/{0080-policy-modules-services-avahi-make-avahi_t-MLS-trust.patch => 0084-policy-modules-services-avahi-make-avahi_t-MLS-trust.patch} (89%)
create mode 100644 recipes-security/refpolicy/refpolicy/0085-policy-modules-services-bluetooth-make-bluetooth_t-d.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0086-policy-modules-system-sysnetwork-make-dhcpc_t-domain.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0087-policy-modules-services-inetd-make-inetd_t-domain-ML.patch
create mode 100644 recipes-security/refpolicy/refpolicy/0088-policy-modules-services-bind-make-named_t-domain-MLS.patch
rename recipes-security/refpolicy/refpolicy/{0060-policy-modules-services-rpc-make-rpcd_t-MLS-trusted-.patch => 0089-policy-modules-services-rpc-make-rpcd_t-MLS-trusted-.patch} (85%)
create mode 100644 recipes-security/refpolicy/refpolicy/0090-policy-modules-system-systemd-make-_systemd_t-MLS-tr.patchrecipes-security/refpolicy/refpolicy-minimum_git.bb +1 -0
@@ -13,6 +13,7 @@ domains are unconfined. \ SRC_URI += " \ file://0001-refpolicy-minimum-make-sysadmin-module-optional.patch \ + file://0002-refpolicy-minimum-enable-nscd_use_shm.patch \ " POLICY_NAME = "minimum"
recipes-security/refpolicy/refpolicy-targeted_git.bb +0 -2
@@ -6,8 +6,6 @@ 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"
recipes-security/refpolicy/refpolicy/0001-fc-subs-volatile-alias-common-var-volatile-paths.patch +3 -3
@@ -1,4 +1,4 @@ -From 7dc492abc2918e770b36099cf079ca9be10598c8 Mon Sep 17 00:00:00 2001 +From 8a6052604e4f39ef9cbab62372006bc6f736dbed Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Thu, 28 Mar 2019 16:14:09 -0400 Subject: [PATCH] fc/subs/volatile: alias common /var/volatile paths
@@ -15,10 +15,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 6 insertions(+) diff --git a/config/file_contexts.subs_dist b/config/file_contexts.subs_dist -index 346d920e3..aeb25a5bb 100644 +index 653d25d93..652e1dd35 100644 --- a/config/file_contexts.subs_dist +++ b/config/file_contexts.subs_dist -@@ -31,3 +31,9 @@ +@@ -32,3 +32,9 @@ # not for refpolicy intern, but for /var/run using applications, # like systemd tmpfiles or systemd socket configurations /var/run /run
recipes-security/refpolicy/refpolicy/0001-refpolicy-minimum-make-sysadmin-module-optional.patch +5 -5
@@ -1,4 +1,4 @@ -From efe4d5472fde3d4f043f4e8660c6cc73c7fc1542 Mon Sep 17 00:00:00 2001 +From dc757d6df2314d82029b23b409df8de22a4df45e Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Fri, 5 Apr 2019 11:53:28 -0400 Subject: [PATCH] refpolicy-minimum: make sysadmin module optional
@@ -22,10 +22,10 @@ Signed-off-by: Yi Zhao <[email protected]> 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te -index feed5af5f..6b6b723b8 100644 +index aa57a5661..9b03d3767 100644 --- a/policy/modules/system/init.te +++ b/policy/modules/system/init.te -@@ -515,13 +515,15 @@ ifdef(`init_systemd',` +@@ -527,13 +527,15 @@ ifdef(`init_systemd',` unconfined_write_keys(init_t) ') ',`
@@ -48,10 +48,10 @@ index feed5af5f..6b6b723b8 100644 ') ') diff --git a/policy/modules/system/locallogin.te b/policy/modules/system/locallogin.te -index f629b0040..971ca40e5 100644 +index 109980e79..313112371 100644 --- a/policy/modules/system/locallogin.te +++ b/policy/modules/system/locallogin.te -@@ -267,7 +267,9 @@ userdom_use_unpriv_users_fds(sulogin_t) +@@ -265,7 +265,9 @@ userdom_use_unpriv_users_fds(sulogin_t) userdom_search_user_home_dirs(sulogin_t) userdom_use_user_ptys(sulogin_t)
recipes-security/refpolicy/refpolicy/0001-refpolicy-targeted-make-unconfined_u-the-default-sel.patch +10 -10
@@ -1,4 +1,4 @@ -From 8613549f3aad37ce3bec8513057f0f893d4cc9bd Mon Sep 17 00:00:00 2001 +From 7ff6cf3766a672c4f2b7bd0dc5efa296bd6aba51 Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Mon, 20 Apr 2020 11:50:03 +0800 Subject: [PATCH] refpolicy-targeted: make unconfined_u the default selinux
@@ -43,7 +43,7 @@ index ce614b41b..c0903d98b 100644 +root:unconfined_u:s0-mcs_systemhigh +__default__:unconfined_u:s0 diff --git a/policy/modules/roles/sysadm.te b/policy/modules/roles/sysadm.te -index ac5239d83..310a4fad2 100644 +index ce7d77d31..1aff2c31a 100644 --- a/policy/modules/roles/sysadm.te +++ b/policy/modules/roles/sysadm.te @@ -53,6 +53,7 @@ ubac_fd_exempt(sysadm_t)
@@ -52,13 +52,13 @@ index ac5239d83..310a4fad2 100644 init_admin(sysadm_t) +init_script_role_transition(sysadm_r) - selinux_read_policy(sysadm_t) - + # Add/remove user home directories + userdom_manage_user_home_dirs(sysadm_t) diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if -index ab24b5d9b..ed441ddef 100644 +index 98e94283f..eb6d5b32d 100644 --- a/policy/modules/system/init.if +++ b/policy/modules/system/init.if -@@ -1798,11 +1798,12 @@ interface(`init_script_file_entry_type',` +@@ -1821,11 +1821,12 @@ interface(`init_script_file_entry_type',` # interface(`init_spec_domtrans_script',` gen_require(`
@@ -73,7 +73,7 @@ index ab24b5d9b..ed441ddef 100644 ifdef(`distro_gentoo',` gen_require(` -@@ -1813,11 +1814,11 @@ interface(`init_spec_domtrans_script',` +@@ -1836,11 +1837,11 @@ interface(`init_spec_domtrans_script',` ') ifdef(`enable_mcs',`
@@ -87,7 +87,7 @@ index ab24b5d9b..ed441ddef 100644 ') ') -@@ -1834,17 +1835,18 @@ interface(`init_spec_domtrans_script',` +@@ -1857,17 +1858,18 @@ interface(`init_spec_domtrans_script',` interface(`init_domtrans_script',` gen_require(` type initrc_t, initrc_exec_t;
@@ -108,7 +108,7 @@ index ab24b5d9b..ed441ddef 100644 ') ') -@@ -3599,3 +3601,31 @@ interface(`init_getrlimit',` +@@ -3532,3 +3534,31 @@ interface(`init_getrlimit',` allow $1 init_t:process getrlimit; ')
@@ -141,7 +141,7 @@ index ab24b5d9b..ed441ddef 100644 + role_transition $1 init_script_file_type system_r; +') diff --git a/policy/modules/system/unconfined.te b/policy/modules/system/unconfined.te -index 3d75855b6..5aa4c0b69 100644 +index 385c88695..87adb7e9d 100644 --- a/policy/modules/system/unconfined.te +++ b/policy/modules/system/unconfined.te @@ -20,6 +20,11 @@ type unconfined_execmem_t alias ada_t;
recipes-security/refpolicy/refpolicy/0002-fc-subs-busybox-set-aliases-for-bin-sbin-and-usr.patch +3 -3
@@ -1,4 +1,4 @@ -From 2a68b7539104bec76aaf2a18b399770f59d0cb28 Mon Sep 17 00:00:00 2001 +From 0ee7bc5f28ffae30b1a1f40edd96cfed993db667 Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Thu, 28 Mar 2019 20:48:10 -0400 Subject: [PATCH] fc/subs/busybox: set aliases for bin, sbin and usr
@@ -15,10 +15,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 6 insertions(+) diff --git a/config/file_contexts.subs_dist b/config/file_contexts.subs_dist -index aeb25a5bb..c249c5207 100644 +index 652e1dd35..a38d58e16 100644 --- a/config/file_contexts.subs_dist +++ b/config/file_contexts.subs_dist -@@ -37,3 +37,9 @@ +@@ -38,3 +38,9 @@ # volatile hierarchy. /var/volatile/log /var/log /var/volatile/tmp /var/tmp
recipes-security/refpolicy/refpolicy/0002-refpolicy-minimum-enable-nscd_use_shm.patch new file +35 -0
@@ -0,0 +1,35 @@ +From d71b79cc9b174181934d588f64baa5637c8e85d1 Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Fri, 26 Feb 2021 09:13:23 +0800 +Subject: [PATCH] policy/modules/services/nscd: enable nscd_use_shm + +Fixes: +avc: denied { listen } for pid=199 comm="systemd-resolve" +path="/run/systemd/resolve/io.systemd.Resolve" +scontext=system_u:system_r:systemd_resolved_t:s0 +tcontext=system_u:system_r:systemd_resolved_t:s0 +tclass=unix_stream_socket permissive=0 + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/services/nscd.te | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/policy/modules/services/nscd.te b/policy/modules/services/nscd.te +index ada67edb1..9801fc228 100644 +--- a/policy/modules/services/nscd.te ++++ b/policy/modules/services/nscd.te +@@ -15,7 +15,7 @@ gen_require(` + ## can use nscd shared memory. + ## </p> + ## </desc> +-gen_tunable(nscd_use_shm, false) ++gen_tunable(nscd_use_shm, true) + + attribute_role nscd_roles; + +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0003-fc-hostname-apply-policy-to-common-yocto-hostname-al.patch +1 -1
@@ -1,4 +1,4 @@ -From 9f73ec53a4a5d5bb9b7fa453f3089c55f777c2ce Mon Sep 17 00:00:00 2001 +From e0c34d0feb5305b1397f252d698501b641277517 Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Thu, 22 Aug 2013 13:37:23 +0800 Subject: [PATCH] fc/hostname: apply policy to common yocto hostname
recipes-security/refpolicy/refpolicy/0004-fc-bash-apply-usr-bin-bash-context-to-bin-bash.bash.patch +2 -2
@@ -1,4 +1,4 @@ -From fda1e656c46b360f1023834636c460c5510acf68 Mon Sep 17 00:00:00 2001 +From 8d2c24bc1e2ef8ddf3cf7a08297cfab8a8a92b0d Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Thu, 28 Mar 2019 21:37:32 -0400 Subject: [PATCH] fc/bash: apply /usr/bin/bash context to /bin/bash.bash
@@ -15,7 +15,7 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+) diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc -index b473850d4..7e199b7b0 100644 +index 4c18154ce..9187e50af 100644 --- a/policy/modules/kernel/corecommands.fc +++ b/policy/modules/kernel/corecommands.fc @@ -142,6 +142,7 @@ ifdef(`distro_gentoo',`
recipes-security/refpolicy/refpolicy/0005-fc-resolv.conf-label-resolv.conf-in-var-run-properly.patch +3 -3
@@ -1,4 +1,4 @@ -From 90a9ef3adb997517f921a3524da99c966e3b00df Mon Sep 17 00:00:00 2001 +From 85a77289d193bb3335c78f6d51b4ae2b81249952 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
@@ -13,10 +13,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+) diff --git a/policy/modules/system/sysnetwork.fc b/policy/modules/system/sysnetwork.fc -index fddf9f693..acf539656 100644 +index 14505efe9..c9ec4e5ab 100644 --- a/policy/modules/system/sysnetwork.fc +++ b/policy/modules/system/sysnetwork.fc -@@ -83,6 +83,7 @@ ifdef(`distro_redhat',` +@@ -84,6 +84,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>>
recipes-security/refpolicy/refpolicy/0006-fc-login-apply-login-context-to-login.shadow.patch +1 -1
@@ -1,4 +1,4 @@ -From 3383027dfb8c672468a99805535eeadffbe7d332 Mon Sep 17 00:00:00 2001 +From 253ab75676232be5522fc628b0819d0c48a08c03 Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Thu, 28 Mar 2019 21:43:53 -0400 Subject: [PATCH] fc/login: apply login context to login.shadow
recipes-security/refpolicy/refpolicy/0007-fc-bind-fix-real-path-for-bind.patch +2 -2
@@ -1,4 +1,4 @@ -From fcf91092015155c4a10a1d7c4dd352ead0b5698b Mon Sep 17 00:00:00 2001 +From 7e61e5d715451bafd785ec7db01e24e726e31c35 Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Thu, 28 Mar 2019 21:58:53 -0400 Subject: [PATCH] fc/bind: fix real path for bind
@@ -13,7 +13,7 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 2 insertions(+) diff --git a/policy/modules/services/bind.fc b/policy/modules/services/bind.fc -index 7c1df4895..9f87a21a6 100644 +index ce68a0af9..585103eb9 100644 --- a/policy/modules/services/bind.fc +++ b/policy/modules/services/bind.fc @@ -1,8 +1,10 @@
recipes-security/refpolicy/refpolicy/0008-fc-hwclock-add-hwclock-alternatives.patch +1 -1
@@ -1,4 +1,4 @@ -From 2e5be9a910fc07a63efafc87a3c10bd81bd9c052 Mon Sep 17 00:00:00 2001 +From c7e69aa036d16a57709684fd2f72959f9a4ac251 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
recipes-security/refpolicy/refpolicy/0009-fc-dmesg-apply-policy-to-dmesg-alternatives.patch +1 -1
@@ -1,4 +1,4 @@ -From 924ecc31c140dcd862d067849d4e11e111284165 Mon Sep 17 00:00:00 2001 +From 0fe5ae0d1b5f4268b04ba6c6134324385bb630a2 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
recipes-security/refpolicy/refpolicy/0010-fc-ssh-apply-policy-to-ssh-alternatives.patch +1 -1
@@ -1,4 +1,4 @@ -From 261892950c5b2a40b7c3bb050ede148cbd1c7a84 Mon Sep 17 00:00:00 2001 +From e2d9462c5f26dc02f7d547548d8a94bfd79ea88f Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Fri, 29 Mar 2019 09:20:58 -0400 Subject: [PATCH] fc/ssh: apply policy to ssh alternatives
recipes-security/refpolicy/refpolicy/0011-fc-sysnetwork-apply-policy-to-ip-alternatives.patch +3 -3
@@ -1,4 +1,4 @@ -From bb8832629e85af2a16800f5cfec97ca0bf8319e6 Mon Sep 17 00:00:00 2001 +From dc3edc3b65dccf57d4cb22eb220498c2a5d9685f Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Tue, 9 Jun 2015 21:22:52 +0530 Subject: [PATCH] fc/sysnetwork: apply policy to ip alternatives
@@ -14,10 +14,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 3 insertions(+) diff --git a/policy/modules/system/sysnetwork.fc b/policy/modules/system/sysnetwork.fc -index acf539656..d8902d725 100644 +index c9ec4e5ab..c3291962d 100644 --- a/policy/modules/system/sysnetwork.fc +++ b/policy/modules/system/sysnetwork.fc -@@ -59,13 +59,16 @@ ifdef(`distro_redhat',` +@@ -60,13 +60,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)
recipes-security/refpolicy/refpolicy/0012-fc-udev-apply-policy-to-udevadm-in-libexec.patch +3 -3
@@ -1,4 +1,4 @@ -From 02a3c7a06f760d3cae909d2c271d1e4fde07c09b Mon Sep 17 00:00:00 2001 +From 9afd44d1300bc858c1569344fc1271e0468edad9 Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Fri, 29 Mar 2019 09:36:08 -0400 Subject: [PATCH] fc/udev: apply policy to udevadm in libexec
@@ -12,10 +12,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 2 insertions(+) diff --git a/policy/modules/system/udev.fc b/policy/modules/system/udev.fc -index 0ae7571cd..ceb5b70b3 100644 +index c88189fb7..ad4c0bba2 100644 --- a/policy/modules/system/udev.fc +++ b/policy/modules/system/udev.fc -@@ -28,6 +28,8 @@ ifdef(`distro_debian',` +@@ -24,6 +24,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)
recipes-security/refpolicy/refpolicy/0013-fc-rpm-apply-rpm_exec-policy-to-cpio-binaries.patch +2 -2
@@ -1,4 +1,4 @@ -From 117884178c9ba63334f732da6f30e67e22aa898e Mon Sep 17 00:00:00 2001 +From 79e58207060c25d5f2484ed164ab74413d00792a 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
@@ -12,7 +12,7 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 2 insertions(+) diff --git a/policy/modules/admin/rpm.fc b/policy/modules/admin/rpm.fc -index 6194a4833..ace922ac1 100644 +index aaf530c2b..618b18cec 100644 --- a/policy/modules/admin/rpm.fc +++ b/policy/modules/admin/rpm.fc @@ -66,4 +66,6 @@ ifdef(`distro_redhat',`
recipes-security/refpolicy/refpolicy/0014-fc-su-apply-policy-to-su-alternatives.patch +1 -1
@@ -1,4 +1,4 @@ -From 522d08c0dac1cfe9e33f06bc1252b7b672d9ffd3 Mon Sep 17 00:00:00 2001 +From a1281be5b894c0c6dc3471a1e6b6c910bab7aa46 Mon Sep 17 00:00:00 2001 From: Wenzong Fan <[email protected]> Date: Thu, 13 Feb 2014 00:33:07 -0500 Subject: [PATCH] fc/su: apply policy to su alternatives
recipes-security/refpolicy/refpolicy/0015-fc-fstools-fix-real-path-for-fstools.patch +1 -1
@@ -1,4 +1,4 @@ -From c4b0ffd60873ecca2cf0b1aa898185f5f3928828 Mon Sep 17 00:00:00 2001 +From 02f6557320c60d895397650a59c39708c8e63d27 Mon Sep 17 00:00:00 2001 From: Wenzong Fan <[email protected]> Date: Mon, 27 Jan 2014 03:54:01 -0500 Subject: [PATCH] fc/fstools: fix real path for fstools
recipes-security/refpolicy/refpolicy/0016-fc-init-fix-update-alternatives-for-sysvinit.patch +3 -3
@@ -1,4 +1,4 @@ -From 95a843719394827621e3b33c13f2696f7e498e5b Mon Sep 17 00:00:00 2001 +From f7860456e3867e6d9c24a7e07bc9e518f65ec478 Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Thu, 22 Aug 2013 13:37:23 +0800 Subject: [PATCH] fc/init: fix update-alternatives for sysvinit
@@ -26,7 +26,7 @@ index bf51c103f..91ed72be0 100644 /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 7e199b7b0..157eeb0d0 100644 +index 9187e50af..0ecabe34e 100644 --- a/policy/modules/kernel/corecommands.fc +++ b/policy/modules/kernel/corecommands.fc @@ -151,6 +151,8 @@ ifdef(`distro_gentoo',`
@@ -39,7 +39,7 @@ index 7e199b7b0..157eeb0d0 100644 /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 fee6ff3b6..fe72df22a 100644 +index 63cf195e6..5268bddb2 100644 --- a/policy/modules/system/init.fc +++ b/policy/modules/system/init.fc @@ -40,6 +40,7 @@ ifdef(`distro_gentoo',`
recipes-security/refpolicy/refpolicy/0017-fc-brctl-apply-policy-to-brctl-alternatives.patch +1 -1
@@ -1,4 +1,4 @@ -From 0b05d71fea73c9fc0dc8aac6e7d096b0214db5eb Mon Sep 17 00:00:00 2001 +From 3a83de3883d0e287c0b6647e87a93d2cdc48aa10 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
recipes-security/refpolicy/refpolicy/0018-fc-corecommands-apply-policy-to-nologin-alternatives.patch +3 -3
@@ -1,4 +1,4 @@ -From 5f759c3d89b52e62607266c4e684d66953803d4d Mon Sep 17 00:00:00 2001 +From 5219bc4e0b3147455fecb1485e8387573207070c 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
@@ -11,10 +11,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 2 insertions(+) diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc -index 157eeb0d0..515948ea9 100644 +index 0ecabe34e..e27e701ef 100644 --- a/policy/modules/kernel/corecommands.fc +++ b/policy/modules/kernel/corecommands.fc -@@ -303,6 +303,8 @@ ifdef(`distro_debian',` +@@ -304,6 +304,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)
recipes-security/refpolicy/refpolicy/0019-fc-locallogin-apply-policy-to-sulogin-alternatives.patch +1 -1
@@ -1,4 +1,4 @@ -From 84f715b8d128bcbfdc95adf18d6bc8eb225f05cd Mon Sep 17 00:00:00 2001 +From 2b3b5d43040e939e836ea5c9803f0b27641e50a4 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
recipes-security/refpolicy/refpolicy/0020-fc-ntp-apply-policy-to-ntpd-alternatives.patch +1 -1
@@ -1,4 +1,4 @@ -From b30d9ad872f613d2b1c3aad45eac65593de37b9b Mon Sep 17 00:00:00 2001 +From 5308969204d535391cb766ba5aa4b5479f64248c 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
recipes-security/refpolicy/refpolicy/0021-fc-kerberos-apply-policy-to-kerberos-alternatives.patch +1 -1
@@ -1,4 +1,4 @@ -From 632dcd7a700049a955082bd24af742c2780dcc38 Mon Sep 17 00:00:00 2001 +From 89a54472ea0195ec19c291374e88e55b40107ff8 Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Fri, 15 Nov 2019 10:55:05 +0800 Subject: [PATCH] fc/kerberos: apply policy to kerberos alternatives
recipes-security/refpolicy/refpolicy/0022-fc-ldap-apply-policy-to-ldap-alternatives.patch +1 -1
@@ -1,4 +1,4 @@ -From a580b0154da9dd07369b172ed459046197e388c7 Mon Sep 17 00:00:00 2001 +From 1130a43390bf41adb7747d0cc62c85c4320806cb 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
recipes-security/refpolicy/refpolicy/0023-fc-postgresql-apply-policy-to-postgresql-alternative.patch +1 -1
@@ -1,4 +1,4 @@ -From 926401518bca5a1e63b7f2c2cbae4a3bc42bf342 Mon Sep 17 00:00:00 2001 +From 184f1dfe4cbff9c5ff2cbe865d4e7427f100ff59 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
recipes-security/refpolicy/refpolicy/0024-fc-screen-apply-policy-to-screen-alternatives.patch +3 -3
@@ -1,4 +1,4 @@ -From f3f6f0cb4857954afd8a025a1cd3f14b8a11b64d Mon Sep 17 00:00:00 2001 +From e114e09928232dd9eed568a4717dca2094f6e4ad 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
@@ -11,10 +11,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+) diff --git a/policy/modules/apps/screen.fc b/policy/modules/apps/screen.fc -index 7196c598e..cada9944e 100644 +index e51e01d97..238dc263e 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) +@@ -7,4 +7,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)
recipes-security/refpolicy/refpolicy/0025-fc-usermanage-apply-policy-to-usermanage-alternative.patch +1 -1
@@ -1,4 +1,4 @@ -From 0656c4b988cb700f322fb03e6639fe0b64e08d63 Mon Sep 17 00:00:00 2001 +From 62a5f9dee28411f1d88a2101e507c15780467b2f Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Fri, 15 Nov 2019 11:25:34 +0800 Subject: [PATCH] fc/usermanage: apply policy to usermanage alternatives
recipes-security/refpolicy/refpolicy/0026-fc-getty-add-file-context-to-start_getty.patch +1 -1
@@ -1,4 +1,4 @@ -From cc8da498e20518cc9e8f59d1a4570e073f19e88b Mon Sep 17 00:00:00 2001 +From 7be59b4d42165f7e12ccb8b2409304a2640eb898 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
recipes-security/refpolicy/refpolicy/0027-fc-init-add-file-context-to-etc-network-if-files.patch +3 -3
@@ -1,4 +1,4 @@ -From 1d6f9b62082188992bfb681632dff15d5ad608c9 Mon Sep 17 00:00:00 2001 +From ac335f80d09f9ce4756f2e58944a975a12441fa7 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
@@ -11,10 +11,10 @@ Signed-off-by: Yi Zhao <[email protected]> 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 +index 5268bddb2..a6762bd00 100644 --- a/policy/modules/system/init.fc +++ b/policy/modules/system/init.fc -@@ -70,11 +70,12 @@ ifdef(`distro_redhat',` +@@ -75,11 +75,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)
recipes-security/refpolicy/refpolicy/0028-fc-vlock-apply-policy-to-vlock-alternatives.patch +1 -1
@@ -1,4 +1,4 @@ -From 8d8858bd8569db106f0feb44a0912daa872954ec Mon Sep 17 00:00:00 2001 +From 1ee2b12fa1585bf765370e3e787081fe01ad990f 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
recipes-security/refpolicy/refpolicy/0029-fc-cron-apply-policy-to-etc-init.d-crond.patch +1 -1
@@ -1,4 +1,4 @@ -From 25701662f7149743556bb2d5edb5c69e6de2744f Mon Sep 17 00:00:00 2001 +From a14d7d6fc54e7cf82d977c4b5c2df961c5eb1fe0 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
recipes-security/refpolicy/refpolicy/0030-fc-sysnetwork-update-file-context-for-ifconfig.patch renamed from recipes-security/refpolicy/refpolicy/0081-fc-sysnetwork-update-file-context-for-ifconfig.patch +3 -3
@@ -1,4 +1,4 @@ -From e6b303444988717c725a71db7b21417839321463 Mon Sep 17 00:00:00 2001 +From b3d2611360ddf21a3f8729766a1e4b64117ea710 Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Tue, 4 Aug 2020 16:48:12 +0800 Subject: [PATCH] fc/sysnetwork: update file context for ifconfig
@@ -15,10 +15,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+) diff --git a/policy/modules/system/sysnetwork.fc b/policy/modules/system/sysnetwork.fc -index d8902d725..9ec4eefb7 100644 +index c3291962d..4ca151524 100644 --- a/policy/modules/system/sysnetwork.fc +++ b/policy/modules/system/sysnetwork.fc -@@ -43,6 +43,7 @@ ifdef(`distro_redhat',` +@@ -44,6 +44,7 @@ ifdef(`distro_redhat',` /usr/bin/dhcpcd -- gen_context(system_u:object_r:dhcpc_exec_t,s0) /usr/bin/ethtool -- gen_context(system_u:object_r:ifconfig_exec_t,s0) /usr/bin/ifconfig -- gen_context(system_u:object_r:ifconfig_exec_t,s0)
recipes-security/refpolicy/refpolicy/0031-file_contexts.subs_dist-set-aliase-for-root-director.patch renamed from recipes-security/refpolicy/refpolicy/0030-file_contexts.subs_dist-set-aliase-for-root-director.patch +3 -3
@@ -1,4 +1,4 @@ -From 9260b04d257cdddf42d0267456d3ba2b38dc22d4 Mon Sep 17 00:00:00 2001 +From 8c733eff8089c24fe6885977d2bdcdfb0c453726 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
@@ -14,10 +14,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 4 insertions(+) diff --git a/config/file_contexts.subs_dist b/config/file_contexts.subs_dist -index c249c5207..67f476868 100644 +index a38d58e16..3e4c5720f 100644 --- a/config/file_contexts.subs_dist +++ b/config/file_contexts.subs_dist -@@ -43,3 +43,7 @@ +@@ -44,3 +44,7 @@ /usr/lib/busybox/bin /usr/bin /usr/lib/busybox/sbin /usr/sbin /usr/lib/busybox/usr /usr
recipes-security/refpolicy/refpolicy/0032-policy-modules-system-logging-add-rules-for-the-syml.patch renamed from recipes-security/refpolicy/refpolicy/0031-policy-modules-system-logging-add-rules-for-the-syml.patch +11 -32
102 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0033-policy-modules-system-logging-add-domain-rules-for-t.patch deleted +0 -37
@@ -1,37 +0,0 @@ -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] 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 -/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 [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/kernel/domain.te | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/policy/modules/kernel/domain.te b/policy/modules/kernel/domain.te -index 4e43a208d..7e5d2b458 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.17.1 -
recipes-security/refpolicy/refpolicy/0033-policy-modules-system-logging-add-rules-for-syslogd-.patch renamed from recipes-security/refpolicy/refpolicy/0032-policy-modules-system-logging-add-rules-for-syslogd-.patch +3 -3
@@ -1,4 +1,4 @@ -From aaa818cd6d0b1d7a3ad99f911c6c21d5b30b9f49 Mon Sep 17 00:00:00 2001 +From 275597cbb54eb8007c07fc06c3d9bd3d3090f7f2 Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Fri, 29 Mar 2019 10:33:18 -0400 Subject: [PATCH] policy/modules/system/logging: add rules for syslogd symlink
@@ -18,10 +18,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+) diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te -index 513d811ef..2d9f65d2d 100644 +index 031e2f40f..673046781 100644 --- a/policy/modules/system/logging.te +++ b/policy/modules/system/logging.te -@@ -414,6 +414,7 @@ files_search_spool(syslogd_t) +@@ -404,6 +404,7 @@ files_search_spool(syslogd_t) # Allow access for syslog-ng allow syslogd_t var_log_t:dir { create setattr };
recipes-security/refpolicy/refpolicy/0034-policy-modules-kernel-files-add-rules-for-the-symlin.patch +12 -12
@@ -1,4 +1,4 @@ -From 3ff1a004b77f44857dadfef3b78a49a55d90c665 Mon Sep 17 00:00:00 2001 +From 491783f2ae026ac969c9f6ef6eea1bd75ac7e2a5 Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Thu, 22 Aug 2013 13:37:23 +0800 Subject: [PATCH] policy/modules/kernel/files: add rules for the symlink of
@@ -18,10 +18,10 @@ Signed-off-by: Yi Zhao <[email protected]> 2 files changed, 9 insertions(+) diff --git a/policy/modules/kernel/files.fc b/policy/modules/kernel/files.fc -index a3993f5cc..f69900945 100644 +index 826722f4e..677ae96c3 100644 --- a/policy/modules/kernel/files.fc +++ b/policy/modules/kernel/files.fc -@@ -176,6 +176,7 @@ HOME_ROOT/lost\+found/.* <<none>> +@@ -172,6 +172,7 @@ HOME_ROOT/lost\+found/.* <<none>> # /tmp # /tmp -d gen_context(system_u:object_r:tmp_t,s0-mls_systemhigh)
@@ -30,10 +30,10 @@ index a3993f5cc..f69900945 100644 /tmp/\.journal <<none>> diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if -index 6a53f886b..ad19738b3 100644 +index 34a9cd66d..7fc7e922f 100644 --- a/policy/modules/kernel/files.if +++ b/policy/modules/kernel/files.if -@@ -4451,6 +4451,7 @@ interface(`files_search_tmp',` +@@ -4533,6 +4533,7 @@ interface(`files_search_tmp',` ') allow $1 tmp_t:dir search_dir_perms;
@@ -41,7 +41,7 @@ index 6a53f886b..ad19738b3 100644 ') ######################################## -@@ -4487,6 +4488,7 @@ interface(`files_list_tmp',` +@@ -4569,6 +4570,7 @@ interface(`files_list_tmp',` ') allow $1 tmp_t:dir list_dir_perms;
@@ -49,7 +49,7 @@ index 6a53f886b..ad19738b3 100644 ') ######################################## -@@ -4523,6 +4525,7 @@ interface(`files_delete_tmp_dir_entry',` +@@ -4605,6 +4607,7 @@ interface(`files_delete_tmp_dir_entry',` ') allow $1 tmp_t:dir del_entry_dir_perms;
@@ -57,7 +57,7 @@ index 6a53f886b..ad19738b3 100644 ') ######################################## -@@ -4541,6 +4544,7 @@ interface(`files_read_generic_tmp_files',` +@@ -4623,6 +4626,7 @@ interface(`files_read_generic_tmp_files',` ') read_files_pattern($1, tmp_t, tmp_t)
@@ -65,7 +65,7 @@ index 6a53f886b..ad19738b3 100644 ') ######################################## -@@ -4559,6 +4563,7 @@ interface(`files_manage_generic_tmp_dirs',` +@@ -4641,6 +4645,7 @@ interface(`files_manage_generic_tmp_dirs',` ') manage_dirs_pattern($1, tmp_t, tmp_t)
@@ -73,7 +73,7 @@ index 6a53f886b..ad19738b3 100644 ') ######################################## -@@ -4577,6 +4582,7 @@ interface(`files_manage_generic_tmp_files',` +@@ -4659,6 +4664,7 @@ interface(`files_manage_generic_tmp_files',` ') manage_files_pattern($1, tmp_t, tmp_t)
@@ -81,7 +81,7 @@ index 6a53f886b..ad19738b3 100644 ') ######################################## -@@ -4613,6 +4619,7 @@ interface(`files_rw_generic_tmp_sockets',` +@@ -4695,6 +4701,7 @@ interface(`files_rw_generic_tmp_sockets',` ') rw_sock_files_pattern($1, tmp_t, tmp_t)
@@ -89,7 +89,7 @@ index 6a53f886b..ad19738b3 100644 ') ######################################## -@@ -4820,6 +4827,7 @@ interface(`files_tmp_filetrans',` +@@ -4902,6 +4909,7 @@ interface(`files_tmp_filetrans',` ') filetrans_pattern($1, tmp_t, $2, $3, $4)
recipes-security/refpolicy/refpolicy/0035-policy-modules-kernel-terminal-add-rules-for-bsdpty_.patch deleted +0 -124
124 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0035-policy-modules-system-logging-fix-auditd-startup-fai.patch new file +64 -0
64 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0036-policy-modules-kernel-terminal-don-t-audit-tty_devic.patch +2 -2
@@ -1,4 +1,4 @@ -From a9aebca531f52818fe77b9b21f0cad425da78e43 Mon Sep 17 00:00:00 2001 +From 15773d54215587284f937b9a37b08c682949e7ab Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Thu, 22 Aug 2013 13:37:23 +0800 Subject: [PATCH] policy/modules/kernel/terminal: don't audit tty_device_t in
@@ -17,7 +17,7 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 3 insertions(+) diff --git a/policy/modules/kernel/terminal.if b/policy/modules/kernel/terminal.if -index f70e51525..8f9578dbc 100644 +index 55c18dffb..e8c0735eb 100644 --- a/policy/modules/kernel/terminal.if +++ b/policy/modules/kernel/terminal.if @@ -335,9 +335,12 @@ interface(`term_use_console',`
recipes-security/refpolicy/refpolicy/0037-policy-modules-system-modutils-allow-mod_t-to-access.patch new file +67 -0
67 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0038-policy-modules-services-avahi-allow-avahi_t-to-watch.patch renamed from recipes-security/refpolicy/refpolicy/0037-policy-modules-services-avahi-allow-avahi_t-to-watch.patch +4 -4
@@ -1,8 +1,8 @@ -From 4316f85adb1ab6e0278fb8e8ff68b358f36a933e Mon Sep 17 00:00:00 2001 +From 92571e7c066b3d91634a4c1f55542cb528f5bac4 Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Tue, 23 Jun 2020 08:19:16 +0800 -Subject: [PATCH] policy/modules/services/avahi: allow avahi_t to watch /etc - directory +Subject: [PATCH] policy/modules/services/avahi: allow avahi_t to watch + /etc/avahi directory Fixes: type=AVC msg=audit(1592813140.176:24): avc: denied { watch } for
@@ -18,7 +18,7 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+) diff --git a/policy/modules/services/avahi.te b/policy/modules/services/avahi.te -index f77e5546d..5643349e3 100644 +index af838d8b0..674cdcb81 100644 --- a/policy/modules/services/avahi.te +++ b/policy/modules/services/avahi.te @@ -76,6 +76,7 @@ domain_use_interactive_fds(avahi_t)
recipes-security/refpolicy/refpolicy/0038-policy-modules-system-getty-allow-getty_t-watch-gett.patch deleted +0 -42
42 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0039-policy-modules-services-bluetooth-allow-bluetooth_t-.patch deleted +0 -65
65 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0039-policy-modules-system-getty-allow-getty_t-to-search-.patch new file +32 -0
@@ -0,0 +1,32 @@ +From f23178d9d89bf39895f75867c29bda4dfb27e786 Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Tue, 23 Jun 2020 08:39:44 +0800 +Subject: [PATCH] policy/modules/system/getty: allow getty_t to search tmpfs + +Fixes: +avc: denied { search } for pid=211 comm="agetty" name="/" dev="tmpfs" +ino=1 scontext=system_u:system_r:getty_t +tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=0 + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/system/getty.te | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/policy/modules/system/getty.te b/policy/modules/system/getty.te +index 95b1ec632..0415e1ee7 100644 +--- a/policy/modules/system/getty.te ++++ b/policy/modules/system/getty.te +@@ -66,6 +66,7 @@ dev_read_sysfs(getty_t) + files_read_etc_runtime_files(getty_t) + files_read_etc_files(getty_t) + files_search_spool(getty_t) ++fs_search_tmpfs(getty_t) + + fs_search_auto_mountpoints(getty_t) + # for error condition handling +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0040-policy-modules-services-bluetooth-fix-bluetoothd-sta.patch new file +88 -0
88 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0041-policy-modules-roles-sysadm-allow-sysadm-to-run-rpci.patch renamed from recipes-security/refpolicy/refpolicy/0040-policy-modules-roles-sysadm-allow-sysadm-to-run-rpci.patch +3 -3
@@ -1,4 +1,4 @@ -From 354389c93e26bb8d8e8c1c126b01d838a6a214c8 Mon Sep 17 00:00:00 2001 +From e67fe4fa79d59be7bcefd256c1966ea8c034a3d9 Mon Sep 17 00:00:00 2001 From: Roy Li <[email protected]> Date: Sat, 15 Feb 2014 09:45:00 +0800 Subject: [PATCH] policy/modules/roles/sysadm: allow sysadm to run rpcinfo
@@ -22,10 +22,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+) diff --git a/policy/modules/roles/sysadm.te b/policy/modules/roles/sysadm.te -index f0370b426..fc0945fe4 100644 +index ddf973693..1642f3b93 100644 --- a/policy/modules/roles/sysadm.te +++ b/policy/modules/roles/sysadm.te -@@ -962,6 +962,7 @@ optional_policy(` +@@ -947,6 +947,7 @@ optional_policy(` ') optional_policy(`
recipes-security/refpolicy/refpolicy/0042-policy-modules-services-rpc-add-capability-dac_read_.patch renamed from recipes-security/refpolicy/refpolicy/0041-policy-modules-services-rpc-add-capability-dac_read_.patch +3 -3
@@ -1,4 +1,4 @@ -From fbc8f3140bf6b519bad568fc1d840c9043fc13db Mon Sep 17 00:00:00 2001 +From 7c94b6aa3c679dc201ed5a907f713c0857d8b8ca Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Tue, 14 May 2019 15:22:08 +0800 Subject: [PATCH] policy/modules/services/rpc: add capability dac_read_search
@@ -17,10 +17,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policy/modules/services/rpc.te b/policy/modules/services/rpc.te -index 020dbc4ad..c06ff803f 100644 +index c3e37177b..87b6b4561 100644 --- a/policy/modules/services/rpc.te +++ b/policy/modules/services/rpc.te -@@ -142,7 +142,7 @@ optional_policy(` +@@ -232,7 +232,7 @@ optional_policy(` # Local policy #
recipes-security/refpolicy/refpolicy/0043-policy-modules-services-rpcbind-allow-rpcbind_t-to-c.patch renamed from recipes-security/refpolicy/refpolicy/0042-policy-modules-services-rpcbind-allow-rpcbind_t-to-c.patch +21 -3
@@ -1,9 +1,12 @@ -From dfe79338ee9915527afd9e0943ed84e0347c4d66 Mon Sep 17 00:00:00 2001 +From 40101e4da939fcea2eebe3e4800d0de4e551ca26 Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Wed, 1 Jul 2020 08:44:07 +0800 Subject: [PATCH] policy/modules/services/rpcbind: allow rpcbind_t to create directory with label rpcbind_runtime_t +* Allow rpcbind_t to create directory with label rpcbind_runtime_t +* Set context for nfsserver and nfscommon + Fixes: avc: denied { create } for pid=136 comm="rpcbind" name="rpcbind" scontext=system_u:system_r:rpcbind_t:s0-s15:c0.c1023
@@ -13,11 +16,26 @@ Upstream-Status: Inappropriate [embedded specific] Signed-off-by: Yi Zhao <[email protected]> --- + policy/modules/services/rpc.fc | 2 ++ policy/modules/services/rpcbind.te | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) + 2 files changed, 5 insertions(+), 2 deletions(-) +diff --git a/policy/modules/services/rpc.fc b/policy/modules/services/rpc.fc +index 88d2acaf0..d9c0a4aa7 100644 +--- a/policy/modules/services/rpc.fc ++++ b/policy/modules/services/rpc.fc +@@ -1,7 +1,9 @@ + /etc/exports -- gen_context(system_u:object_r:exports_t,s0) + + /etc/rc\.d/init\.d/nfs -- gen_context(system_u:object_r:nfsd_initrc_exec_t,s0) ++/etc/rc\.d/init\.d/nfsserver -- gen_context(system_u:object_r:nfsd_initrc_exec_t,s0) + /etc/rc\.d/init\.d/nfslock -- gen_context(system_u:object_r:rpcd_initrc_exec_t,s0) ++/etc/rc\.d/init\.d/nfscommon -- gen_context(system_u:object_r:rpcd_initrc_exec_t,s0) + /etc/rc\.d/init\.d/rpcidmapd -- gen_context(system_u:object_r:rpcd_initrc_exec_t,s0) + + /usr/bin/rpc\..* -- gen_context(system_u:object_r:rpcd_exec_t,s0) diff --git a/policy/modules/services/rpcbind.te b/policy/modules/services/rpcbind.te -index 69ed49d8b..4f110773a 100644 +index 370c9bce6..8972980fa 100644 --- a/policy/modules/services/rpcbind.te +++ b/policy/modules/services/rpcbind.te @@ -25,16 +25,17 @@ files_type(rpcbind_var_lib_t)
recipes-security/refpolicy/refpolicy/0044-policy-modules-services-rngd-fix-security-context-fo.patch renamed from recipes-security/refpolicy/refpolicy/0043-policy-modules-services-rngd-fix-security-context-fo.patch +15 -14
@@ -1,23 +1,24 @@ -From 617b8b558674a77cd2b1eff9155f276985456684 Mon Sep 17 00:00:00 2001 +From 5dbfff582a9c7745f8517adefb27c5f90653f8fa Mon Sep 17 00:00:00 2001 From: Wenzong Fan <[email protected]> Date: Wed, 25 May 2016 03:16:24 -0400 Subject: [PATCH] policy/modules/services/rngd: fix security context for rng-tools -* fix security context for /etc/init.d/rng-tools -* allow rngd_t to search /run/systemd/journal +* Fix security context for /etc/init.d/rng-tools +* Allow rngd_t to read sysfs Fixes: -audit: type=1400 audit(1592874699.503:11): avc: denied { read } for -pid=355 comm="rngd" name="cpu" dev="sysfs" ino=36 -scontext=system_u:system_r:rngd_t tcontext=system_u:object_r:sysfs_t -tclass=dir permissive=1 -audit: type=1400 audit(1592874699.505:12): avc: denied { getsched } -for pid=355 comm="rngd" scontext=system_u:system_r:rngd_t -tcontext=system_u:system_r:rngd_t tclass=process permissive=1 -audit: type=1400 audit(1592874699.508:13): avc: denied { setsched } -for pid=355 comm="rngd" scontext=system_u:system_r:rngd_t -tcontext=system_u:system_r:rngd_t tclass=process permissive=1 +avc: denied { read } for pid=355 comm="rngd" name="cpu" dev="sysfs" +ino=36 scontext=system_u:system_r:rngd_t +tcontext=system_u:object_r:sysfs_t tclass=dir permissive=1 + +avc: denied { getsched } for pid=355 comm="rngd" +scontext=system_u:system_r:rngd_t tcontext=system_u:system_r:rngd_t +tclass=process permissive=1 + +avc: denied { setsched } for pid=355 comm="rngd" +scontext=system_u:system_r:rngd_t tcontext=system_u:system_r:rngd_t +tclass=process permissive=1 Upstream-Status: Inappropriate [embedded specific]
@@ -39,7 +40,7 @@ index 382c067f9..0ecc5acc4 100644 /usr/bin/rngd -- gen_context(system_u:object_r:rngd_exec_t,s0) diff --git a/policy/modules/services/rngd.te b/policy/modules/services/rngd.te -index 839813216..c4ffafb5d 100644 +index 4540e4ec7..48f08fb48 100644 --- a/policy/modules/services/rngd.te +++ b/policy/modules/services/rngd.te @@ -21,7 +21,7 @@ files_runtime_file(rngd_runtime_t)
recipes-security/refpolicy/refpolicy/0044-policy-modules-system-authlogin-allow-chkpwd_t-to-ma.patch deleted +0 -34
@@ -1,34 +0,0 @@ -From 0e3199f243a47853452a877ebad5360bc8c1f2f1 Mon Sep 17 00:00:00 2001 -From: Yi Zhao <[email protected]> -Date: Thu, 21 Nov 2019 13:58:28 +0800 -Subject: [PATCH] policy/modules/system/authlogin: allow chkpwd_t to map - shadow_t - -Fixes: -avc: denied { map } for pid=244 comm="unix_chkpwd" path="/etc/shadow" -dev="vda" ino=443 scontext=system_u:system_r:chkpwd_t -tcontext=system_u:object_r:shadow_t tclass=file permissive=0 - -Upstream-Status: Inappropriate [embedded specific] - -Signed-off-by: Yi Zhao <[email protected]> ---- - policy/modules/system/authlogin.te | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/policy/modules/system/authlogin.te b/policy/modules/system/authlogin.te -index 0fc5951e9..e999fa798 100644 ---- a/policy/modules/system/authlogin.te -+++ b/policy/modules/system/authlogin.te -@@ -100,7 +100,7 @@ allow chkpwd_t self:capability { dac_override setuid }; - dontaudit chkpwd_t self:capability sys_tty_config; - allow chkpwd_t self:process { getattr signal }; - --allow chkpwd_t shadow_t:file read_file_perms; -+allow chkpwd_t shadow_t:file { read_file_perms map }; - files_list_etc(chkpwd_t) - - kernel_read_crypto_sysctls(chkpwd_t) --- -2.17.1 -
recipes-security/refpolicy/refpolicy/0045-policy-modules-services-ssh-allow-ssh_keygen_t-to-re.patch new file +34 -0
@@ -0,0 +1,34 @@ +From be61411d6d7d3bb2c700ec24f42661ce9c728df4 Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Fri, 29 Jan 2021 10:32:00 +0800 +Subject: [PATCH] policy/modules/services/ssh: allow ssh_keygen_t to read + proc_t + +Fixes: +avc: denied { read } for pid=353 comm="ssh-keygen" name="filesystems" +dev="proc" ino=4026532078 scontext=system_u:system_r:ssh_keygen_t +tcontext=system_u:object_r:proc_t tclass=file permissive=0 + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/services/ssh.te | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/policy/modules/services/ssh.te b/policy/modules/services/ssh.te +index 238c45ed8..2bbf50e84 100644 +--- a/policy/modules/services/ssh.te ++++ b/policy/modules/services/ssh.te +@@ -330,6 +330,8 @@ allow ssh_keygen_t self:process { sigchld sigkill sigstop signull signal }; + + allow ssh_keygen_t self:unix_stream_socket create_stream_socket_perms; + ++allow ssh_keygen_t proc_t:file read_file_perms; ++ + allow ssh_keygen_t sshd_key_t:file manage_file_perms; + files_etc_filetrans(ssh_keygen_t, sshd_key_t, file) + +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0045-policy-modules-system-udev-allow-udevadm_t-to-search.patch deleted +0 -34
@@ -1,34 +0,0 @@ -From bd03c34ab3c193d6c21a6c0b951e89dd4e24eee6 Mon Sep 17 00:00:00 2001 -From: Yi Zhao <[email protected]> -Date: Fri, 19 Jun 2020 15:21:26 +0800 -Subject: [PATCH] policy/modules/system/udev: allow udevadm_t to search bin dir - -Fixes: -audit: type=1400 audit(1592894099.930:6): avc: denied { search } for -pid=153 comm="udevadm" name="bin" dev="vda" ino=13 -scontext=system_u:system_r:udevadm_t tcontext=system_u:object_r:bin_t -tclass=dir permissive=0 - -Upstream-Status: Inappropriate [embedded specific] - -Signed-off-by: Yi Zhao <[email protected]> ---- - policy/modules/system/udev.te | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/policy/modules/system/udev.te b/policy/modules/system/udev.te -index 52da11acd..3a4d7362c 100644 ---- a/policy/modules/system/udev.te -+++ b/policy/modules/system/udev.te -@@ -415,6 +415,8 @@ dev_read_urand(udevadm_t) - files_read_etc_files(udevadm_t) - files_read_usr_files(udevadm_t) - -+corecmd_search_bin(udevadm_t) -+ - init_list_runtime(udevadm_t) - init_read_state(udevadm_t) - --- -2.17.1 -
recipes-security/refpolicy/refpolicy/0046-policy-modules-services-ssh-make-respective-init-scr.patch renamed from recipes-security/refpolicy/refpolicy/0049-policy-modules-services-ssh-make-respective-init-scr.patch +2 -2
@@ -1,4 +1,4 @@ -From 878f3eb8e0716764ea4d42b996f58ea9072204fc Mon Sep 17 00:00:00 2001 +From 20e6395a7e8bce552fb0190dbc57d836d763fc18 Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Sun, 28 Jun 2020 16:14:45 +0800 Subject: [PATCH] policy/modules/services/ssh: make respective init scripts
@@ -14,7 +14,7 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/policy/modules/services/ssh.te b/policy/modules/services/ssh.te -index fefca0c20..db62eaa18 100644 +index 2bbf50e84..ad0a1b7ad 100644 --- a/policy/modules/services/ssh.te +++ b/policy/modules/services/ssh.te @@ -80,9 +80,7 @@ userdom_user_home_content(ssh_home_t)
recipes-security/refpolicy/refpolicy/0046-policy-modules-udev-do-not-audit-udevadm_t-to-read-w.patch deleted +0 -37
@@ -1,37 +0,0 @@ -From 8b5eb5b2e01a7686c43ba7b53cc76f465f9e8f56 Mon Sep 17 00:00:00 2001 -From: Yi Zhao <[email protected]> -Date: Tue, 30 Jun 2020 09:27:45 +0800 -Subject: [PATCH] policy/modules/udev: do not audit udevadm_t to read/write - /dev/console - -Fixes: -avc: denied { read write } for pid=162 comm="udevadm" -path="/dev/console" dev="devtmpfs" ino=10034 -scontext=system_u:system_r:udevadm_t:s0-s15:c0.c1023 -tcontext=system_u:object_r:console_device_t:s0 tclass=chr_file -permissive=0 -avc: denied { use } for pid=162 comm="udevadm" path="/dev/console" -dev="devtmpfs" ino=10034 -scontext=system_u:system_r:udevadm_t:s0-s15:c0.c1023 -tcontext=system_u:system_r:init_t:s0-s15:c0.c1023 tclass=fd permissive=0 - -Upstream-Status: Inappropriate [embedded specific] - -Signed-off-by: Yi Zhao <[email protected]> ---- - policy/modules/system/udev.te | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/policy/modules/system/udev.te b/policy/modules/system/udev.te -index 3a4d7362c..e483d63d3 100644 ---- a/policy/modules/system/udev.te -+++ b/policy/modules/system/udev.te -@@ -425,3 +425,5 @@ kernel_read_system_state(udevadm_t) - - seutil_read_file_contexts(udevadm_t) - -+init_dontaudit_use_fds(udevadm_t) -+term_dontaudit_use_console(udevadm_t) --- -2.17.1 -
recipes-security/refpolicy/refpolicy/0047-policy-modules-kernel-terminal-allow-loging-to-reset.patch renamed from recipes-security/refpolicy/refpolicy/0050-policy-modules-kernel-terminal-allow-loging-to-reset.patch +2 -2
@@ -1,4 +1,4 @@ -From fb900b71d7e1fa5c3bd997e6deadcaae2b65b05a Mon Sep 17 00:00:00 2001 +From f0249cb5802af7f9113786940d0c49e786f774ae Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Mon, 29 Jun 2020 14:27:02 +0800 Subject: [PATCH] policy/modules/kernel/terminal: allow loging to reset tty
@@ -12,7 +12,7 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/policy/modules/kernel/terminal.if b/policy/modules/kernel/terminal.if -index 8f9578dbc..3821ab9b0 100644 +index e8c0735eb..9ccecfa0d 100644 --- a/policy/modules/kernel/terminal.if +++ b/policy/modules/kernel/terminal.if @@ -119,9 +119,7 @@ interface(`term_user_tty',`
recipes-security/refpolicy/refpolicy/0047-policy-modules-services-rdisc-allow-rdisc_t-to-searc.patch deleted +0 -34
@@ -1,34 +0,0 @@ -From 6bcf62e310931e8be943520a7e1a5686f54a8e34 Mon Sep 17 00:00:00 2001 -From: Yi Zhao <[email protected]> -Date: Tue, 23 Jun 2020 15:44:43 +0800 -Subject: [PATCH] policy/modules/services/rdisc: allow rdisc_t to search sbin - dir - -Fixes: -avc: denied { search } for pid=225 comm="rdisc" name="sbin" dev="vda" -ino=1478 scontext=system_u:system_r:rdisc_t -tcontext=system_u:object_r:bin_t tclass=dir permissive=0 - -Upstream-Status: Inappropriate [embedded specific] - -Signed-off-by: Yi Zhao <[email protected]> ---- - policy/modules/services/rdisc.te | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/policy/modules/services/rdisc.te b/policy/modules/services/rdisc.te -index 82d54dbb7..1dd458f8e 100644 ---- a/policy/modules/services/rdisc.te -+++ b/policy/modules/services/rdisc.te -@@ -47,6 +47,8 @@ sysnet_read_config(rdisc_t) - - userdom_dontaudit_use_unpriv_user_fds(rdisc_t) - -+corecmd_search_bin(rdisc_t) -+ - optional_policy(` - seutil_sigchld_newrole(rdisc_t) - ') --- -2.17.1 -
recipes-security/refpolicy/refpolicy/0048-policy-modules-system-logging-fix-auditd-startup-fai.patch deleted +0 -52
52 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0048-policy-modules-system-selinuxutil-allow-semanage_t-t.patch renamed from recipes-security/refpolicy/refpolicy/0051-policy-modules-system-selinuxutil-allow-semanage_t-t.patch +3 -3
@@ -1,4 +1,4 @@ -From 2c8464254adf0b2635e5abf4ccc4473c96fa0006 Mon Sep 17 00:00:00 2001 +From 74f611538d63cdf4157e6b5f4b982cafe0378b9a Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Mon, 29 Jun 2020 14:30:58 +0800 Subject: [PATCH] policy/modules/system/selinuxutil: allow semanage_t to read
@@ -12,10 +12,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/policy/modules/system/selinuxutil.te b/policy/modules/system/selinuxutil.te -index fad28f179..09fef149b 100644 +index 8f8f42ec7..a505b3987 100644 --- a/policy/modules/system/selinuxutil.te +++ b/policy/modules/system/selinuxutil.te -@@ -544,10 +544,8 @@ userdom_map_user_home_content_files(semanage_t) +@@ -549,10 +549,8 @@ userdom_map_user_home_content_files(semanage_t) userdom_read_user_tmp_files(semanage_t) userdom_map_user_tmp_files(semanage_t)
recipes-security/refpolicy/refpolicy/0049-policy-modules-system-systemd-enable-support-for-sys.patch renamed from recipes-security/refpolicy/refpolicy/0054-policy-modules-system-systemd-enable-support-for-sys.patch +5 -5
@@ -1,4 +1,4 @@ -From 9eee952a306000eaa5e92b578f3caa35b6a35699 Mon Sep 17 00:00:00 2001 +From c2a6ad9b4eee990b79175ec1866cfe20b7c61ef3 Mon Sep 17 00:00:00 2001 From: Wenzong Fan <[email protected]> Date: Thu, 4 Feb 2016 06:03:19 -0500 Subject: [PATCH] policy/modules/system/systemd: enable support for
@@ -36,10 +36,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te -index 136990d08..c7fe51b62 100644 +index 2e08efd19..7da836136 100644 --- a/policy/modules/system/systemd.te +++ b/policy/modules/system/systemd.te -@@ -10,7 +10,7 @@ policy_module(systemd, 1.9.14) +@@ -10,7 +10,7 @@ policy_module(systemd, 1.11.1) ## Enable support for systemd-tmpfiles to manage all non-security files. ## </p> ## </desc>
@@ -48,10 +48,10 @@ index 136990d08..c7fe51b62 100644 ## <desc> ## <p> -@@ -1196,6 +1196,10 @@ files_relabel_var_lib_dirs(systemd_tmpfiles_t) - files_relabelfrom_home(systemd_tmpfiles_t) +@@ -1332,6 +1332,10 @@ files_relabelfrom_home(systemd_tmpfiles_t) files_relabelto_home(systemd_tmpfiles_t) files_relabelto_etc_dirs(systemd_tmpfiles_t) + files_setattr_lock_dirs(systemd_tmpfiles_t) + +files_manage_non_auth_files(systemd_tmpfiles_t) +files_relabel_non_auth_files(systemd_tmpfiles_t)
recipes-security/refpolicy/refpolicy/0050-policy-modules-system-systemd-fix-systemd-resolved-s.patch new file +69 -0
69 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0051-policy-modules-system-init-add-capability2-bpf-and-p.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 2d932ba7140d91cf2a8386b0240f4f1014124746 Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Wed, 3 Feb 2021 09:47:59 +0800 +Subject: [PATCH] policy/modules/system/init: add capability2 bpf and perfmon + for init_t + +Fixes: +avc: denied { bpf } for pid=1 comm="systemd" capability=39 +scontext=system_u:system_r:init_t tcontext=system_u:system_r:init_t +tclass=capability2 permissive=0 +avc: denied { perfmon } for pid=1 comm="systemd" capability=38 +scontext=system_u:system_r:init_t tcontext=system_u:system_r:init_t +tclass=capability2 permissive=0 + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[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 e82177938..b7d494398 100644 +--- a/policy/modules/system/init.te ++++ b/policy/modules/system/init.te +@@ -134,7 +134,7 @@ ifdef(`enable_mls',` + + # Use capabilities. old rule: + allow init_t self:capability { chown dac_override dac_read_search fowner fsetid kill setgid setuid setpcap linux_immutable net_bind_service net_broadcast net_admin net_raw ipc_lock ipc_owner sys_rawio sys_chroot sys_ptrace sys_pacct sys_admin sys_boot sys_nice sys_resource sys_time sys_tty_config mknod lease audit_write audit_control setfcap }; +-allow init_t self:capability2 { wake_alarm block_suspend }; ++allow init_t self:capability2 { wake_alarm block_suspend bpf perfmon }; + # is ~sys_module really needed? observed: + # sys_boot + # sys_tty_config +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0052-policy-modules-system-sysnetwork-allow-ifconfig_t-to.patch deleted +0 -35
@@ -1,35 +0,0 @@ -From a3e4135c543be8d3a054e6f74629240370d111ed Mon Sep 17 00:00:00 2001 -From: Yi Zhao <[email protected]> -Date: Mon, 27 May 2019 15:55:19 +0800 -Subject: [PATCH] policy/modules/system/sysnetwork: allow ifconfig_t to read - dhcp client state files - -Fixes: -type=AVC msg=audit(1558942740.789:50): avc: denied { read } for -pid=221 comm="ip" path="/var/lib/dhcp/dhclient.leases" dev="vda" -ino=29858 scontext=system_u:system_r:ifconfig_t -tcontext=system_u:object_r:dhcpc_state_t tclass=file permissive=1 - -Upstream-Status: Inappropriate [embedded specific] - -Signed-off-by: Yi Zhao <[email protected]> ---- - policy/modules/system/sysnetwork.te | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/policy/modules/system/sysnetwork.te b/policy/modules/system/sysnetwork.te -index bbdbcdc7e..a77738924 100644 ---- a/policy/modules/system/sysnetwork.te -+++ b/policy/modules/system/sysnetwork.te -@@ -319,6 +319,8 @@ kernel_request_load_module(ifconfig_t) - kernel_search_network_sysctl(ifconfig_t) - kernel_rw_net_sysctls(ifconfig_t) - -+sysnet_read_dhcpc_state(ifconfig_t) -+ - corenet_rw_tun_tap_dev(ifconfig_t) - - dev_read_sysfs(ifconfig_t) --- -2.17.1 -
recipes-security/refpolicy/refpolicy/0052-policy-modules-system-systemd-allow-systemd_logind_t.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 5db5b20728dff6c5e75dc07ea4feb6c507661b62 Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Wed, 8 Jul 2020 13:53:28 +0800 +Subject: [PATCH] policy/modules/system/systemd: allow systemd_logind_t to + watch initrc_runtime_t + +Fixes: +avc: denied { watch } for pid=200 comm="systemd-logind" +path="/run/utmp" dev="tmpfs" ino=12766 +scontext=system_u:system_r:systemd_logind_t:s0-s15:c0.c1023 +tcontext=system_u:object_r:initrc_runtime_t:s0 tclass=file permissive=0 + +systemd-logind[200]: Failed to create inotify watch on /var/run/utmp, ignoring: Permission denied + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/system/systemd.te | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te +index 0411729ea..2d9d7d331 100644 +--- a/policy/modules/system/systemd.te ++++ b/policy/modules/system/systemd.te +@@ -651,6 +651,8 @@ init_stop_all_units(systemd_logind_t) + init_start_system(systemd_logind_t) + init_stop_system(systemd_logind_t) + ++allow systemd_logind_t initrc_runtime_t:file watch; ++ + locallogin_read_state(systemd_logind_t) + + seutil_libselinux_linked(systemd_logind_t) +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0053-policy-modules-services-ntp-allow-ntpd_t-to-watch-sy.patch deleted +0 -55
55 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0053-policy-modules-system-logging-set-label-devlog_t-to-.patch new file +86 -0
86 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0054-policy-modules-system-systemd-support-systemd-user.patch new file +189 -0
189 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0055-policy-modules-system-logging-fix-systemd-journald-s.patch deleted +0 -74
74 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0055-policy-modules-system-systemd-allow-systemd-generato.patch new file +69 -0
69 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0056-policy-modules-system-systemd-allow-systemd_backligh.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 8b0bb1e349e2ea021acec1639be0802ac4d7d0c2 Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Thu, 4 Feb 2021 15:13:50 +0800 +Subject: [PATCH] policy/modules/system/systemd: allow systemd_backlight_t to + read kernel sysctl + +Fixes: +avc: denied { search } for pid=354 comm="systemd-backlig" name="sys" +dev="proc" ino=4026531854 +scontext=system_u:system_r:systemd_backlight_t:s0-s15:c0.c1023 +tcontext=system_u:object_r:sysctl_t:s0 tclass=dir permissive=0 + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/system/systemd.te | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te +index c1111198d..7d2ba2796 100644 +--- a/policy/modules/system/systemd.te ++++ b/policy/modules/system/systemd.te +@@ -324,6 +324,8 @@ udev_read_runtime_files(systemd_backlight_t) + + files_search_var_lib(systemd_backlight_t) + ++kernel_read_kernel_sysctls(systemd_backlight_t) ++ + ####################################### + # + # Binfmt local policy +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0057-policy-modules-system-logging-fix-systemd-journald-s.patch new file +47 -0
47 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0057-policy-modules-system-systemd-add-capability-mknod-f.patch deleted +0 -35
@@ -1,35 +0,0 @@ -From 4782b27839064438f103b77c31e5db75189025a8 Mon Sep 17 00:00:00 2001 -From: Yi Zhao <[email protected]> -Date: Thu, 18 Jun 2020 16:14:45 +0800 -Subject: [PATCH] policy/modules/system/systemd: add capability mknod for - systemd_user_runtime_dir_t - -Fixes: -avc: denied { mknod } for pid=266 comm="systemd-user-ru" capability=27 -scontext=system_u:system_r:systemd_user_runtime_dir_t:s0-s15:c0.c1023 -tcontext=system_u:system_r:systemd_user_runtime_dir_t:s0-s15:c0.c1023 -tclass=capability permissive=0 - -Upstream-Status: Inappropriate [embedded specific] - -Signed-off-by: Yi Zhao <[email protected]> ---- - policy/modules/system/systemd.te | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te -index c7fe51b62..f82031a09 100644 ---- a/policy/modules/system/systemd.te -+++ b/policy/modules/system/systemd.te -@@ -1372,7 +1372,7 @@ seutil_libselinux_linked(systemd_user_session_type) - # systemd-user-runtime-dir local policy - # - --allow systemd_user_runtime_dir_t self:capability { fowner chown sys_admin dac_read_search dac_override }; -+allow systemd_user_runtime_dir_t self:capability { fowner chown sys_admin dac_read_search dac_override mknod }; - allow systemd_user_runtime_dir_t self:process setfscreate; - - domain_obj_id_change_exemption(systemd_user_runtime_dir_t) --- -2.17.1 -
recipes-security/refpolicy/refpolicy/0058-policy-modules-services-cron-allow-crond_t-to-search.patch new file +34 -0
@@ -0,0 +1,34 @@ +From e8ff96c9bb98305d1b50fccce67025df3ebbf184 Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Thu, 23 May 2019 15:52:17 +0800 +Subject: [PATCH] policy/modules/services/cron: allow crond_t to search + logwatch_cache_t + +Fixes: +avc: denied { search } for pid=234 comm="crond" name="logcheck" +dev="vda" ino=29080 scontext=system_u:system_r:crond_t:s0-s15:c0.c1023 +tcontext=system_u:object_r:logwatch_cache_t:s0 tclass=dir permissive=0 + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/services/cron.te | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/policy/modules/services/cron.te b/policy/modules/services/cron.te +index 2902820b0..36eb33060 100644 +--- a/policy/modules/services/cron.te ++++ b/policy/modules/services/cron.te +@@ -318,6 +318,8 @@ miscfiles_read_localization(crond_t) + + userdom_list_user_home_dirs(crond_t) + ++logwatch_search_cache_dir(crond_t) ++ + tunable_policy(`cron_userdomain_transition',` + dontaudit crond_t cronjob_t:process transition; + dontaudit crond_t cronjob_t:fd use; +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0058-policy-modules-system-systemd-systemd-gpt-auto-gener.patch deleted +0 -35
@@ -1,35 +0,0 @@ -From 0607a935759fe3143f473d4a444f92e01aaa2a45 Mon Sep 17 00:00:00 2001 -From: Yi Zhao <[email protected]> -Date: Tue, 23 Jun 2020 14:52:43 +0800 -Subject: [PATCH] policy/modules/system/systemd: systemd-gpt-auto-generator: do - not audit attempts to read or write unallocated ttys - -Fixes: -avc: denied { read write } for pid=87 comm="systemd-getty-g" -name="ttyS0" dev="devtmpfs" ino=10128 -scontext=system_u:system_r:systemd_generator_t -tcontext=system_u:object_r:tty_device_t tclass=chr_file permissive=0 - -Upstream-Status: Inappropriate [embedded specific] - -Signed-off-by: Yi Zhao <[email protected]> ---- - policy/modules/system/systemd.te | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te -index f82031a09..fb8d4960f 100644 ---- a/policy/modules/system/systemd.te -+++ b/policy/modules/system/systemd.te -@@ -400,6 +400,8 @@ storage_raw_read_fixed_disk(systemd_generator_t) - - systemd_log_parse_environment(systemd_generator_t) - -+term_dontaudit_use_unallocated_ttys(systemd_generator_t) -+ - optional_policy(` - fstools_exec(systemd_generator_t) - ') --- -2.17.1 -
recipes-security/refpolicy/refpolicy/0059-policy-modules-services-crontab-allow-sysadm_r-to-ru.patch new file +46 -0
46 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0060-policy-modules-system-sysnetwork-support-priviledge-.patch new file +120 -0
120 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0061-policy-modules-services-acpi-allow-acpid-to-watch-th.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 7418cd97f2c92579bd4d18cbd9063f811ff9a81e Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Tue, 9 Feb 2021 16:42:36 +0800 +Subject: [PATCH] policy/modules/services/acpi: allow acpid to watch the + directories in /dev + +Fixes: +acpid: inotify_add_watch() failed: Permission denied (13) + +avc: denied { watch } for pid=269 comm="acpid" path="/dev/input" +dev="devtmpfs" ino=35 scontext=system_u:system_r:acpid_t:s0-s15:c0.c1023 +tcontext=system_u:object_r:device_t:s0 tclass=dir permissive=0 + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/services/acpi.te | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/policy/modules/services/acpi.te b/policy/modules/services/acpi.te +index 69f1dab4a..5c22adecd 100644 +--- a/policy/modules/services/acpi.te ++++ b/policy/modules/services/acpi.te +@@ -105,6 +105,7 @@ dev_rw_acpi_bios(acpid_t) + dev_rw_sysfs(acpid_t) + dev_dontaudit_getattr_all_chr_files(acpid_t) + dev_dontaudit_getattr_all_blk_files(acpid_t) ++dev_watch_dev_dirs(acpid_t) + + files_exec_etc_files(acpid_t) + files_read_etc_runtime_files(acpid_t) +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0062-policy-modules-system-setrans-allow-setrans-to-acces.patch renamed from recipes-security/refpolicy/refpolicy/0063-policy-modules-system-setrans-allow-setrans-to-acces.patch +4 -15
@@ -1,4 +1,4 @@ -From fc77db62ce54a33ee04bfc3e4c68b9cbed7251c6 Mon Sep 17 00:00:00 2001 +From 84c69d220ffdd039b88a34f9afc127274a985541 Mon Sep 17 00:00:00 2001 From: Roy Li <[email protected]> Date: Sat, 22 Feb 2014 13:35:38 +0800 Subject: [PATCH] policy/modules/system/setrans: allow setrans to access
@@ -14,18 +14,16 @@ scontext=root:sysadm_r:sysadm_t:s0-s15:c0.c1023 tcontext=system_u:system_r:setrans_t:s15:c0.c1023 tclass=unix_stream_socket -3. allow setrans_t use fd at any level - Upstream-Status: Inappropriate [embedded specific] Signed-off-by: Roy Li <[email protected]> Signed-off-by: Yi Zhao <[email protected]> --- - policy/modules/system/setrans.te | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) + policy/modules/system/setrans.te | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/policy/modules/system/setrans.te b/policy/modules/system/setrans.te -index 5f020ef78..7f618f212 100644 +index 25aadfc5f..78bd6e2eb 100644 --- a/policy/modules/system/setrans.te +++ b/policy/modules/system/setrans.te @@ -23,9 +23,7 @@ mls_trusted_object(setrans_runtime_t)
@@ -39,15 +37,6 @@ index 5f020ef78..7f618f212 100644 ifdef(`enable_mcs',` init_ranged_daemon_domain(setrans_t, setrans_exec_t, s0 - mcs_systemhigh) -@@ -73,6 +71,8 @@ mls_net_receive_all_levels(setrans_t) - mls_socket_write_all_levels(setrans_t) - mls_process_read_all_levels(setrans_t) - mls_socket_read_all_levels(setrans_t) -+mls_fd_use_all_levels(setrans_t) -+mls_trusted_object(setrans_t) - - selinux_compute_access_vector(setrans_t) - -- 2.17.1
recipes-security/refpolicy/refpolicy/0063-policy-modules-system-modutils-allow-kmod_t-to-write.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 7002b4e33b949b474a0ce0b78a7f2e180dbbc9bb Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Tue, 9 Feb 2021 17:31:55 +0800 +Subject: [PATCH] policy/modules/system/modutils: allow kmod_t to write keys + +Fixes: +kernel: cfg80211: Problem loading in-kernel X.509 certificate (-13) + +avc: denied { write } for pid=219 comm="modprobe" +scontext=system_u:system_r:kmod_t tcontext=system_u:system_r:kmod_t +tclass=key permissive=0 + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/system/modutils.te | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/policy/modules/system/modutils.te b/policy/modules/system/modutils.te +index ee249ae04..b8769bc02 100644 +--- a/policy/modules/system/modutils.te ++++ b/policy/modules/system/modutils.te +@@ -43,6 +43,8 @@ allow kmod_t self:rawip_socket create_socket_perms; + + allow kmod_t self:lockdown confidentiality; + ++allow kmod_t self:key write; ++ + # Read module config and dependency information + list_dirs_pattern(kmod_t, modules_conf_t, modules_conf_t) + read_files_pattern(kmod_t, modules_conf_t, modules_conf_t) +-- +2.17.1 +
recipes-security/refpolicy/refpolicy/0064-policy-modules-roles-sysadm-allow-sysadm_t-to-watch-.patch renamed from recipes-security/refpolicy/refpolicy/0056-policy-modules-roles-sysadm-allow-sysadm_t-to-watch-.patch +7 -10
@@ -1,4 +1,4 @@ -From 7fd830d6b2c60dcf5b8ee0b2ff94436de63d5b8c Mon Sep 17 00:00:00 2001 +From 291d3329c280b6b8b70fcc3092ac4d3399936825 Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Mon, 29 Jun 2020 10:32:25 +0800 Subject: [PATCH] policy/modules/roles/sysadm: allow sysadm_t to watch runtime
@@ -11,21 +11,18 @@ Upstream-Status: Inappropriate [embedded specific] Signed-off-by: Yi Zhao <[email protected]> --- - policy/modules/roles/sysadm.te | 6 ++++++ - 1 file changed, 6 insertions(+) + policy/modules/roles/sysadm.te | 3 +++ + 1 file changed, 3 insertions(+) diff --git a/policy/modules/roles/sysadm.te b/policy/modules/roles/sysadm.te -index fc0945fe4..07b9faf30 100644 +index 129e94229..a4abaefe4 100644 --- a/policy/modules/roles/sysadm.te +++ b/policy/modules/roles/sysadm.te -@@ -83,6 +83,12 @@ ifdef(`init_systemd',` - # Allow sysadm to resolve the username of dynamic users by calling - # LookupDynamicUserByUID on org.freedesktop.systemd1. +@@ -83,6 +83,9 @@ ifdef(`init_systemd',` init_dbus_chat(sysadm_t) + + systemd_sysadm_user(sysadm_t) + -+ fs_watch_cgroup_files(sysadm_t) -+ files_watch_etc_symlinks(sysadm_t) -+ mount_watch_runtime_dirs(sysadm_t) + systemd_filetrans_passwd_runtime_dirs(sysadm_t) + allow sysadm_t systemd_passwd_runtime_t:dir watch; ')
recipes-security/refpolicy/refpolicy/0065-policy-modules-system-selinux-allow-setfiles_t-to-re.patch new file +44 -0
44 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0066-policy-modules-system-mount-make-mount_t-domain-MLS-.patch renamed from recipes-security/refpolicy/refpolicy/0062-policy-modules-system-mount-make-mount_t-domain-MLS-.patch +3 -3
@@ -1,4 +1,4 @@ -From 7789f70ee3506f11b6bc1954469915214bcb9c58 Mon Sep 17 00:00:00 2001 +From 0d69354886e0b635dd069876b9d53890a5a9cab1 Mon Sep 17 00:00:00 2001 From: Wenzong Fan <[email protected]> Date: Sat, 15 Feb 2014 04:22:47 -0500 Subject: [PATCH] policy/modules/system/mount: make mount_t domain MLS trusted
@@ -19,10 +19,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 2 insertions(+) diff --git a/policy/modules/system/mount.te b/policy/modules/system/mount.te -index 282eb3ada..5bb4fe631 100644 +index b628c3b2f..f55457bb0 100644 --- a/policy/modules/system/mount.te +++ b/policy/modules/system/mount.te -@@ -116,6 +116,8 @@ fs_dontaudit_write_tmpfs_dirs(mount_t) +@@ -116,6 +116,8 @@ fs_dontaudit_write_all_image_files(mount_t) mls_file_read_all_levels(mount_t) mls_file_write_all_levels(mount_t)
recipes-security/refpolicy/refpolicy/0067-policy-modules-roles-sysadm-MLS-sysadm-rw-to-clearan.patch renamed from recipes-security/refpolicy/refpolicy/0061-policy-modules-roles-sysadm-MLS-sysadm-rw-to-clearan.patch +2 -2
@@ -1,4 +1,4 @@ -From 0404c4ad3f92408edcdbf46ac0665bf09d4b2516 Mon Sep 17 00:00:00 2001 +From b83147aa97fe6f51c997256539dff827e3a44edc Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Mon, 28 Jan 2019 14:05:18 +0800 Subject: [PATCH] policy/modules/roles/sysadm: MLS - sysadm rw to clearance
@@ -23,7 +23,7 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 3 insertions(+) diff --git a/policy/modules/roles/sysadm.te b/policy/modules/roles/sysadm.te -index 07b9faf30..ac5239d83 100644 +index a4abaefe4..aaae73fc3 100644 --- a/policy/modules/roles/sysadm.te +++ b/policy/modules/roles/sysadm.te @@ -42,6 +42,9 @@ dev_read_kmsg(sysadm_t)
recipes-security/refpolicy/refpolicy/0068-policy-modules-services-rpc-make-nfsd_t-domain-MLS-t.patch renamed from recipes-security/refpolicy/refpolicy/0059-policy-modules-services-rpc-fix-policy-for-nfsserver.patch +8 -23
@@ -1,8 +1,8 @@ -From fbf98576f32e33e55f3babeb9db255a459fad711 Mon Sep 17 00:00:00 2001 +From 7b8290ba52052f90b6221c1b3ccb8f7536f4c41e Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Fri, 23 Aug 2013 12:01:53 +0800 -Subject: [PATCH] policy/modules/services/rpc: fix policy for nfsserver to - mount nfsd_fs_t +Subject: [PATCH] policy/modules/services/rpc: make nfsd_t domain MLS trusted + for reading from files up to its clearance Upstream-Status: Inappropriate [embedded specific]
@@ -11,13 +11,12 @@ Signed-off-by: Joe MacDonald <[email protected]> Signed-off-by: Yi Zhao <[email protected]> --- policy/modules/kernel/kernel.te | 2 ++ - policy/modules/services/rpc.fc | 2 ++ policy/modules/services/rpc.te | 2 ++ policy/modules/services/rpcbind.te | 6 ++++++ - 4 files changed, 12 insertions(+) + 3 files changed, 10 insertions(+) diff --git a/policy/modules/kernel/kernel.te b/policy/modules/kernel/kernel.te -index c8218bf8c..44c031a39 100644 +index 5ce6e041b..c1557ddb2 100644 --- a/policy/modules/kernel/kernel.te +++ b/policy/modules/kernel/kernel.te @@ -356,6 +356,8 @@ mls_process_read_all_levels(kernel_t)
@@ -29,25 +28,11 @@ index c8218bf8c..44c031a39 100644 ifdef(`distro_redhat',` # Bugzilla 222337 -diff --git a/policy/modules/services/rpc.fc b/policy/modules/services/rpc.fc -index 6d3c9b68b..75999a57c 100644 ---- a/policy/modules/services/rpc.fc -+++ b/policy/modules/services/rpc.fc -@@ -1,7 +1,9 @@ - /etc/exports -- gen_context(system_u:object_r:exports_t,s0) - - /etc/rc\.d/init\.d/nfs -- gen_context(system_u:object_r:nfsd_initrc_exec_t,s0) -+/etc/rc\.d/init\.d/nfsserver -- gen_context(system_u:object_r:nfsd_initrc_exec_t,s0) - /etc/rc\.d/init\.d/nfslock -- gen_context(system_u:object_r:rpcd_initrc_exec_t,s0) -+/etc/rc\.d/init\.d/nfscommon -- gen_context(system_u:object_r:rpcd_initrc_exec_t,s0) - /etc/rc\.d/init\.d/rpcidmapd -- gen_context(system_u:object_r:rpcd_initrc_exec_t,s0) - - /usr/bin/rpc\..* -- gen_context(system_u:object_r:rpcd_exec_t,s0) diff --git a/policy/modules/services/rpc.te b/policy/modules/services/rpc.te -index c06ff803f..7c0b37ddc 100644 +index 87b6b4561..9618df04e 100644 --- a/policy/modules/services/rpc.te +++ b/policy/modules/services/rpc.te -@@ -250,6 +250,8 @@ storage_raw_read_removable_device(nfsd_t) +@@ -341,6 +341,8 @@ storage_raw_read_removable_device(nfsd_t) miscfiles_read_public_files(nfsd_t)
@@ -57,7 +42,7 @@ index c06ff803f..7c0b37ddc 100644 miscfiles_manage_public_files(nfsd_t) ') diff --git a/policy/modules/services/rpcbind.te b/policy/modules/services/rpcbind.te -index 4f110773a..3cc85a8d5 100644 +index 8972980fa..5c89a1343 100644 --- a/policy/modules/services/rpcbind.te +++ b/policy/modules/services/rpcbind.te @@ -73,6 +73,12 @@ logging_send_syslog_msg(rpcbind_t)
recipes-security/refpolicy/refpolicy/0069-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch renamed from recipes-security/refpolicy/refpolicy/0064-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch +2 -2
@@ -1,4 +1,4 @@ -From a51cec2a8d8f47b7a06c59b8af73d96edcc2a993 Mon Sep 17 00:00:00 2001 +From bc6872d164d09355ee82dc97c4e3d99a6b6669b3 Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Tue, 30 Jun 2020 10:18:20 +0800 Subject: [PATCH] policy/modules/admin/dmesg: make dmesg_t MLS trusted reading
@@ -19,7 +19,7 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 2 insertions(+) diff --git a/policy/modules/admin/dmesg.te b/policy/modules/admin/dmesg.te -index 5bbe71b26..228baecd8 100644 +index 0f2835575..9f4f11397 100644 --- a/policy/modules/admin/dmesg.te +++ b/policy/modules/admin/dmesg.te @@ -51,6 +51,8 @@ miscfiles_read_localization(dmesg_t)
recipes-security/refpolicy/refpolicy/0070-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch renamed from recipes-security/refpolicy/refpolicy/0065-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch +2 -2
@@ -1,4 +1,4 @@ -From fdc58fd666915aba89cb07fe6e7eb43a7fbec2ec Mon Sep 17 00:00:00 2001 +From e7b9af24946f5f76e8e6831bfeb444c0153298be Mon Sep 17 00:00:00 2001 From: Wenzong Fan <[email protected]> Date: Fri, 13 Oct 2017 07:20:40 +0000 Subject: [PATCH] policy/modules/kernel/kernel: make kernel_t MLS trusted for
@@ -59,7 +59,7 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 3 insertions(+) diff --git a/policy/modules/kernel/kernel.te b/policy/modules/kernel/kernel.te -index 44c031a39..4dffaef76 100644 +index c1557ddb2..8f67c6ec9 100644 --- a/policy/modules/kernel/kernel.te +++ b/policy/modules/kernel/kernel.te @@ -359,6 +359,9 @@ mls_file_read_all_levels(kernel_t)
recipes-security/refpolicy/refpolicy/0071-policy-modules-system-init-make-init_t-MLS-trusted-f.patch renamed from recipes-security/refpolicy/refpolicy/0066-policy-modules-system-init-make-init_t-MLS-trusted-f.patch +3 -3
@@ -1,4 +1,4 @@ -From 3aa784896315d269be4f43a281d59ad7671b2d07 Mon Sep 17 00:00:00 2001 +From ee3e2bbaf3b94902aadebbb085c7e86b8d074e98 Mon Sep 17 00:00:00 2001 From: Wenzong Fan <[email protected]> Date: Fri, 15 Jan 2016 03:47:05 -0500 Subject: [PATCH] policy/modules/system/init: make init_t MLS trusted for
@@ -27,10 +27,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 4 insertions(+) diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te -index fe3fcf011..8e85dde72 100644 +index b7d494398..b6750015e 100644 --- a/policy/modules/system/init.te +++ b/policy/modules/system/init.te -@@ -208,6 +208,10 @@ mls_process_write_all_levels(init_t) +@@ -210,6 +210,10 @@ mls_process_write_all_levels(init_t) mls_fd_use_all_levels(init_t) mls_process_set_level(init_t)
recipes-security/refpolicy/refpolicy/0072-policy-modules-system-systemd-make-systemd-tmpfiles_.patch renamed from recipes-security/refpolicy/refpolicy/0067-policy-modules-system-systemd-make-systemd-tmpfiles_.patch +3 -3
@@ -1,4 +1,4 @@ -From fb69dde2c8783e0602dcce3509b69ded9e6331a2 Mon Sep 17 00:00:00 2001 +From 8cdcca3702d69ed5f3aa9ce9d769ad483f977094 Mon Sep 17 00:00:00 2001 From: Wenzong Fan <[email protected]> Date: Thu, 4 Feb 2016 06:03:19 -0500 Subject: [PATCH] policy/modules/system/systemd: make systemd-tmpfiles_t domain
@@ -43,10 +43,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 5 insertions(+) diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te -index fb8d4960f..57f4dc40d 100644 +index 7d2ba2796..c50a2ba64 100644 --- a/policy/modules/system/systemd.te +++ b/policy/modules/system/systemd.te -@@ -1249,6 +1249,11 @@ sysnet_relabel_config(systemd_tmpfiles_t) +@@ -1396,6 +1396,11 @@ sysnet_relabel_config(systemd_tmpfiles_t) systemd_log_parse_environment(systemd_tmpfiles_t)
recipes-security/refpolicy/refpolicy/0073-policy-modules-system-logging-add-the-syslogd_t-to-t.patch renamed from recipes-security/refpolicy/refpolicy/0068-policy-modules-system-logging-add-the-syslogd_t-to-t.patch +4 -4
@@ -1,4 +1,4 @@ -From f5a6c667186850ba8c5057742195c46d9f7ff8cf Mon Sep 17 00:00:00 2001 +From 4e7b0040ff558f2d69c8b9a30e73223acb20f35f Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Thu, 22 Aug 2013 13:37:23 +0800 Subject: [PATCH] policy/modules/system/logging: add the syslogd_t to trusted
@@ -18,11 +18,11 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 4 insertions(+) diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te -index 1d45a5fa9..eec0560d1 100644 +index 62caa7a56..e608327fe 100644 --- a/policy/modules/system/logging.te +++ b/policy/modules/system/logging.te -@@ -501,6 +501,10 @@ fs_getattr_all_fs(syslogd_t) - fs_search_auto_mountpoints(syslogd_t) +@@ -495,6 +495,10 @@ fs_search_auto_mountpoints(syslogd_t) + fs_search_tmpfs(syslogd_t) mls_file_write_all_levels(syslogd_t) # Need to be able to write to /var/run/ and /var/log directories +mls_file_read_all_levels(syslogd_t)
recipes-security/refpolicy/refpolicy/0074-policy-modules-system-init-make-init_t-MLS-trusted-f.patch renamed from recipes-security/refpolicy/refpolicy/0069-policy-modules-system-init-make-init_t-MLS-trusted-f.patch +3 -3
@@ -1,4 +1,4 @@ -From b74b8052fd654d6a242bf3d8773a42f376d08fed Mon Sep 17 00:00:00 2001 +From bbb405ac6270ef945db21cfddda63d283ee5d8af Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Tue, 28 May 2019 16:41:37 +0800 Subject: [PATCH] policy/modules/system/init: make init_t MLS trusted for
@@ -17,10 +17,10 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+) diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te -index 8e85dde72..453ae9b6b 100644 +index b6750015e..962c675b0 100644 --- a/policy/modules/system/init.te +++ b/policy/modules/system/init.te
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0075-policy-modules-system-init-all-init_t-to-read-any-le.patch renamed from recipes-security/refpolicy/refpolicy/0070-policy-modules-system-init-all-init_t-to-read-any-le.patch +3 -3
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0075-policy-modules-system-systemd-systemd-networkd-make-.patch deleted +0 -36
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0076-policy-modules-system-logging-allow-auditd_t-to-writ.patch renamed from recipes-security/refpolicy/refpolicy/0071-policy-modules-system-logging-allow-auditd_t-to-writ.patch +3 -3
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0076-policy-modules-system-systemd-systemd-resolved-make-.patch deleted +0 -40
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0077-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch renamed from recipes-security/refpolicy/refpolicy/0072-policy-modules-kernel-kernel-make-kernel_t-MLS-trust.patch +2 -2
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 deleted +0 -36
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0078-policy-modules-system-systemd-make-systemd-logind-do.patch renamed from recipes-security/refpolicy/refpolicy/0073-policy-modules-system-systemd-make-systemd-logind-do.patch +3 -3
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 deleted +0 -70
70 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0079-policy-modules-system-systemd-systemd-user-sessions-.patch renamed from recipes-security/refpolicy/refpolicy/0074-policy-modules-system-systemd-systemd-user-sessions-.patch +3 -3
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0080-policy-modules-system-systemd-systemd-make-systemd_-.patch new file +162 -0
162 lines not on this page · raw message
recipes-security/refpolicy/refpolicy/0081-policy-modules-services-ntp-make-nptd_t-MLS-trusted-.patch renamed from recipes-security/refpolicy/refpolicy/0079-policy-modules-services-ntp-make-nptd_t-MLS-trusted-.patch +3 -3
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0082-policy-modules-system-setrans-allow-setrans_t-use-fd.patch new file +30 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0083-policy-modules-services-acpi-make-acpid_t-domain-MLS.patch new file +35 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0084-policy-modules-services-avahi-make-avahi_t-MLS-trust.patch renamed from recipes-security/refpolicy/refpolicy/0080-policy-modules-services-avahi-make-avahi_t-MLS-trust.patch +2 -2
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0085-policy-modules-services-bluetooth-make-bluetooth_t-d.patch new file +36 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0086-policy-modules-system-sysnetwork-make-dhcpc_t-domain.patch new file +38 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0087-policy-modules-services-inetd-make-inetd_t-domain-ML.patch new file +36 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0088-policy-modules-services-bind-make-named_t-domain-MLS.patch new file +38 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0089-policy-modules-services-rpc-make-rpcd_t-MLS-trusted-.patch renamed from recipes-security/refpolicy/refpolicy/0060-policy-modules-services-rpc-make-rpcd_t-MLS-trusted-.patch +3 -3
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy/0090-policy-modules-system-systemd-make-_systemd_t-MLS-tr.patch new file +42 -0
42 lines not on this page · raw message
recipes-security/refpolicy/refpolicy_common.inc +61 -52
113 lines not on this page · raw message
recipes-security/refpolicy/refpolicy_git.inc +2 -2
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.25.1
Part of the diff is not shown here. View the raw message.