refpolicy: upgrade 2.20170204 -> 2.20180701
PATCH 1/2 refpolicy: upgrade 2.20170204 -> 2.20180701
* Update SRC_URI
* Rebase patches
* Remove the following patches since the issues had been fixed upstream:
poky-fc-update-alternatives_sysklogd.patch poky-fc-mta.patch
poky-fc-netutils.patch
poky-fc-nscd.patch
poky-fc-udevd.patch
poky-fc-ftpwho-dir.patch
poky-fc-corecommands.patch
* Add the following patches to fix file contexts and other issues:
poky-fc-e2fsprogs.patch
poky-fc-nologin.patch poky-fc-fix-real-path_brctl.patch poky-fc-openldap.patch
poky-fc-kerberos.patch poky-policy-kernel_t-mls-trusted-for-lowering-file-l.patch poky-policy-kernel_t-mls-trusted-for-setting-process.patch 0010-refpolicy-minimum-systemd-make-fstools_write_log-opt.patch
---
.../refpolicy-2.20170204/poky-fc-clock.patch | 20 --
.../poky-fc-corecommands.patch | 24 ---
.../poky-fc-fix-real-path_login.patch | 37 ----
.../poky-fc-fix-real-path_resolv.conf.patch | 24 ---
.../poky-fc-fix-real-path_shadow.patch | 34 ----
.../refpolicy-2.20170204/poky-fc-fstools.patch | 75 -------
.../refpolicy-2.20170204/poky-fc-ftpwho-dir.patch | 27 ---
.../refpolicy-2.20170204/poky-fc-iptables.patch | 24 ---
.../refpolicy-2.20170204/poky-fc-mta.patch | 27 ---
.../refpolicy-2.20170204/poky-fc-netutils.patch | 24 ---
.../refpolicy-2.20170204/poky-fc-nscd.patch | 25 ---
.../refpolicy-2.20170204/poky-fc-su.patch | 20 --
.../refpolicy-2.20170204/poky-fc-sysnetwork.patch | 48 -----
.../refpolicy-2.20170204/poky-fc-udevd.patch | 38 ----
.../poky-fc-update-alternatives_bash.patch | 24 ---
.../poky-fc-update-alternatives_hostname.patch | 21 --
.../poky-fc-update-alternatives_sysklogd.patch | 62 ------
.../poky-fc-update-alternatives_sysvinit.patch | 57 ------
...poky-policy-add-rules-for-var-log-symlink.patch | 185 -----------------
...-policy-allow-nfsd-to-exec-shell-commands.patch | 60 ------
.../poky-policy-fix-dmesg-to-use-dev-kmsg.patch | 37 ----
.../refpolicy-2.20180701/poky-fc-clock.patch | 25 +++
.../poky-fc-dmesg.patch | 15 +-
.../refpolicy-2.20180701/poky-fc-e2fsprogs.patch | 47 +++++
.../poky-fc-fix-bind.patch | 21 +-
.../poky-fc-fix-real-path_brctl.patch | 25 +++
.../poky-fc-fix-real-path_login.patch | 29 +++
.../poky-fc-fix-real-path_resolv.conf.patch | 29 +++
.../poky-fc-fix-real-path_shadow.patch | 49 +++++
.../poky-fc-fix-real-path_su.patch | 17 +-
.../refpolicy-2.20180701/poky-fc-fstools.patch | 65 ++++++
.../refpolicy-2.20180701/poky-fc-kerberos.patch | 51 +++++
.../refpolicy-2.20180701/poky-fc-nologin.patch | 30 +++
.../refpolicy-2.20180701/poky-fc-openldap.patch | 41 ++++
.../poky-fc-rpm.patch | 19 +-
.../poky-fc-screen.patch | 21 +-
.../poky-fc-ssh.patch | 18 +-
.../poky-fc-subs_dist.patch | 18 +-
.../refpolicy-2.20180701/poky-fc-sysnetwork.patch | 38 ++++
.../poky-fc-update-alternatives_bash.patch | 27 +++
.../poky-fc-update-alternatives_hostname.patch | 25 +++
.../poky-fc-update-alternatives_sysvinit.patch | 53 +++++
...poky-policy-add-rules-for-bsdpty_device_t.patch | 59 ++----
...ky-policy-add-rules-for-syslogd_t-symlink.patch | 18 +-
.../poky-policy-add-rules-for-tmp-symlink.patch | 69 ++-----
...ky-policy-add-rules-for-var-cache-symlink.patch | 17 +-
...licy-add-rules-for-var-log-symlink-apache.patch | 25 +--
...rules-for-var-log-symlink-audisp_remote_t.patch | 14 +-
...poky-policy-add-rules-for-var-log-symlink.patch | 106 ++++++++++
...ky-policy-add-syslogd_t-to-trusted-object.patch | 2 +-
...-policy-allow-nfsd-to-exec-shell-commands.patch | 29 +++
...-policy-allow-setfiles_t-to-read-symlinks.patch | 19 +-
.../poky-policy-allow-sysadm-to-run-rpcinfo.patch | 15 +-
.../poky-policy-don-t-audit-tty_device_t.patch | 17 +-
.../poky-policy-fix-dmesg-to-use-dev-kmsg.patch | 24 +++
.../poky-policy-fix-new-SELINUXMNT-in-sys.patch | 125 +++---------
...poky-policy-fix-nfsd_t-to-mount_nfsd_fs_t.patch | 93 +++++----
...olicy-fix-setfiles-statvfs-get-file-count.patch | 21 +-
...ky-policy-fix-seutils-manage-config-files.patch | 2 +-
...ky-policy-ftp-add-ftpd_t-to-mlsfilewrite.patch} | 23 ++-
...-kernel_t-mls-trusted-for-lowering-file-l.patch | 74 +++++++
...-kernel_t-mls-trusted-for-setting-process.patch | 43 ++++
.../poky-policy-update-for-systemd.patch} | 21 +-
...s_2.20170204.bb => refpolicy-mcs_2.20180701.bb} | 0
...inimum-systemd-unconfined-lib-add-systemd.patch | 45 +++--
...inimum-audit-logging-getty-audit-related-.patch | 19 +-
...inimum-systemd-mount-logging-authlogin-ad.patch | 42 ++--
...inimum-locallogin-add-allow-rules-for-typ.patch | 10 +-
...inimum-init-fix-reboot-with-systemd-as-in.patch | 12 +-
...inimum-systemd-mount-enable-requiried-ref.patch | 18 +-
...inimum-systemd-fix-for-login-journal-serv.patch | 35 ++--
...inimum-systemd-fix-for-systemd-tmp-files-.patch | 28 ++-
...-refpolicy-minimum-systemd-fix-for-syslog.patch | 14 +-
...inimum-systemd-make-fstools_write_log-opt.patch | 36 ++++
...20170204.bb => refpolicy-minimum_2.20180701.bb} | 20 +-
...s_2.20170204.bb => refpolicy-mls_2.20180701.bb} | 0
...0170204.bb => refpolicy-standard_2.20180701.bb} | 0
...olicy-fix-optional-issue-on-sysadm-module.patch | 28 +--
...ptional-issue-on-sysadm-module_2.20170204.patch | 72 -------
...move-duplicate-type_transition_2.20170204.patch | 46 -----
.../refpolicy-unconfined_u-default-user.patch | 71 +++----
...licy-unconfined_u-default-user_2.20170204.patch | 222 ---------------------
.../refpolicy/refpolicy-targeted_2.20170204.bb | 29 ---
.../refpolicy/refpolicy-targeted_2.20180701.bb | 21 ++
...icy_2.20170204.inc => refpolicy_2.20180701.inc} | 25 +--
recipes-security/refpolicy/refpolicy_common.inc | 4 +-
86 files changed, 1347 insertions(+), 1822 deletions(-)
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-clock.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-corecommands.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-fix-real-path_login.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-fix-real-path_resolv.conf.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-fix-real-path_shadow.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-fstools.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-ftpwho-dir.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-iptables.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-mta.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-netutils.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-nscd.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-su.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-sysnetwork.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-udevd.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-update-alternatives_bash.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-update-alternatives_hostname.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-update-alternatives_sysklogd.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-update-alternatives_sysvinit.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-add-rules-for-var-log-symlink.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-allow-nfsd-to-exec-shell-commands.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-fix-dmesg-to-use-dev-kmsg.patch
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-clock.patch
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-fc-dmesg.patch (53%)
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-e2fsprogs.patch
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-fc-fix-bind.patch (66%)
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-fix-real-path_brctl.patch
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-fix-real-path_login.patch
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-fix-real-path_resolv.conf.patch
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-fix-real-path_shadow.patch
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-fc-fix-real-path_su.patch (63%)
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-fstools.patch
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-kerberos.patch
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-nologin.patch
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-openldap.patch
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-fc-rpm.patch (50%)
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-fc-screen.patch (50%)
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-fc-ssh.patch (56%)
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-fc-subs_dist.patch (63%)
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-sysnetwork.patch
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-update-alternatives_bash.patch
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-update-alternatives_hostname.patch
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-update-alternatives_sysvinit.patch
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-policy-add-rules-for-bsdpty_device_t.patch (67%)
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-policy-add-rules-for-syslogd_t-symlink.patch (62%)
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-policy-add-rules-for-tmp-symlink.patch (54%)
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-policy-add-rules-for-var-cache-symlink.patch (71%)
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-policy-add-rules-for-var-log-symlink-apache.patch (52%)
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-policy-add-rules-for-var-log-symlink-audisp_remote_t.patch (73%)
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-add-rules-for-var-log-symlink.patch
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-policy-add-syslogd_t-to-trusted-object.patch (94%)
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-allow-nfsd-to-exec-shell-commands.patch
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-policy-allow-setfiles_t-to-read-symlinks.patch (65%)
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-policy-allow-sysadm-to-run-rpcinfo.patch (80%)
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-policy-don-t-audit-tty_device_t.patch (68%)
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-fix-dmesg-to-use-dev-kmsg.patch
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-policy-fix-new-SELINUXMNT-in-sys.patch (52%)
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-policy-fix-nfsd_t-to-mount_nfsd_fs_t.patch (57%)
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-policy-fix-setfiles-statvfs-get-file-count.patch (65%)
rename recipes-security/refpolicy/{refpolicy-2.20170204 => refpolicy-2.20180701}/poky-policy-fix-seutils-manage-config-files.patch (95%)
rename recipes-security/refpolicy/{refpolicy-2.20170204/ftp-add-ftpd_t-to-mlsfilewrite.patch => refpolicy-2.20180701/poky-policy-ftp-add-ftpd_t-to-mlsfilewrite.patch} (78%)
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-kernel_t-mls-trusted-for-lowering-file-l.patch
create mode 100644 recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-kernel_t-mls-trusted-for-setting-process.patch
rename recipes-security/refpolicy/{refpolicy-2.20170204/refpolicy-update-for_systemd.patch => refpolicy-2.20180701/poky-policy-update-for-systemd.patch} (65%)
rename recipes-security/refpolicy/{refpolicy-mcs_2.20170204.bb => refpolicy-mcs_2.20180701.bb} (100%)
create mode 100644 recipes-security/refpolicy/refpolicy-minimum/0010-refpolicy-minimum-systemd-make-fstools_write_log-opt.patch
rename recipes-security/refpolicy/{refpolicy-minimum_2.20170204.bb => refpolicy-minimum_2.20180701.bb} (78%)
rename recipes-security/refpolicy/{refpolicy-mls_2.20170204.bb => refpolicy-mls_2.20180701.bb} (100%)
rename recipes-security/refpolicy/{refpolicy-standard_2.20170204.bb => refpolicy-standard_2.20180701.bb} (100%)
delete mode 100644 recipes-security/refpolicy/refpolicy-targeted/refpolicy-fix-optional-issue-on-sysadm-module_2.20170204.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-targeted/refpolicy-remove-duplicate-type_transition_2.20170204.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-targeted/refpolicy-unconfined_u-default-user_2.20170204.patch
delete mode 100644 recipes-security/refpolicy/refpolicy-targeted_2.20170204.bb
create mode 100644 recipes-security/refpolicy/refpolicy-targeted_2.20180701.bb
rename recipes-security/refpolicy/{refpolicy_2.20170204.inc => refpolicy_2.20180701.inc} (71%)recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-clock.patch deleted +0 -20
@@ -1,20 +0,0 @@ -Subject: [PATCH] refpolicy: fix real path for clock - -Upstream-Status: Inappropriate [configuration] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/clock.fc | 1 + - 1 file changed, 1 insertion(+) - ---- a/policy/modules/system/clock.fc -+++ b/policy/modules/system/clock.fc -@@ -1,6 +1,7 @@ - - /etc/adjtime -- gen_context(system_u:object_r:adjtime_t,s0) - - /sbin/hwclock -- gen_context(system_u:object_r:hwclock_exec_t,s0) -+/sbin/hwclock\.util-linux -- gen_context(system_u:object_r:hwclock_exec_t,s0) - - /usr/sbin/hwclock -- gen_context(system_u:object_r:hwclock_exec_t,s0)
recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-corecommands.patch deleted +0 -24
@@ -1,24 +0,0 @@ -Subject: [PATCH] refpolicy: fix real path for corecommands - -Upstream-Status: Inappropriate [configuration] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/kernel/corecommands.fc | 1 + - 1 file changed, 1 insertion(+) - ---- a/policy/modules/kernel/corecommands.fc -+++ b/policy/modules/kernel/corecommands.fc -@@ -154,10 +154,11 @@ ifdef(`distro_gentoo',` - /sbin -d gen_context(system_u:object_r:bin_t,s0) - /sbin/.* gen_context(system_u:object_r:bin_t,s0) - /sbin/insmod_ksymoops_clean -- gen_context(system_u:object_r:bin_t,s0) - /sbin/mkfs\.cramfs -- gen_context(system_u:object_r:bin_t,s0) - /sbin/nologin -- gen_context(system_u:object_r:shell_exec_t,s0) -+/usr/sbin/nologin -- gen_context(system_u:object_r:shell_exec_t,s0) - - # - # /opt - # - /opt/(.*/)?bin(/.*)? gen_context(system_u:object_r:bin_t,s0)
recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-fix-real-path_login.patch deleted +0 -37
@@ -1,37 +0,0 @@ -Subject: [PATCH] fix real path for login commands. - -Upstream-Status: Inappropriate [only for Poky] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/authlogin.fc | 7 ++++--- - 1 files changed, 4 insertions(+), 3 deletions(-) - ---- a/policy/modules/system/authlogin.fc -+++ b/policy/modules/system/authlogin.fc -@@ -1,19 +1,21 @@ - - /bin/login -- gen_context(system_u:object_r:login_exec_t,s0) -+/bin/login\.shadow -- gen_context(system_u:object_r:login_exec_t,s0) -+/bin/login\.tinylogin -- gen_context(system_u:object_r:login_exec_t,s0) - - /etc/\.pwd\.lock -- gen_context(system_u:object_r:shadow_t,s0) - /etc/group\.lock -- gen_context(system_u:object_r:shadow_t,s0) - /etc/gshadow.* -- gen_context(system_u:object_r:shadow_t,s0) - /etc/passwd\.lock -- gen_context(system_u:object_r:shadow_t,s0) - /etc/shadow.* -- gen_context(system_u:object_r:shadow_t,s0) - - /sbin/pam_console_apply -- gen_context(system_u:object_r:pam_console_exec_t,s0) - /sbin/pam_timestamp_check -- gen_context(system_u:object_r:pam_exec_t,s0) --/sbin/unix_chkpwd -- gen_context(system_u:object_r:chkpwd_exec_t,s0) --/sbin/unix_update -- gen_context(system_u:object_r:updpwd_exec_t,s0) --/sbin/unix_verify -- gen_context(system_u:object_r:chkpwd_exec_t,s0) -+/sbin/unix_chkpwd -- gen_context(system_u:object_r:chkpwd_exec_t,s0) -+/sbin/unix_update -- gen_context(system_u:object_r:updpwd_exec_t,s0) -+/sbin/unix_verify -- gen_context(system_u:object_r:chkpwd_exec_t,s0) - ifdef(`distro_suse', ` - /sbin/unix2_chkpwd -- gen_context(system_u:object_r:chkpwd_exec_t,s0) - ') - - /usr/bin/login -- gen_context(system_u:object_r:login_exec_t,s0)
recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-fix-real-path_resolv.conf.patch deleted +0 -24
@@ -1,24 +0,0 @@ -Subject: [PATCH] fix real path for resolv.conf - -Upstream-Status: Inappropriate [only for Poky] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/sysnetwork.fc | 1 + - 1 files changed, 1 insertions(+), 0 deletions(-) - ---- a/policy/modules/system/sysnetwork.fc -+++ b/policy/modules/system/sysnetwork.fc -@@ -23,10 +23,11 @@ ifdef(`distro_debian',` - /etc/ethers -- gen_context(system_u:object_r:net_conf_t,s0) - /etc/hosts -- gen_context(system_u:object_r:net_conf_t,s0) - /etc/hosts\.deny.* -- gen_context(system_u:object_r:net_conf_t,s0) - /etc/denyhosts.* -- gen_context(system_u:object_r:net_conf_t,s0) - /etc/resolv\.conf.* -- gen_context(system_u:object_r:net_conf_t,s0) -+/var/run/resolv\.conf.* -- gen_context(system_u:object_r:net_conf_t,s0) - /etc/yp\.conf.* -- gen_context(system_u:object_r:net_conf_t,s0) - - /etc/dhcp3(/.*)? gen_context(system_u:object_r:dhcp_etc_t,s0) - /etc/dhcp3?/dhclient.* gen_context(system_u:object_r:dhcp_etc_t,s0) -
recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-fix-real-path_shadow.patch deleted +0 -34
@@ -1,34 +0,0 @@ -Subject: [PATCH] fix real path for shadow commands. - -Upstream-Status: Inappropriate [only for Poky] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/admin/usermanage.fc | 6 ++++++ - 1 file changed, 6 insertions(+) - ---- a/policy/modules/admin/usermanage.fc -+++ b/policy/modules/admin/usermanage.fc -@@ -6,15 +6,21 @@ ifdef(`distro_debian',` - /etc/cron\.daily/cracklib-runtime -- gen_context(system_u:object_r:crack_exec_t,s0) - ') - - /usr/bin/chage -- gen_context(system_u:object_r:passwd_exec_t,s0) - /usr/bin/chfn -- gen_context(system_u:object_r:chfn_exec_t,s0) -+/usr/bin/chfn\.shadow -- gen_context(system_u:object_r:chfn_exec_t,s0) - /usr/bin/chsh -- gen_context(system_u:object_r:chfn_exec_t,s0) -+/usr/bin/chsh\.shadow -- gen_context(system_u:object_r:chfn_exec_t,s0) - /usr/bin/gpasswd -- gen_context(system_u:object_r:groupadd_exec_t,s0) - /usr/bin/passwd -- gen_context(system_u:object_r:passwd_exec_t,s0) -+/usr/bin/passwd\.shadow -- gen_context(system_u:object_r:passwd_exec_t,s0) -+/usr/bin/passwd\.tinylogin -- gen_context(system_u:object_r:passwd_exec_t,s0) - /usr/bin/vigr -- gen_context(system_u:object_r:admin_passwd_exec_t,s0) -+/sbin/vigr\.shadow -- gen_context(system_u:object_r:admin_passwd_exec_t,s0) - /usr/bin/vipw -- gen_context(system_u:object_r:admin_passwd_exec_t,s0) -+/sbin/vipw\.shadow -- gen_context(system_u:object_r:admin_passwd_exec_t,s0) - - /usr/lib/cracklib_dict.* -- gen_context(system_u:object_r:crack_db_t,s0) - - /usr/sbin/crack_[a-z]* -- gen_context(system_u:object_r:crack_exec_t,s0) - /usr/sbin/cracklib-[a-z]* -- gen_context(system_u:object_r:crack_exec_t,s0)
recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-fstools.patch deleted +0 -75
75 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-ftpwho-dir.patch deleted +0 -27
@@ -1,27 +0,0 @@ -fix ftpwho install dir - -Upstream-Status: Pending - -ftpwho is installed into /usr/bin/, not /usr/sbin, so fix it - -Signed-off-by: Roy Li <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/contrib/ftp.fc | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/policy/modules/contrib/ftp.fc -+++ b/policy/modules/contrib/ftp.fc -@@ -10,11 +10,11 @@ - /usr/kerberos/sbin/ftpd -- gen_context(system_u:object_r:ftpd_exec_t,s0) - - /usr/lib/systemd/system/proftpd.*\.service -- gen_context(system_u:object_r:ftpd_unit_t,s0) - /usr/lib/systemd/system/vsftpd.*\.service -- gen_context(system_u:object_r:ftpd_unit_t,s0) - --/usr/sbin/ftpwho -- gen_context(system_u:object_r:ftpd_exec_t,s0) -+/usr/bin/ftpwho -- gen_context(system_u:object_r:ftpd_exec_t,s0) - /usr/sbin/in\.ftpd -- gen_context(system_u:object_r:ftpd_exec_t,s0) - /usr/sbin/muddleftpd -- gen_context(system_u:object_r:ftpd_exec_t,s0) - /usr/sbin/proftpd -- gen_context(system_u:object_r:ftpd_exec_t,s0) - /usr/sbin/vsftpd -- gen_context(system_u:object_r:ftpd_exec_t,s0) -
recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-iptables.patch deleted +0 -24
@@ -1,24 +0,0 @@ -Subject: [PATCH] refpolicy: fix real path for iptables - -Upstream-Status: Inappropriate [configuration] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/iptables.fc | 1 + - 1 file changed, 1 insertion(+) - ---- a/policy/modules/system/iptables.fc -+++ b/policy/modules/system/iptables.fc -@@ -14,10 +14,11 @@ - /sbin/ipvsadm -- gen_context(system_u:object_r:iptables_exec_t,s0) - /sbin/ipvsadm-restore -- gen_context(system_u:object_r:iptables_exec_t,s0) - /sbin/ipvsadm-save -- gen_context(system_u:object_r:iptables_exec_t,s0) - /sbin/nft -- gen_context(system_u:object_r:iptables_exec_t,s0) - /sbin/xtables-multi -- gen_context(system_u:object_r:iptables_exec_t,s0) -+/usr/sbin/xtables-multi -- gen_context(system_u:object_r:iptables_exec_t,s0) - - /usr/lib/systemd/system/[^/]*arptables.* -- gen_context(system_u:object_r:iptables_unit_t,s0) - /usr/lib/systemd/system/[^/]*ebtables.* -- gen_context(system_u:object_r:iptables_unit_t,s0) - /usr/lib/systemd/system/[^/]*ip6tables.* -- gen_context(system_u:object_r:iptables_unit_t,s0) - /usr/lib/systemd/system/[^/]*iptables.* -- gen_context(system_u:object_r:iptables_unit_t,s0)
recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-mta.patch deleted +0 -27
@@ -1,27 +0,0 @@ -From c0bb2996db4f55f3987967bacfb99805fc45d027 Mon Sep 17 00:00:00 2001 -From: Xin Ouyang <[email protected]> -Date: Thu, 22 Aug 2013 19:21:55 +0800 -Subject: [PATCH] refpolicy: fix real path for mta - -Upstream-Status: Inappropriate [configuration] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/contrib/mta.fc | 1 + - 1 file changed, 1 insertion(+) - ---- a/policy/modules/contrib/mta.fc -+++ b/policy/modules/contrib/mta.fc -@@ -20,10 +20,11 @@ HOME_DIR/\.maildir(/.*)? gen_context(sys - /usr/lib/courier/bin/sendmail -- gen_context(system_u:object_r:sendmail_exec_t,s0) - - /usr/sbin/rmail -- gen_context(system_u:object_r:sendmail_exec_t,s0) - /usr/sbin/sendmail\.postfix -- gen_context(system_u:object_r:sendmail_exec_t,s0) - /usr/sbin/sendmail(\.sendmail)? -- gen_context(system_u:object_r:sendmail_exec_t,s0) -+/usr/sbin/msmtp -- gen_context(system_u:object_r:sendmail_exec_t,s0) - /usr/sbin/ssmtp -- gen_context(system_u:object_r:sendmail_exec_t,s0) - - /var/mail(/.*)? gen_context(system_u:object_r:mail_spool_t,s0) - - /var/qmail/bin/sendmail -- gen_context(system_u:object_r:sendmail_exec_t,s0)
recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-netutils.patch deleted +0 -24
@@ -1,24 +0,0 @@ -Subject: [PATCH] refpolicy: fix real path for netutils - -Upstream-Status: Inappropriate [configuration] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/admin/netutils.fc | 1 + - 1 file changed, 1 insertion(+) - ---- a/policy/modules/admin/netutils.fc -+++ b/policy/modules/admin/netutils.fc -@@ -1,10 +1,11 @@ - /bin/ping.* -- gen_context(system_u:object_r:ping_exec_t,s0) - /bin/tracepath.* -- gen_context(system_u:object_r:traceroute_exec_t,s0) - /bin/traceroute.* -- gen_context(system_u:object_r:traceroute_exec_t,s0) - - /sbin/arping -- gen_context(system_u:object_r:netutils_exec_t,s0) -+/bin/arping -- gen_context(system_u:object_r:netutils_exec_t,s0) - - /usr/bin/arping -- gen_context(system_u:object_r:netutils_exec_t,s0) - /usr/bin/lft -- gen_context(system_u:object_r:traceroute_exec_t,s0) - /usr/bin/nmap -- gen_context(system_u:object_r:traceroute_exec_t,s0) - /usr/bin/ping.* -- gen_context(system_u:object_r:ping_exec_t,s0)
recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-nscd.patch deleted +0 -25
@@ -1,25 +0,0 @@ -From 642fab321a5f1f40495b4ca07f1fca4145024986 Mon Sep 17 00:00:00 2001 -From: Xin Ouyang <[email protected]> -Date: Thu, 22 Aug 2013 19:25:36 +0800 -Subject: [PATCH] refpolicy: fix real path for nscd - -Upstream-Status: Inappropriate [configuration] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/contrib/nscd.fc | 1 + - 1 file changed, 1 insertion(+) - ---- a/policy/modules/contrib/nscd.fc -+++ b/policy/modules/contrib/nscd.fc -@@ -1,8 +1,9 @@ - /etc/rc\.d/init\.d/nscd -- gen_context(system_u:object_r:nscd_initrc_exec_t,s0) - - /usr/sbin/nscd -- gen_context(system_u:object_r:nscd_exec_t,s0) -+/usr/bin/nscd -- gen_context(system_u:object_r:nscd_exec_t,s0) - - /var/cache/nscd(/.*)? gen_context(system_u:object_r:nscd_var_run_t,s0) - - /var/db/nscd(/.*)? gen_context(system_u:object_r:nscd_var_run_t,s0) -
recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-su.patch deleted +0 -20
@@ -1,20 +0,0 @@ -Subject: [PATCH] refpolicy: fix real path for su - -Upstream-Status: Inappropriate [configuration] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/admin/su.fc | 1 + - 1 file changed, 1 insertion(+) - ---- a/policy/modules/admin/su.fc -+++ b/policy/modules/admin/su.fc -@@ -1,6 +1,7 @@ - - /bin/su -- gen_context(system_u:object_r:su_exec_t,s0) -+/usr/bin/su -- gen_context(system_u:object_r:su_exec_t,s0) - - /usr/(local/)?bin/ksu -- gen_context(system_u:object_r:su_exec_t,s0) - /usr/bin/kdesu -- gen_context(system_u:object_r:su_exec_t,s0) - /usr/bin/su -- gen_context(system_u:object_r:su_exec_t,s0)
recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-sysnetwork.patch deleted +0 -48
48 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-udevd.patch deleted +0 -38
@@ -1,38 +0,0 @@ -From 025bd3c77d3eeb0e316413bf7e6353f1ccd7f6b2 Mon Sep 17 00:00:00 2001 -From: Wenzong Fan <[email protected]> -Date: Sat, 25 Jan 2014 23:40:05 -0500 -Subject: [PATCH] refpolicy: fix real path for udevd/udevadm - -Upstream-Status: Inappropriate [configuration] - -Signed-off-by: Wenzong Fan <[email protected]> ---- - policy/modules/system/udev.fc | 2 ++ - 1 file changed, 2 insertions(+) - ---- a/policy/modules/system/udev.fc -+++ b/policy/modules/system/udev.fc -@@ -8,10 +8,11 @@ - - /etc/udev/rules.d(/.*)? gen_context(system_u:object_r:udev_rules_t,s0) - /etc/udev/scripts/.+ -- gen_context(system_u:object_r:udev_helper_exec_t,s0) - - /lib/udev/udev-acl -- gen_context(system_u:object_r:udev_exec_t,s0) -+/lib/udev/udevd -- gen_context(system_u:object_r:udev_exec_t,s0) - - ifdef(`distro_debian',` - /bin/udevadm -- gen_context(system_u:object_r:udev_exec_t,s0) - /lib/udev/create_static_nodes -- gen_context(system_u:object_r:udev_exec_t,s0) - ') -@@ -26,10 +27,11 @@ ifdef(`distro_debian',` - ifdef(`distro_redhat',` - /sbin/start_udev -- gen_context(system_u:object_r:udev_exec_t,s0) - ') - - /usr/bin/udevinfo -- gen_context(system_u:object_r:udev_exec_t,s0) -+/usr/bin/udevadm -- gen_context(system_u:object_r:udev_exec_t,s0) - - /usr/sbin/udev -- gen_context(system_u:object_r:udev_exec_t,s0) - /usr/sbin/udevadm -- gen_context(system_u:object_r:udev_exec_t,s0) - /usr/sbin/udevd -- gen_context(system_u:object_r:udev_exec_t,s0) - /usr/sbin/udevsend -- gen_context(system_u:object_r:udev_exec_t,s0)
recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-update-alternatives_bash.patch deleted +0 -24
@@ -1,24 +0,0 @@ -From 845518a6f196e6e8c49ba38791c85e17276920e1 Mon Sep 17 00:00:00 2001 -From: Mark Hatle <[email protected]> -Date: Thu, 14 Sep 2017 15:02:23 -0500 -Subject: [PATCH 3/4] fix update-alternatives for hostname - -Upstream-Status: Inappropriate [only for Poky] - -Signed-off-by: Mark Hatle <[email protected]> ---- - policy/modules/system/corecommands.fc | 1 + - 1 file changed, 1 insertion(+) - -Index: refpolicy/policy/modules/kernel/corecommands.fc -=================================================================== ---- refpolicy.orig/policy/modules/kernel/corecommands.fc -+++ refpolicy/policy/modules/kernel/corecommands.fc -@@ -6,6 +6,7 @@ - /bin/d?ash -- gen_context(system_u:object_r:shell_exec_t,s0) - /bin/bash -- gen_context(system_u:object_r:shell_exec_t,s0) - /bin/bash2 -- gen_context(system_u:object_r:shell_exec_t,s0) -+/bin/bash\.bash -- gen_context(system_u:object_r:shell_exec_t,s0) - /bin/fish -- gen_context(system_u:object_r:shell_exec_t,s0) - /bin/ksh.* -- gen_context(system_u:object_r:shell_exec_t,s0) - /bin/mksh -- gen_context(system_u:object_r:shell_exec_t,s0)
recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-update-alternatives_hostname.patch deleted +0 -21
@@ -1,21 +0,0 @@ -From 845518a6f196e6e8c49ba38791c85e17276920e1 Mon Sep 17 00:00:00 2001 -From: Xin Ouyang <[email protected]> -Date: Thu, 22 Aug 2013 13:37:23 +0800 -Subject: [PATCH 3/4] fix update-alternatives for hostname - -Upstream-Status: Inappropriate [only for Poky] - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/system/hostname.fc | 1 + - 1 file changed, 1 insertion(+) - ---- a/policy/modules/system/hostname.fc -+++ b/policy/modules/system/hostname.fc -@@ -1,4 +1,5 @@ - - /bin/hostname -- gen_context(system_u:object_r:hostname_exec_t,s0) -+/bin/hostname\.net-tools -- gen_context(system_u:object_r:hostname_exec_t,s0) - - /usr/bin/hostname -- gen_context(system_u:object_r:hostname_exec_t,s0)
recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-update-alternatives_sysklogd.patch deleted +0 -62
62 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-update-alternatives_sysvinit.patch deleted +0 -57
57 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-add-rules-for-var-log-symlink.patch deleted +0 -185
185 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-allow-nfsd-to-exec-shell-commands.patch deleted +0 -60
60 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-fix-dmesg-to-use-dev-kmsg.patch deleted +0 -37
@@ -1,37 +0,0 @@ -From 2f5981f2244289a1cc79748e9ffdaaea168b1df2 Mon Sep 17 00:00:00 2001 -From: Xin Ouyang <[email protected]> -Date: Fri, 23 Aug 2013 16:36:09 +0800 -Subject: [PATCH] fix dmesg to use /dev/kmsg as default input - -Signed-off-by: Xin Ouyang <[email protected]> -Signed-off-by: Joe MacDonald <[email protected]> ---- - policy/modules/admin/dmesg.if | 1 + - policy/modules/admin/dmesg.te | 2 ++ - 2 files changed, 3 insertions(+) - ---- a/policy/modules/admin/dmesg.if -+++ b/policy/modules/admin/dmesg.if -@@ -35,6 +35,7 @@ interface(`dmesg_exec',` - type dmesg_exec_t; - ') - - corecmd_search_bin($1) - can_exec($1, dmesg_exec_t) -+ dev_read_kmsg($1) - ') ---- a/policy/modules/admin/dmesg.te -+++ b/policy/modules/admin/dmesg.te -@@ -28,10 +28,12 @@ kernel_read_proc_symlinks(dmesg_t) - # for when /usr is not mounted: - kernel_dontaudit_search_unlabeled(dmesg_t) - - dev_read_sysfs(dmesg_t) - -+dev_read_kmsg(dmesg_t) -+ - fs_search_auto_mountpoints(dmesg_t) - - term_dontaudit_use_console(dmesg_t) - - domain_use_interactive_fds(dmesg_t)
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-clock.patch new file +25 -0
@@ -0,0 +1,25 @@ +From a6446fd76086e438c8cf41a52a34b636a1b1ac62 Mon Sep 17 00:00:00 2001 +From: Xin Ouyang <[email protected]> +Date: Tue, 20 Nov 2018 09:24:56 +0800 +Subject: [PATCH] refpolicy: fix real path for clock + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Xin Ouyang <[email protected]> +Signed-off-by: Joe MacDonald <[email protected]> +--- + policy/modules/system/clock.fc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/policy/modules/system/clock.fc b/policy/modules/system/clock.fc +index 3019658..1394858 100644 +--- a/policy/modules/system/clock.fc ++++ b/policy/modules/system/clock.fc +@@ -3,3 +3,4 @@ + /usr/bin/hwclock -- gen_context(system_u:object_r:hwclock_exec_t,s0) + + /usr/sbin/hwclock -- gen_context(system_u:object_r:hwclock_exec_t,s0) ++/usr/sbin/hwclock\.util-linux -- gen_context(system_u:object_r:hwclock_exec_t,s0) +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-dmesg.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-dmesg.patch +10 -5
@@ -1,3 +1,6 @@ +From cf9daff3a92f92d93264a73645ef3d2b8a656c72 Mon Sep 17 00:00:00 2001 +From: Xin Ouyang <[email protected]> +Date: Tue, 20 Nov 2018 09:28:19 +0800 Subject: [PATCH] refpolicy: fix real path for dmesg Upstream-Status: Inappropriate [configuration]
@@ -8,11 +11,13 @@ Signed-off-by: Joe MacDonald <[email protected]> policy/modules/admin/dmesg.fc | 1 + 1 file changed, 1 insertion(+) +diff --git a/policy/modules/admin/dmesg.fc b/policy/modules/admin/dmesg.fc +index e52fdfc..526b92e 100644 --- a/policy/modules/admin/dmesg.fc +++ b/policy/modules/admin/dmesg.fc -@@ -1,4 +1,5 @@ - - /bin/dmesg -- gen_context(system_u:object_r:dmesg_exec_t,s0) -+/bin/dmesg\.util-linux -- gen_context(system_u:object_r:dmesg_exec_t,s0) - +@@ -1 +1,2 @@ /usr/bin/dmesg -- gen_context(system_u:object_r:dmesg_exec_t,s0) ++/usr/bin/dmesg\.util-linux -- gen_context(system_u:object_r:dmesg_exec_t,s0) +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-e2fsprogs.patch new file +47 -0
47 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-fix-bind.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-fix-bind.patch +12 -9
@@ -1,6 +1,6 @@ -From e438a9466a615db3f63421157d5ee3bd6d055403 Mon Sep 17 00:00:00 2001 +From 861a762813b3028f2a43d7297f7fb18b9717c28c Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> -Date: Thu, 22 Aug 2013 19:09:11 +0800 +Date: Tue, 20 Nov 2018 09:22:16 +0800 Subject: [PATCH] refpolicy: fix real path for bind. Upstream-Status: Inappropriate [configuration]
@@ -8,21 +8,24 @@ Upstream-Status: Inappropriate [configuration] Signed-off-by: Xin Ouyang <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> --- - policy/modules/contrib/bind.fc | 2 ++ + policy/modules/services/bind.fc | 2 ++ 1 file changed, 2 insertions(+) ---- a/policy/modules/contrib/bind.fc -+++ b/policy/modules/contrib/bind.fc -@@ -1,10 +1,12 @@ +diff --git a/policy/modules/services/bind.fc b/policy/modules/services/bind.fc +index b4879dc..0dc76a6 100644 +--- a/policy/modules/services/bind.fc ++++ b/policy/modules/services/bind.fc +@@ -1,8 +1,10 @@ /etc/rc\.d/init\.d/named -- gen_context(system_u:object_r:named_initrc_exec_t,s0) +/etc/rc\.d/init\.d/bind -- gen_context(system_u:object_r:named_initrc_exec_t,s0) /etc/rc\.d/init\.d/unbound -- gen_context(system_u:object_r:named_initrc_exec_t,s0) /etc/bind(/.*)? gen_context(system_u:object_r:named_zone_t,s0) /etc/bind/named\.conf.* -- gen_context(system_u:object_r:named_conf_t,s0) -+/etc/bind/rndc\.conf -- gen_context(system_u:object_r:named_conf_t,s0) ++/etc/bind/rndc\.conf -- gen_context(system_u:object_r:named_conf_t,s0) /etc/bind/rndc\.key -- gen_context(system_u:object_r:dnssec_t,s0) /etc/dnssec-trigger/dnssec_trigger_server\.key -- gen_context(system_u:object_r:dnssec_t,s0) /etc/named\.rfc1912\.zones -- gen_context(system_u:object_r:named_conf_t,s0) - /etc/named\.root\.hints -- gen_context(system_u:object_r:named_conf_t,s0) - /etc/named\.conf -- gen_context(system_u:object_r:named_conf_t,s0) +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-fix-real-path_brctl.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 74c7ca4a02e65f72774477d79a0f6a8229201b6d Mon Sep 17 00:00:00 2001 +From: Wenzong Fan <[email protected]> +Date: Mon, 17 Feb 2014 02:30:30 -0500 +Subject: [PATCH] fix real path for brctl + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Wenzong Fan <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/admin/brctl.fc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/policy/modules/admin/brctl.fc b/policy/modules/admin/brctl.fc +index ed472f0..2a852b0 100644 +--- a/policy/modules/admin/brctl.fc ++++ b/policy/modules/admin/brctl.fc +@@ -1,3 +1,4 @@ + /usr/bin/brctl -- gen_context(system_u:object_r:brctl_exec_t,s0) + + /usr/sbin/brctl -- gen_context(system_u:object_r:brctl_exec_t,s0) ++/usr/sbin/brctl\.bridge-utils -- gen_context(system_u:object_r:brctl_exec_t,s0) +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-fix-real-path_login.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 6f8ab1d8161865d1bd6b0f02f1a96bf27d674288 Mon Sep 17 00:00:00 2001 +From: Xin Ouyang <[email protected]> +Date: Tue, 20 Nov 2018 09:06:09 +0800 +Subject: [PATCH] fix real path for login commands. + +Upstream-Status: Inappropriate [only for Poky] + +Signed-off-by: Xin Ouyang <[email protected]> +Signed-off-by: Joe MacDonald <[email protected]> +--- + policy/modules/system/authlogin.fc | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/policy/modules/system/authlogin.fc b/policy/modules/system/authlogin.fc +index e22945c..22d8b0f 100644 +--- a/policy/modules/system/authlogin.fc ++++ b/policy/modules/system/authlogin.fc +@@ -5,6 +5,8 @@ + /etc/shadow.* -- gen_context(system_u:object_r:shadow_t,s0) + + /usr/bin/login -- gen_context(system_u:object_r:login_exec_t,s0) ++/usr/bin/login\.shadow -- gen_context(system_u:object_r:login_exec_t,s0) ++/usr/bin/login\.tinylogin -- gen_context(system_u:object_r:login_exec_t,s0) + /usr/bin/pam_console_apply -- gen_context(system_u:object_r:pam_console_exec_t,s0) + /usr/bin/pam_timestamp_check -- gen_context(system_u:object_r:pam_exec_t,s0) + /usr/bin/unix_chkpwd -- gen_context(system_u:object_r:chkpwd_exec_t,s0) +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-fix-real-path_resolv.conf.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 3497e93b182a510d4601c8127d5bec46322027de Mon Sep 17 00:00:00 2001 +From: Xin Ouyang <[email protected]> +Date: Tue, 20 Nov 2018 09:01:51 +0800 +Subject: [PATCH] fix real path for resolv.conf + +Upstream-Status: Inappropriate [only for Poky] + +Signed-off-by: Xin Ouyang <[email protected]> +Signed-off-by: Joe MacDonald <[email protected]> +--- + policy/modules/system/sysnetwork.fc | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/policy/modules/system/sysnetwork.fc b/policy/modules/system/sysnetwork.fc +index cd52893..231679b 100644 +--- a/policy/modules/system/sysnetwork.fc ++++ b/policy/modules/system/sysnetwork.fc +@@ -78,6 +78,8 @@ ifdef(`distro_redhat',` + /var/lib/dhclient(/.*)? gen_context(system_u:object_r:dhcpc_state_t,s0) + /var/lib/wifiroamd(/.*)? gen_context(system_u:object_r:dhcpc_state_t,s0) + ++/var/run/resolv\.conf.* -- gen_context(system_u:object_r:net_conf_t,s0) ++ + /run/dhclient.* -- gen_context(system_u:object_r:dhcpc_var_run_t,s0) + /run/dhcpcd(/.*)? gen_context(system_u:object_r:dhcpc_var_run_t,s0) + +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-fix-real-path_shadow.patch new file +49 -0
49 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-fix-real-path_su.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-fix-real-path_su.patch +10 -7
@@ -1,4 +1,4 @@ -From 4affa5e9797f5d51597c9b8e0f2503883c766699 Mon Sep 17 00:00:00 2001 +From 04e62de8818ea835a8a2ae567ee650372e9cf80d Mon Sep 17 00:00:00 2001 From: Wenzong Fan <[email protected]> Date: Thu, 13 Feb 2014 00:33:07 -0500 Subject: [PATCH] fix real path for su.shadow command
@@ -8,15 +8,18 @@ Upstream-Status: Inappropriate [only for Poky] Signed-off-by: Wenzong Fan <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> --- - policy/modules/admin/su.fc | 2 ++ - 1 file changed, 2 insertions(+) + policy/modules/admin/su.fc | 1 + + 1 file changed, 1 insertion(+) +diff --git a/policy/modules/admin/su.fc b/policy/modules/admin/su.fc +index 3375c96..12502e1 100644 --- a/policy/modules/admin/su.fc +++ b/policy/modules/admin/su.fc -@@ -2,5 +2,6 @@ - /bin/su -- gen_context(system_u:object_r:su_exec_t,s0) - +@@ -1,3 +1,4 @@ /usr/(local/)?bin/ksu -- gen_context(system_u:object_r:su_exec_t,s0) /usr/bin/kdesu -- gen_context(system_u:object_r:su_exec_t,s0) /usr/bin/su -- gen_context(system_u:object_r:su_exec_t,s0) -+/bin/su.shadow -- gen_context(system_u:object_r:su_exec_t,s0) ++/usr/bin/su\.shadow -- gen_context(system_u:object_r:su_exec_t,s0) +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-fstools.patch new file +65 -0
65 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-kerberos.patch new file +51 -0
51 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-nologin.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 9b8efad5ba564e1a398dded018cc97aae906d7c3 Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Wed, 23 Jan 2019 13:36:18 +0800 +Subject: [PATCH] refpolicy: fix real path for nologin + +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/corecommands.fc | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc +index 6db214f..95ff21c 100644 +--- a/policy/modules/kernel/corecommands.fc ++++ b/policy/modules/kernel/corecommands.fc +@@ -278,6 +278,8 @@ ifdef(`distro_gentoo',` + /usr/sbin/insmod_ksymoops_clean -- gen_context(system_u:object_r:bin_t,s0) + /usr/sbin/mkfs\.cramfs -- gen_context(system_u:object_r:bin_t,s0) + /usr/sbin/nologin -- gen_context(system_u:object_r:shell_exec_t,s0) ++/usr/sbin/nologin\.shadow -- gen_context(system_u:object_r:shell_exec_t,s0) ++/usr/sbin/nologin\.util-linux -- gen_context(system_u:object_r:shell_exec_t,s0) + /usr/sbin/scponlyc -- gen_context(system_u:object_r:shell_exec_t,s0) + /usr/sbin/sesh -- gen_context(system_u:object_r:shell_exec_t,s0) + /usr/sbin/smrsh -- gen_context(system_u:object_r:shell_exec_t,s0) +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-openldap.patch new file +41 -0
41 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-rpm.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-rpm.patch +11 -8
@@ -1,4 +1,4 @@ -From 3ecbd842d51a8e70b3403e857a24203285d4983b Mon Sep 17 00:00:00 2001 +From eb4e0d93cc55e8c1eec08c85e5c36eaddbd5e240 Mon Sep 17 00:00:00 2001 From: Wenzong Fan <[email protected]> Date: Mon, 27 Jan 2014 01:13:06 -0500 Subject: [PATCH] refpolicy: fix real path for cpio
@@ -8,16 +8,19 @@ Upstream-Status: Inappropriate [configuration] Signed-off-by: Wenzong Fan <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> --- - policy/modules/contrib/rpm.fc | 1 + + policy/modules/admin/rpm.fc | 1 + 1 file changed, 1 insertion(+) ---- a/policy/modules/contrib/rpm.fc -+++ b/policy/modules/contrib/rpm.fc -@@ -61,6 +61,7 @@ ifdef(`distro_redhat',` - /run/yum.* -- gen_context(system_u:object_r:rpm_var_run_t,s0) - /run/PackageKit(/.*)? gen_context(system_u:object_r:rpm_var_run_t,s0) +diff --git a/policy/modules/admin/rpm.fc b/policy/modules/admin/rpm.fc +index 9faf3c4..8bcd71f 100644 +--- a/policy/modules/admin/rpm.fc ++++ b/policy/modules/admin/rpm.fc +@@ -69,4 +69,5 @@ ifdef(`distro_redhat',` ifdef(`enable_mls',` /usr/sbin/cpio -- gen_context(system_u:object_r:rpm_exec_t,s0) -+/bin/cpio.cpio -- gen_context(system_u:object_r:rpm_exec_t,s0) ++/usr/bin/cpio\.cpio -- gen_context(system_u:object_r:rpm_exec_t,s0) ') +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-screen.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-screen.patch +12 -9
@@ -1,6 +1,6 @@ -From 3615e2d67f402a37ae7333e62b54f1d9d0a3bfd1 Mon Sep 17 00:00:00 2001 +From 1c2c92535f72e9a9ee5d27e0941b0a31da06f756 Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> -Date: Thu, 22 Aug 2013 19:27:19 +0800 +Date: Tue, 20 Nov 2018 09:38:57 +0800 Subject: [PATCH] refpolicy: fix real path for screen Upstream-Status: Inappropriate [configuration]
@@ -8,16 +8,19 @@ Upstream-Status: Inappropriate [configuration] Signed-off-by: Xin Ouyang <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> --- - policy/modules/contrib/screen.fc | 1 + + policy/modules/apps/screen.fc | 1 + 1 file changed, 1 insertion(+) ---- a/policy/modules/contrib/screen.fc -+++ b/policy/modules/contrib/screen.fc -@@ -4,6 +4,7 @@ HOME_DIR/\.tmux\.conf -- gen_context(sys - - /run/screen(/.*)? gen_context(system_u:object_r:screen_runtime_t,s0) +diff --git a/policy/modules/apps/screen.fc b/policy/modules/apps/screen.fc +index 7196c59..cada994 100644 +--- a/policy/modules/apps/screen.fc ++++ b/policy/modules/apps/screen.fc +@@ -6,4 +6,5 @@ HOME_DIR/\.tmux\.conf -- gen_context(system_u:object_r:screen_home_t,s0) /run/tmux(/.*)? gen_context(system_u:object_r:screen_runtime_t,s0) /usr/bin/screen -- gen_context(system_u:object_r:screen_exec_t,s0) -+/usr/bin/screen-.* -- gen_context(system_u:object_r:screen_exec_t,s0) ++/usr/bin/screen-.* -- gen_context(system_u:object_r:screen_exec_t,s0) /usr/bin/tmux -- gen_context(system_u:object_r:screen_exec_t,s0) +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-ssh.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-ssh.patch +11 -7
@@ -1,3 +1,6 @@ +From 6dcb4b3b326c0cdbfb20cea637c69b28e52937d2 Mon Sep 17 00:00:00 2001 +From: Xin Ouyang <[email protected]> +Date: Tue, 20 Nov 2018 09:51:47 +0800 Subject: [PATCH] refpolicy: fix real path for ssh Upstream-Status: Inappropriate [configuration]
@@ -8,17 +11,18 @@ Signed-off-by: Joe MacDonald <[email protected]> policy/modules/services/ssh.fc | 1 + 1 file changed, 1 insertion(+) +diff --git a/policy/modules/services/ssh.fc b/policy/modules/services/ssh.fc +index 4ac3e73..fb14b17 100644 --- a/policy/modules/services/ssh.fc +++ b/policy/modules/services/ssh.fc -@@ -2,10 +2,11 @@ HOME_DIR/\.ssh(/.*)? gen_context(syste - - /etc/ssh/primes -- gen_context(system_u:object_r:sshd_key_t,s0) +@@ -4,6 +4,7 @@ HOME_DIR/\.ssh(/.*)? gen_context(system_u:object_r:ssh_home_t,s0) /etc/ssh/ssh_host.*_key -- gen_context(system_u:object_r:sshd_key_t,s0) /usr/bin/ssh -- gen_context(system_u:object_r:ssh_exec_t,s0) -+/usr/bin/ssh\.openssh -- gen_context(system_u:object_r:ssh_exec_t,s0) ++/usr/bin/ssh\.openssh -- gen_context(system_u:object_r:ssh_exec_t,s0) /usr/bin/ssh-agent -- gen_context(system_u:object_r:ssh_agent_exec_t,s0) /usr/bin/ssh-keygen -- gen_context(system_u:object_r:ssh_keygen_exec_t,s0) - - /usr/lib/openssh/ssh-keysign -- gen_context(system_u:object_r:ssh_keysign_exec_t,s0) - /usr/lib/ssh/ssh-keysign -- gen_context(system_u:object_r:ssh_keysign_exec_t,s0) + /usr/bin/sshd -- gen_context(system_u:object_r:sshd_exec_t,s0) +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-subs_dist.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-subs_dist.patch +12 -6
@@ -1,6 +1,9 @@ +From f1bad149221729293bf93b80c8ff6feb5f1df3e3 Mon Sep 17 00:00:00 2001 +From: Xin Ouyang <[email protected]> +Date: Mon, 19 Nov 2018 16:14:15 +0800 Subject: [PATCH] fix file_contexts.subs_dist for poky -This file is used for Linux distros to define specific pathes +This file is used for Linux distros to define specific pathes mapping to the pathes in file_contexts. Upstream-Status: Inappropriate [only for Poky]
@@ -8,14 +11,14 @@ Upstream-Status: Inappropriate [only for Poky] Signed-off-by: Xin Ouyang <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> --- - config/file_contexts.subs_dist | 10 ++++++++++ - 1 file changed, 10 insertions(+) + config/file_contexts.subs_dist | 12 ++++++++++++ + 1 file changed, 12 insertions(+) +diff --git a/config/file_contexts.subs_dist b/config/file_contexts.subs_dist +index ed4a562..998baf9 100644 --- a/config/file_contexts.subs_dist +++ b/config/file_contexts.subs_dist -@@ -21,5 +21,17 @@ - - # backward compatibility +@@ -28,3 +28,15 @@ # not for refpolicy intern, but for /var/run using applications, # like systemd tmpfiles or systemd socket configurations /var/run /run
@@ -31,3 +34,6 @@ Signed-off-by: Joe MacDonald <[email protected]> +/usr/lib/busybox/bin /bin +/usr/lib/busybox/sbin /sbin +/usr/lib/busybox/usr /usr +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-sysnetwork.patch new file +38 -0
@@ -0,0 +1,38 @@ +From 0cbb43f5a0b2c9a5cf3616e31cef22145446c0f2 Mon Sep 17 00:00:00 2001 +From: Xin Ouyang <[email protected]> +Date: Tue, 9 Jun 2015 21:22:52 +0530 +Subject: [PATCH] refpolicy: fix real path for sysnetwork + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Xin Ouyang <[email protected]> +Signed-off-by: Shrikant Bobade <[email protected]> +Signed-off-by: Joe MacDonald <[email protected]> +--- + policy/modules/system/sysnetwork.fc | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/policy/modules/system/sysnetwork.fc b/policy/modules/system/sysnetwork.fc +index 231679b..5fd7d06 100644 +--- a/policy/modules/system/sysnetwork.fc ++++ b/policy/modules/system/sysnetwork.fc +@@ -58,13 +58,16 @@ ifdef(`distro_redhat',` + /usr/sbin/dhcpcd -- gen_context(system_u:object_r:dhcpc_exec_t,s0) + /usr/sbin/ethtool -- gen_context(system_u:object_r:ifconfig_exec_t,s0) + /usr/sbin/ifconfig -- gen_context(system_u:object_r:ifconfig_exec_t,s0) ++/usr/sbin/ifconfig\.net-tools -- gen_context(system_u:object_r:ifconfig_exec_t,s0) + /usr/sbin/ip -- gen_context(system_u:object_r:ifconfig_exec_t,s0) ++/usr/sbin/ip\.iproute2 -- gen_context(system_u:object_r:ifconfig_exec_t,s0) + /usr/sbin/ipx_configure -- gen_context(system_u:object_r:ifconfig_exec_t,s0) + /usr/sbin/ipx_interface -- gen_context(system_u:object_r:ifconfig_exec_t,s0) + /usr/sbin/ipx_internal_net -- gen_context(system_u:object_r:ifconfig_exec_t,s0) + /usr/sbin/iw -- gen_context(system_u:object_r:ifconfig_exec_t,s0) + /usr/sbin/iwconfig -- gen_context(system_u:object_r:ifconfig_exec_t,s0) + /usr/sbin/mii-tool -- gen_context(system_u:object_r:ifconfig_exec_t,s0) ++/usr/sbin/mii-tool\.net-tools -- gen_context(system_u:object_r:ifconfig_exec_t,s0) + /usr/sbin/pump -- gen_context(system_u:object_r:dhcpc_exec_t,s0) + /usr/sbin/tc -- gen_context(system_u:object_r:ifconfig_exec_t,s0) + +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-update-alternatives_bash.patch new file +27 -0
@@ -0,0 +1,27 @@ +From b229097f08765cfac318dac75b5111bd89ca723d Mon Sep 17 00:00:00 2001 +From: Mark Hatle <[email protected]> +Date: Thu, 14 Sep 2017 15:02:23 -0500 +Subject: [PATCH] fix update-alternatives for bash + +Upstream-Status: Inappropriate [only for Poky] + +Signed-off-by: Mark Hatle <[email protected]> +--- + policy/modules/kernel/corecommands.fc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc +index 2425154..6db214f 100644 +--- a/policy/modules/kernel/corecommands.fc ++++ b/policy/modules/kernel/corecommands.fc +@@ -140,6 +140,7 @@ ifdef(`distro_gentoo',` + /usr/bin(/.*)? gen_context(system_u:object_r:bin_t,s0) + /usr/bin/d?ash -- gen_context(system_u:object_r:shell_exec_t,s0) + /usr/bin/bash -- gen_context(system_u:object_r:shell_exec_t,s0) ++/usr/bin/bash\.bash -- gen_context(system_u:object_r:shell_exec_t,s0) + /usr/bin/bash2 -- gen_context(system_u:object_r:shell_exec_t,s0) + /usr/bin/fish -- gen_context(system_u:object_r:shell_exec_t,s0) + /usr/bin/git-shell -- gen_context(system_u:object_r:shell_exec_t,s0) +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-update-alternatives_hostname.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 3d957c5a05d0f20ffbae23d95dedf0d5c071a32d Mon Sep 17 00:00:00 2001 +From: Xin Ouyang <[email protected]> +Date: Thu, 22 Aug 2013 13:37:23 +0800 +Subject: [PATCH] fix update-alternatives for hostname + +Upstream-Status: Inappropriate [only for Poky] + +Signed-off-by: Xin Ouyang <[email protected]> +Signed-off-by: Joe MacDonald <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> +--- + policy/modules/system/hostname.fc | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/policy/modules/system/hostname.fc b/policy/modules/system/hostname.fc +index 83ddeb5..cf523bc 100644 +--- a/policy/modules/system/hostname.fc ++++ b/policy/modules/system/hostname.fc +@@ -1 +1,3 @@ + /usr/bin/hostname -- gen_context(system_u:object_r:hostname_exec_t,s0) ++/usr/bin/hostname\.net-tools -- gen_context(system_u:object_r:hostname_exec_t,s0) ++/usr/bin/hostname\.coreutils -- gen_context(system_u:object_r:hostname_exec_t,s0) +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-fc-update-alternatives_sysvinit.patch new file +53 -0
53 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-add-rules-for-bsdpty_device_t.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-add-rules-for-bsdpty_device_t.patch +16 -43
119 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-add-rules-for-syslogd_t-symlink.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-add-rules-for-syslogd_t-symlink.patch +11 -7
@@ -1,3 +1,6 @@ +From 3c68c934c0ef3427774dc5a6e56a0411e3a4d44f Mon Sep 17 00:00:00 2001 +From: Xin Ouyang <[email protected]> +Date: Mon, 21 Jan 2019 14:22:05 +0800 Subject: [PATCH] add rules for the symlink of /var/log - syslogd_t We have added rules for the symlink of /var/log in logging.if,
@@ -13,18 +16,19 @@ Signed-off-by: Joe MacDonald <[email protected]> policy/modules/system/logging.te | 2 ++ 1 file changed, 2 insertions(+) +diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te +index 62af682..2f489f2 100644 --- a/policy/modules/system/logging.te +++ b/policy/modules/system/logging.te -@@ -404,10 +404,12 @@ rw_fifo_files_pattern(syslogd_t, var_log - files_search_spool(syslogd_t) - +@@ -415,6 +415,8 @@ files_search_spool(syslogd_t) # Allow access for syslog-ng allow syslogd_t var_log_t:dir { create setattr }; +allow syslogd_t var_log_t:lnk_file read_lnk_file_perms; + - # manage temporary files - manage_dirs_pattern(syslogd_t, syslogd_tmp_t, syslogd_tmp_t) - manage_files_pattern(syslogd_t, syslogd_tmp_t, syslogd_tmp_t) - files_tmp_filetrans(syslogd_t, syslogd_tmp_t, { dir file }) + # for systemd but can not be conditional + files_pid_filetrans(syslogd_t, syslogd_tmp_t, dir, "log") +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-add-rules-for-tmp-symlink.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-add-rules-for-tmp-symlink.patch +20 -49
134 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-add-rules-for-var-cache-symlink.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-add-rules-for-var-cache-symlink.patch +9 -8
@@ -1,7 +1,7 @@ -From bad816bc752369a6c1bf40231c505d21d95cab08 Mon Sep 17 00:00:00 2001 +From e1d68e907e68c49b18295e8167c40dfc7cd58ea0 Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Fri, 23 Aug 2013 11:20:00 +0800 -Subject: [PATCH 4/6] add rules for the subdir symlinks in /var/ +Subject: [PATCH] add 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
@@ -13,14 +13,14 @@ Upstream-Status: Inappropriate [only for Poky] Signed-off-by: Xin Ouyang <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> --- - policy/modules/kernel/domain.te | 3 +++ + 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 e44e344..09ad808 100644 --- a/policy/modules/kernel/domain.te +++ b/policy/modules/kernel/domain.te -@@ -108,10 +108,13 @@ dev_rw_zero(domain) - term_use_controlling_term(domain) - +@@ -110,6 +110,9 @@ term_use_controlling_term(domain) # list the root directory files_list_root(domain)
@@ -30,5 +30,6 @@ Signed-off-by: Joe MacDonald <[email protected]> ifdef(`hide_broken_symptoms',` # This check is in the general socket # listen code, before protocol-specific - # listen function is called, so bad calls - # to listen on UDP sockets should be silenced +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-add-rules-for-var-log-symlink-apache.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-add-rules-for-var-log-symlink-apache.patch +13 -12
@@ -1,7 +1,7 @@ -From ed2b0a00e2fb78056041b03c7e198e8f5adaf939 Mon Sep 17 00:00:00 2001 +From 191154b085205528e3de6bdf156c6f6827f93ea9 Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Thu, 22 Aug 2013 19:36:44 +0800 -Subject: [PATCH 3/6] add rules for the symlink of /var/log - apache2 +Subject: [PATCH] add rules for the symlink of /var/log - apache2 We have added rules for the symlink of /var/log in logging.if, while apache.te uses /var/log but does not use the interfaces in
@@ -12,20 +12,21 @@ Upstream-Status: Inappropriate [only for Poky] Signed-off-by: Xin Ouyang <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> --- - policy/modules/contrib/apache.te | 1 + + policy/modules/services/apache.te | 1 + 1 file changed, 1 insertion(+) ---- a/policy/modules/contrib/apache.te -+++ b/policy/modules/contrib/apache.te -@@ -407,10 +407,11 @@ allow httpd_t httpd_lock_t:file manage_f - files_lock_filetrans(httpd_t, httpd_lock_t, { file dir }) - - manage_dirs_pattern(httpd_t, httpd_log_t, httpd_log_t) - manage_files_pattern(httpd_t, httpd_log_t, httpd_log_t) +diff --git a/policy/modules/services/apache.te b/policy/modules/services/apache.te +index d1fbeb1..d24f183 100644 +--- a/policy/modules/services/apache.te ++++ b/policy/modules/services/apache.te +@@ -412,6 +412,7 @@ create_files_pattern(httpd_t, httpd_log_t, httpd_log_t) + read_files_pattern(httpd_t, httpd_log_t, httpd_log_t) + setattr_files_pattern(httpd_t, httpd_log_t, httpd_log_t) read_lnk_files_pattern(httpd_t, httpd_log_t, httpd_log_t) +read_lnk_files_pattern(httpd_t, var_log_t, var_log_t) logging_log_filetrans(httpd_t, httpd_log_t, file) allow httpd_t httpd_modules_t:dir list_dir_perms; - mmap_files_pattern(httpd_t, httpd_modules_t, httpd_modules_t) - read_files_pattern(httpd_t, httpd_modules_t, httpd_modules_t) +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-add-rules-for-var-log-symlink-audisp_remote_t.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-add-rules-for-var-log-symlink-audisp_remote_t.patch +9 -5
@@ -1,3 +1,6 @@ +From 8920c23b0b92eb5176e9e13f9a379d4f520452d3 Mon Sep 17 00:00:00 2001 +From: Xin Ouyang <[email protected]> +Date: Mon, 21 Jan 2019 14:10:00 +0800 Subject: [PATCH] add rules for the symlink of /var/log - audisp_remote_t We have added rules for the symlink of /var/log in logging.if,
@@ -13,11 +16,11 @@ Signed-off-by: Joe MacDonald <[email protected]> policy/modules/system/logging.te | 1 + 1 file changed, 1 insertion(+) +diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te +index d8d57f6..62af682 100644 --- a/policy/modules/system/logging.te +++ b/policy/modules/system/logging.te -@@ -278,10 +278,11 @@ optional_policy(` - - allow audisp_remote_t self:capability { setuid setpcap }; +@@ -287,6 +287,7 @@ allow audisp_remote_t self:capability { setpcap setuid }; allow audisp_remote_t self:process { getcap setcap }; allow audisp_remote_t self:tcp_socket create_socket_perms; allow audisp_remote_t var_log_t:dir search_dir_perms;
@@ -25,5 +28,6 @@ Signed-off-by: Joe MacDonald <[email protected]> manage_dirs_pattern(audisp_remote_t, audit_spool_t, audit_spool_t) manage_files_pattern(audisp_remote_t, audit_spool_t, audit_spool_t) - files_spool_filetrans(audisp_remote_t, audit_spool_t, { dir file }) - +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-add-rules-for-var-log-symlink.patch new file +106 -0
106 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-add-syslogd_t-to-trusted-object.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-add-syslogd_t-to-trusted-object.patch +1 -1
@@ -1,7 +1,7 @@ From 27e62a5d9ab9993760369ccdad83673e9148cbb2 Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Thu, 22 Aug 2013 13:37:23 +0800 -Subject: [PATCH 1/6] Add the syslogd_t to trusted object +Subject: [PATCH] Add the syslogd_t to trusted object We add the syslogd_t to trusted object, because other process need to have the right to connectto/sendto /dev/log.
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-allow-nfsd-to-exec-shell-commands.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 2595bbaba5e0c2738c84fd685a8311d8a5179afa Mon Sep 17 00:00:00 2001 +From: Xin Ouyang <[email protected]> +Date: Thu, 22 Aug 2013 13:37:23 +0800 +Subject: [PATCH] allow nfsd to exec shell commands. + +Upstream-Status: Inappropriate [only for Poky] + +Signed-off-by: Xin Ouyang <[email protected]> +Signed-off-by: Joe MacDonald <[email protected]> +--- + policy/modules/services/rpc.te | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/policy/modules/services/rpc.te b/policy/modules/services/rpc.te +index 47fa2fd..d420923 100644 +--- a/policy/modules/services/rpc.te ++++ b/policy/modules/services/rpc.te +@@ -227,7 +227,7 @@ kernel_read_network_state(nfsd_t) + kernel_dontaudit_getattr_core_if(nfsd_t) + kernel_setsched(nfsd_t) + kernel_request_load_module(nfsd_t) +-# kernel_mounton_proc(nfsd_t) ++kernel_mounton_proc(nfsd_t) + + corenet_sendrecv_nfs_server_packets(nfsd_t) + corenet_tcp_bind_nfs_port(nfsd_t) +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-allow-setfiles_t-to-read-symlinks.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-allow-setfiles_t-to-read-symlinks.patch +10 -9
@@ -1,4 +1,4 @@ -From 87b6daf87a07350a58c1724db8fc0a99b849818a Mon Sep 17 00:00:00 2001 +From d9fb16c5499198c3bbe8266eda10496761972d70 Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Thu, 22 Aug 2013 13:37:23 +0800 Subject: [PATCH] fix setfiles_t to read symlinks
@@ -9,14 +9,14 @@ Signed-off-by: Xin Ouyang <[email protected]> Signed-off-by: Shrikant Bobade <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> --- - policy/modules/system/selinuxutil.te | 3 +++ + policy/modules/system/selinuxutil.te | 3 +++ 1 file changed, 3 insertions(+) +diff --git a/policy/modules/system/selinuxutil.te b/policy/modules/system/selinuxutil.te +index d67226a..84ea85f 100644 --- a/policy/modules/system/selinuxutil.te +++ b/policy/modules/system/selinuxutil.te -@@ -553,10 +553,13 @@ files_read_etc_files(setfiles_t) - files_list_all(setfiles_t) - files_relabel_all_files(setfiles_t) +@@ -598,6 +598,9 @@ files_relabel_all_files(setfiles_t) files_read_usr_symlinks(setfiles_t) files_dontaudit_read_all_symlinks(setfiles_t)
@@ -24,7 +24,8 @@ Signed-off-by: Joe MacDonald <[email protected]> +files_read_all_symlinks(setfiles_t) + fs_getattr_all_xattr_fs(setfiles_t) - fs_list_all(setfiles_t) - fs_search_auto_mountpoints(setfiles_t) - fs_relabelfrom_noxattr_fs(setfiles_t) - + fs_getattr_nfs(setfiles_t) + fs_getattr_pstore_dirs(setfiles_t) +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-allow-sysadm-to-run-rpcinfo.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-allow-sysadm-to-run-rpcinfo.patch +8 -7
@@ -1,4 +1,4 @@ -From 7005533d61770fed5a3312aa9dfd1c18dae88c16 Mon Sep 17 00:00:00 2001 +From cb4037a1d9c88009fe01d97531e4187d9502fdaa Mon Sep 17 00:00:00 2001 From: Roy Li <[email protected]> Date: Sat, 15 Feb 2014 09:45:00 +0800 Subject: [PATCH] allow sysadm to run rpcinfo
@@ -11,14 +11,14 @@ type=SYSCALL msg=audit(1392427946.976:264): arch=c000003e syscall=42 success=no Signed-off-by: Roy Li <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> --- - policy/modules/roles/sysadm.te | 4 ++++ + policy/modules/roles/sysadm.te | 4 ++++ 1 file changed, 4 insertions(+) +diff --git a/policy/modules/roles/sysadm.te b/policy/modules/roles/sysadm.te +index 93ee729..b18c065 100644 --- a/policy/modules/roles/sysadm.te +++ b/policy/modules/roles/sysadm.te -@@ -1169,10 +1169,14 @@ optional_policy(` - virt_admin(sysadm_t, sysadm_r) - virt_stream_connect(sysadm_t) +@@ -1194,6 +1194,10 @@ optional_policy(` ') optional_policy(`
@@ -29,5 +29,6 @@ Signed-off-by: Joe MacDonald <[email protected]> vmware_role(sysadm_r, sysadm_t) ') - optional_policy(` - vnstatd_admin(sysadm_t, sysadm_r) +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-don-t-audit-tty_device_t.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-don-t-audit-tty_device_t.patch +9 -8
@@ -1,7 +1,7 @@ -From 29a0d287880f8f83cf4337a3db7c8b94c0c36e1d Mon Sep 17 00:00:00 2001 +From 874a6a0899cd51929e32bc02dd3aee2fe931a22c Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Thu, 22 Aug 2013 13:37:23 +0800 -Subject: [PATCH 6/6] don't audit tty_device_t in term_dontaudit_use_console. +Subject: [PATCH] don't audit tty_device_t in term_dontaudit_use_console. We should also not audit terminal to rw tty_device_t and fds in term_dontaudit_use_console.
@@ -11,14 +11,14 @@ Upstream-Status: Inappropriate [only for Poky] Signed-off-by: Xin Ouyang <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> --- - policy/modules/kernel/terminal.if | 3 +++ + policy/modules/kernel/terminal.if | 3 +++ 1 file changed, 3 insertions(+) +diff --git a/policy/modules/kernel/terminal.if b/policy/modules/kernel/terminal.if +index a84787e..cf66da2 100644 --- a/policy/modules/kernel/terminal.if +++ b/policy/modules/kernel/terminal.if -@@ -297,13 +297,16 @@ interface(`term_use_console',` - ## </param> - # +@@ -335,9 +335,12 @@ interface(`term_use_console',` interface(`term_dontaudit_use_console',` gen_require(` type console_device_t;
@@ -31,5 +31,6 @@ Signed-off-by: Joe MacDonald <[email protected]> ') ######################################## - ## <summary> - ## Set the attributes of the console +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-fix-dmesg-to-use-dev-kmsg.patch new file +24 -0
@@ -0,0 +1,24 @@ +From 16ac0f130d3927626166b06628c926911de7a8a6 Mon Sep 17 00:00:00 2001 +From: Xin Ouyang <[email protected]> +Date: Fri, 23 Aug 2013 16:36:09 +0800 +Subject: [PATCH] fix dmesg to use /dev/kmsg as default input + +Signed-off-by: Xin Ouyang <[email protected]> +Signed-off-by: Joe MacDonald <[email protected]> +--- + policy/modules/admin/dmesg.if | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/policy/modules/admin/dmesg.if b/policy/modules/admin/dmesg.if +index e1973c7..739a4bc 100644 +--- a/policy/modules/admin/dmesg.if ++++ b/policy/modules/admin/dmesg.if +@@ -37,4 +37,5 @@ interface(`dmesg_exec',` + + corecmd_search_bin($1) + can_exec($1, dmesg_exec_t) ++ dev_read_kmsg($1) + ') +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-fix-new-SELINUXMNT-in-sys.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-fix-new-SELINUXMNT-in-sys.patch +27 -98
248 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-fix-nfsd_t-to-mount_nfsd_fs_t.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-fix-nfsd_t-to-mount_nfsd_fs_t.patch +45 -48
118 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-fix-setfiles-statvfs-get-file-count.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-fix-setfiles-statvfs-get-file-count.patch +11 -10
@@ -1,4 +1,4 @@ -From f4e034d6996c5b1f88a9262828dac2ad6ee09b7b Mon Sep 17 00:00:00 2001 +From e9da8e4e979631181a2c7cf8da9884ce571a668c Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Fri, 23 Aug 2013 14:38:53 +0800 Subject: [PATCH] fix setfiles statvfs to get file count
@@ -12,21 +12,22 @@ Signed-off-by: Xin Ouyang <[email protected]> Signed-off-by: Shrikant Bobade <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> --- - policy/modules/system/selinuxutil.te | 2 +- + policy/modules/system/selinuxutil.te | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) +diff --git a/policy/modules/system/selinuxutil.te b/policy/modules/system/selinuxutil.te +index 84ea85f..947fb54 100644 --- a/policy/modules/system/selinuxutil.te +++ b/policy/modules/system/selinuxutil.te -@@ -556,11 +556,11 @@ files_read_usr_symlinks(setfiles_t) - files_dontaudit_read_all_symlinks(setfiles_t) - +@@ -601,7 +601,7 @@ files_dontaudit_read_all_symlinks(setfiles_t) # needs to be able to read symlinks to make restorecon on symlink working files_read_all_symlinks(setfiles_t) -fs_getattr_all_xattr_fs(setfiles_t) +fs_getattr_all_fs(setfiles_t) - fs_list_all(setfiles_t) - fs_search_auto_mountpoints(setfiles_t) - fs_relabelfrom_noxattr_fs(setfiles_t) - - mls_file_read_all_levels(setfiles_t) + fs_getattr_nfs(setfiles_t) + fs_getattr_pstore_dirs(setfiles_t) + fs_getattr_pstorefs(setfiles_t) +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-fix-seutils-manage-config-files.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/poky-policy-fix-seutils-manage-config-files.patch +1 -1
@@ -1,7 +1,7 @@ From be8e015aec19553d3753af132861d24da9ed0265 Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Thu, 22 Aug 2013 13:37:23 +0800 -Subject: [PATCH 2/2] refpolicy: fix selinux utils to manage config files +Subject: [PATCH] refpolicy: fix selinux utils to manage config files Upstream-Status: Pending
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-ftp-add-ftpd_t-to-mlsfilewrite.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/ftp-add-ftpd_t-to-mlsfilewrite.patch +12 -11
@@ -1,4 +1,4 @@ -From e4e95b723d31c7b678a05cd81a96b10185978b4e Mon Sep 17 00:00:00 2001 +From 5571446cf62d6445088c8237cf779881cd1c66b7 Mon Sep 17 00:00:00 2001 From: Roy Li <[email protected]> Date: Mon, 10 Feb 2014 18:10:12 +0800 Subject: [PATCH] ftp: add ftpd_t to mls_file_write_all_levels
@@ -12,21 +12,21 @@ type=AVC msg=audit(1392347709.621:15): avc: denied { write } for pid=545 comm type=AVC msg=audit(1392347709.621:15): avc: denied { add_name } for pid=545 comm="proftpd" name="proftpd.delay" scontext=system_u:system_r:ftpd_t:s15:c0.c1023 tcontext=system_u:object_r:var_run_t:s0-s15:c0.c1023 tclass=dir type=SYSCALL msg=audit(1392347709.621:15): arch=c000003e syscall=2 success=yes exit=3 a0=471910 a1=42 a2=1b6 a3=8 items=0 ppid=539 pid=545 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm="proftpd" exe="/usr/sbin/proftpd" subj=system_u:system_r:ftpd_t:s15:c0.c1023 key=(null) -root@localhost:~# sesearch --allow -s ftpd_t -t var_run_t|grep dir|grep add_name - allow ftpd_t var_run_t : dir { ioctl read write getattr lock add_name remove_name search open } ; +root@localhost:~# sesearch --allow -s ftpd_t -t var_run_t|grep dir|grep add_name + allow ftpd_t var_run_t : dir { ioctl read write getattr lock add_name remove_name search open } ; root@localhost:~# Signed-off-by: Roy Li <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> --- - policy/modules/contrib/ftp.te | 2 ++ + policy/modules/services/ftp.te | 2 ++ 1 file changed, 2 insertions(+) ---- a/policy/modules/contrib/ftp.te -+++ b/policy/modules/contrib/ftp.te -@@ -148,10 +148,12 @@ init_system_domain(ftpdctl_t, ftpdctl_ex - role ftpdctl_roles types ftpdctl_t; - +diff --git a/policy/modules/services/ftp.te b/policy/modules/services/ftp.te +index 29bc077..d582cf8 100644 +--- a/policy/modules/services/ftp.te ++++ b/policy/modules/services/ftp.te +@@ -150,6 +150,8 @@ role ftpdctl_roles types ftpdctl_t; type ftpdctl_tmp_t; files_tmp_file(ftpdctl_tmp_t)
@@ -35,5 +35,6 @@ Signed-off-by: Joe MacDonald <[email protected]> type sftpd_t; domain_type(sftpd_t) role system_r types sftpd_t; - - type xferlog_t; +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-kernel_t-mls-trusted-for-lowering-file-l.patch new file +74 -0
74 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-kernel_t-mls-trusted-for-setting-process.patch new file +43 -0
43 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-2.20180701/poky-policy-update-for-systemd.patch renamed from recipes-security/refpolicy/refpolicy-2.20170204/refpolicy-update-for_systemd.patch +13 -8
@@ -1,4 +1,4 @@ -From 07553727dca51631c93bca482442da8d0c50ac94 Mon Sep 17 00:00:00 2001 +From 718e7a6012d74f840831aee715507bbb79204569 Mon Sep 17 00:00:00 2001 From: Shrikant Bobade <[email protected]> Date: Fri, 12 Jun 2015 19:37:52 +0530 Subject: [PATCH] refpolicy: update for systemd related allow rules
@@ -8,20 +8,25 @@ It provide, the systemd support related allow rules Signed-off-by: Shrikant Bobade <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> --- - policy/modules/system/init.te | 5 +++++ + policy/modules/system/init.te | 5 +++++ 1 file changed, 5 insertions(+) +diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te +index a72b31d..ae64669 100644 --- a/policy/modules/system/init.te +++ b/policy/modules/system/init.te -@@ -1105,5 +1105,10 @@ optional_policy(` - ') - - optional_policy(` +@@ -1345,6 +1345,11 @@ optional_policy(` zebra_read_config(initrc_t) ') -+ + +# systemd related allow rules +allow kernel_t init_t:process dyntransition; +allow devpts_t device_t:filesystem associate; +allow init_t self:capability2 block_suspend; -\ No newline at end of file ++ + ######################################## + # + # Rules applied to all daemons +-- +2.7.4 +
recipes-security/refpolicy/refpolicy-mcs_2.20180701.bb renamed from recipes-security/refpolicy/refpolicy-mcs_2.20170204.bb +0 -0
recipes-security/refpolicy/refpolicy-minimum/0001-refpolicy-minimum-systemd-unconfined-lib-add-systemd.patch +25 -20
88 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-minimum/0002-refpolicy-minimum-audit-logging-getty-audit-related-.patch +9 -10
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy-minimum/0003-refpolicy-minimum-systemd-mount-logging-authlogin-ad.patch +19 -23
42 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-minimum/0004-refpolicy-minimum-locallogin-add-allow-rules-for-typ.patch +5 -5
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy-minimum/0005-refpolicy-minimum-init-fix-reboot-with-systemd-as-in.patch +7 -5
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy-minimum/0006-refpolicy-minimum-systemd-mount-enable-requiried-ref.patch +15 -3
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy-minimum/0007-refpolicy-minimum-systemd-fix-for-login-journal-serv.patch +19 -16
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy-minimum/0008-refpolicy-minimum-systemd-fix-for-systemd-tmp-files-.patch +13 -15
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy-minimum/0009-refpolicy-minimum-systemd-fix-for-syslog.patch +7 -7
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy-minimum/0010-refpolicy-minimum-systemd-make-fstools_write_log-opt.patch new file +36 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy-minimum_2.20180701.bb renamed from recipes-security/refpolicy/refpolicy-minimum_2.20170204.bb +10 -10
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy-mls_2.20180701.bb renamed from recipes-security/refpolicy/refpolicy-mls_2.20170204.bb +0 -0
recipes-security/refpolicy/refpolicy-standard_2.20180701.bb renamed from recipes-security/refpolicy/refpolicy-standard_2.20170204.bb +0 -0
recipes-security/refpolicy/refpolicy-targeted/refpolicy-fix-optional-issue-on-sysadm-module.patch +15 -13
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy-targeted/refpolicy-fix-optional-issue-on-sysadm-module_2.20170204.patch deleted +0 -72
72 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-targeted/refpolicy-remove-duplicate-type_transition_2.20170204.patch deleted +0 -46
46 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-targeted/refpolicy-unconfined_u-default-user.patch +28 -43
71 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-targeted/refpolicy-unconfined_u-default-user_2.20170204.patch deleted +0 -222
222 lines not on this page · raw message
recipes-security/refpolicy/refpolicy-targeted_2.20170204.bb deleted +0 -29
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy-targeted_2.20180701.bb new file +21 -0
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy_2.20180701.inc renamed from recipes-security/refpolicy/refpolicy_2.20170204.inc +13 -12
Lines of this file are not shown. View the raw message.
recipes-security/refpolicy/refpolicy_common.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.7.4
Part of the diff is not shown here. View the raw message.
PATCH 2/2 selinux-image.bbclass: using append instead of += for IMAGE_PREPROCESS_COMMAND
Fix AVC denied error when booting:
type=AVC msg=audit(1548055920.478:86): avc: denied { execute } for pid=366 comm="audispd" path="/lib/ld-2.28.so" dev="vda" ino=7545 scontext=system_u:system_r:audisp_t:s15:c0.c1023 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1
type=AVC msg=audit(1548055920.478:87): avc: denied { open } for pid=366 comm="audispd" path="/lib/libc-2.28.so" dev="vda" ino=7558 scontext=system_u:system_r:audisp_t:s15:c0.c1023 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1
When using "+=" for IMAGE_PREPROCESS_COMMAND, the selinux_set_labels process would run before prelink process to set the security labels for the files. But the label for /lib/libc-2.28.so and /lib/ld-2.28.so would be changed after run prelink process. Use "_append" to make sure the selinux_set_labels process run after prelink process.
--- classes/selinux-image.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
classes/selinux-image.bbclass +1 -1
@@ -10,6 +10,6 @@ selinux_set_labels () { DEPENDS += "policycoreutils-native" -IMAGE_PREPROCESS_COMMAND += "selinux_set_labels ;" +IMAGE_PREPROCESS_COMMAND_append = " selinux_set_labels ;" inherit core-image
Signature · 1 line
2.7.4