[Bug 1231252] New: [SELinux] macros.selinux-policy relabels during build, which causes issues when building custom modules
https://bugzilla.suse.com/show_bug.cgi?id=1231252 Bug ID: 1231252 Summary: [SELinux] macros.selinux-policy relabels during build, which causes issues when building custom modules Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Security Assignee: security-team@suse.de Reporter: cathy.hu@suse.com QA Contact: security-team@suse.de Target Milestone: --- Found By: --- Blocker: --- Issue in SLM6.0 + 6.1 flatpak build: [ 69s] error: selabel_open: (/etc/selinux/targeted/contexts/files/file_contexts) No such file or directory [ 69s] error: Plugin selinux: hook tsm_pre failed https://build.suse.de/package/live_build_log/SUSE:ALP:Source:Standard:1.0:St... the packages would either need to have - selinux-policy-targeted as BuildRequires - or we disable the relabelling macros during the build - or the build projects always sets selinux-policy-targeted as preinstall -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1231252 https://bugzilla.suse.com/show_bug.cgi?id=1231252#c2 --- Comment #2 from Cathy Hu <cathy.hu@suse.com> --- currently all the custom modules have selinux-policy-targeted in the buildrequires (except flatpak which needs it), evaluate if we want to change the macros to not trigger when in a build environment example how to do that from darix: if ! [ -e /.buildenv ] ; then do relabeling fi -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com