| Summary: | mock can't init because selinux doesn't permit the operation | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Christopher Meng <i> |
| Component: | libselinux | Assignee: | Daniel Walsh <dwalsh> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dominick.grift, dwalsh, lvrabec, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-12-31 03:57:46 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: | |
Fixed in recent libselinux update. Closed. |
[rpmaker@fab Desktop]$ mock --init INFO: mock.py version 1.1.35 starting... Start: init plugins INFO: selinux enabled Finish: init plugins Start: run Start: lock buildroot Start: clean chroot Finish: clean chroot Finish: lock buildroot Start: chroot init ERROR: Could not create dir /var/lib/mock/fedora-rawhide-i386/result. Error: [Errno 13] Permission denied: '/var/lib/mock/fedora-rawhide-i386/result' Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 69, in mkdirIfAbsent os.makedirs(dirName) File "/usr/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/var/lib/mock/fedora-rawhide-i386/result' ERROR: Could not create output directory for built rpms. The directory specified was: /var/lib/mock/fedora-rawhide-i386/result Try using the --resultdir= option to select another location. Recommended location is --resultdir=~/mock/. WARNING: unable to delete selinux filesystems (/tmp/mock-selinux-plugin.C6Hqy8): [Errno 1] Operation not permitted: '/tmp/mock-selinux-plugin.C6Hqy8'