| Summary: | Error in PREIN scriptlet in rpm package | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | yanbing du <ydu> | ||||
| Component: | libselinux | Assignee: | Petr Lautrbach <plautrba> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 7.3 | CC: | dapospis, dwalsh, lvrabec, mgrepl, mmalik, plautrba, ssekidde, ydu | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | libselinux-2.5-3.el7 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-11-04 02:12:22 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
yanbing du
2016-04-25 05:08:03 UTC
I'm not running beaker job to reproduce this bug, just let config a RHEL7 repo and execute yum command. The distro I'm using is: RHEL-7.2-20151030.0 Just let me know what kind of information do you want? I can provide them in bugzilla. It's a problem in libselinux: int is_selinux_enabled(void) which was introduced in upstream commit 685f4aeeadc0b60f3770404d4f149610d656e3c8 Created attachment 1151250 [details]
libselinux: setexecfilecon() to work better in a chroot
When setexecfilecon() is used in a process which was chrooted after
libselinux was initialized, is_selinux_enabled() returns 1 but
security_getenforce() returns -1 as there's no /sys/fs/selinux/enforce
in the chroot.
Generally, rpm and rpm scripts are run as unconfined domains therefore we
don't to need to consider this state as a reason not to exec the
script.
Thanks Petr, Just test the scratch build and confirm it works fine. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2276.html |