Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.14.3 final #1187

Merged
merged 3 commits into from Apr 21, 2020
Merged

Conversation

ffesti
Copy link
Contributor

@ffesti ffesti commented Apr 20, 2020

Backport two more patches to the 4.14.3 release for the selinux plugin

pmatilai and others added 3 commits April 15, 2020 14:56
Refactor the custom exec context setting code to look like setexecfilecon()
in case the real one is not available to eliminate pesky behavioral
differences between the two cases.

This fixes a concrete bug of libselinux setexecfilecon() returning with
an error when security_getenforce() returns with -1 (such as a bare
chroot with no /sys mounts etc), causing us to spit out useless error
messages in that case ever since fixing the bogus if-logic in
commit ab601b8.

Fixes: rpm-software-management#1077
(cherry picked from commit 153c5c2)
We already filter out -EOPNOTSUPP and return OK, but the message was
getting logged before the filtering so we'd spit out spurious error
messages on filesystems that don't support SELinux (RhBug:1777502)

(cherry picked from commit 4a71a3e)
@pmatilai pmatilai changed the title Selinux plugin 4.14.3 final Apr 21, 2020
@pmatilai pmatilai merged commit 061ba96 into rpm-software-management:rpm-4.14.x Apr 21, 2020
@ffesti ffesti deleted the selinux-plugin branch May 13, 2022 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants