forked from pool/selinux-policy
- Update to version 20230125. Refreshed: * distro_suse_to_distro_redhat.patch * fix_dnsmasq.patch * fix_init.patch * fix_ipsec.patch * fix_kernel_sysctl.patch * fix_logging.patch * fix_rpm.patch * fix_selinuxutil.patch * fix_systemd_watch.patch * fix_userdomain.patch - More flexible lib(exec) matching in fix_fwupd.patch - Removed sys_admin for systemd_gpt_generator_t in fix_systemd.patch - Dropped fix_container.patch, is now upstream - Added fix_entropyd.patch * Added new interface entropyd_semaphore_filetrans to properly transfer semaphore created during early boot. That doesn't work yet, so work around with next item * Allow reading tempfs files - Added fix_kernel.patch. Added modutils_execute_kmod_tmpfs_files interace to allow kmod_tmpfs_t files to be executed. Necessary for firewalld - Added fix_rtkit.patch to fix labeling of binary - Modified fix_ntp.patch: * Proper labeling for start-ntpd * Fixed label rules for chroot path * Temporarily allow dac_override for ntpd_t (bsc#1207577) * Add interface ntp_manage_pid_files to allow management of pid files - Updated fix_networkmanager.patch to allow managing ntp pid files OBS-URL: https://build.opensuse.org/request/show/1061575 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/selinux-policy?expand=0&rev=171
51 lines
3.0 KiB
Diff
51 lines
3.0 KiB
Diff
Index: fedora-policy-20230116/policy/modules/contrib/rpm.fc
|
|
===================================================================
|
|
--- fedora-policy-20230116.orig/policy/modules/contrib/rpm.fc
|
|
+++ fedora-policy-20230116/policy/modules/contrib/rpm.fc
|
|
@@ -23,6 +23,9 @@
|
|
# This is in /usr, but is expected to be variable content from a policy perspective (#2042149)
|
|
/usr/lib/sysimage/rpm(/.*)? gen_context(system_u:object_r:rpm_var_lib_t,s0)
|
|
|
|
+/usr/sbin/zypp-refresh -- gen_context(system_u:object_r:rpm_exec_t,s0)
|
|
+/usr/bin/zypper -- gen_context(system_u:object_r:rpm_exec_t,s0)
|
|
+
|
|
/usr/libexec/packagekitd -- gen_context(system_u:object_r:rpm_exec_t,s0)
|
|
/usr/libexec/yumDBUSBackend.py -- gen_context(system_u:object_r:rpm_exec_t,s0)
|
|
/usr/libexec/pegasus/pycmpiLMI_Software-cimprovagt -- gen_context(system_u:object_r:rpm_exec_t,s0)
|
|
@@ -61,6 +64,8 @@ ifdef(`distro_redhat', `
|
|
/var/cache/yum(/.*)? gen_context(system_u:object_r:rpm_var_cache_t,s0)
|
|
/var/cache/dnf(/.*)? gen_context(system_u:object_r:rpm_var_cache_t,s0)
|
|
|
|
+/var/cache/zypp(/.*)? gen_context(system_u:object_r:rpm_var_cache_t,s0)
|
|
+
|
|
/var/lib/alternatives(/.*)? gen_context(system_u:object_r:rpm_var_lib_t,s0)
|
|
/var/lib/PackageKit(/.*)? gen_context(system_u:object_r:rpm_var_lib_t,s0)
|
|
/var/lib/rpm(/.*)? gen_context(system_u:object_r:rpm_var_lib_t,s0)
|
|
Index: fedora-policy-20230116/policy/modules/contrib/rpm.if
|
|
===================================================================
|
|
--- fedora-policy-20230116.orig/policy/modules/contrib/rpm.if
|
|
+++ fedora-policy-20230116/policy/modules/contrib/rpm.if
|
|
@@ -515,8 +515,10 @@ interface(`rpm_named_filetrans',`
|
|
logging_log_named_filetrans($1, rpm_log_t, file, "yum.log")
|
|
logging_log_named_filetrans($1, rpm_log_t, file, "hawkey.log")
|
|
logging_log_named_filetrans($1, rpm_log_t, file, "up2date")
|
|
+ logging_log_named_filetrans($1, rpm_log_t, file, "zypper.log")
|
|
files_var_filetrans($1, rpm_var_cache_t, dir, "dnf")
|
|
files_var_filetrans($1, rpm_var_cache_t, dir, "yum")
|
|
+ files_var_filetrans($1, rpm_var_cache_t, dir, "zypp")
|
|
files_var_lib_filetrans($1, rpm_var_lib_t, dir, "dnf")
|
|
files_var_lib_filetrans($1, rpm_var_lib_t, dir, "yum")
|
|
files_var_lib_filetrans($1, rpm_var_lib_t, dir, "rpm")
|
|
Index: fedora-policy-20230116/policy/modules/kernel/files.fc
|
|
===================================================================
|
|
--- fedora-policy-20230116.orig/policy/modules/kernel/files.fc
|
|
+++ fedora-policy-20230116/policy/modules/kernel/files.fc
|
|
@@ -67,6 +67,7 @@ ifdef(`distro_redhat',`
|
|
/etc/sysconfig/ipvsadm.* -- gen_context(system_u:object_r:system_conf_t,s0)
|
|
/etc/sysconfig/system-config-firewall.* -- gen_context(system_u:object_r:system_conf_t,s0)
|
|
/etc/yum\.repos\.d(/.*)? gen_context(system_u:object_r:system_conf_t,s0)
|
|
+/etc/zypp(/.*)? gen_context(system_u:object_r:system_conf_t,s0)
|
|
/etc/ostree/remotes.d(/.*)? gen_context(system_u:object_r:system_conf_t,s0)
|
|
|
|
/ostree/repo(/.*)? gen_context(system_u:object_r:system_conf_t,s0)
|