Bug 1045684 - mock can't init because selinux doesn't permit the operation
Summary: mock can't init because selinux doesn't permit the operation
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libselinux
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-21 07:32 UTC by Christopher Meng
Modified: 2013-12-31 03:57 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-31 03:57:46 UTC
Type: Bug


Attachments (Terms of Use)

Description Christopher Meng 2013-12-21 07:32:27 UTC
[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'

Comment 1 Christopher Meng 2013-12-31 03:57:46 UTC
Fixed in recent libselinux update. Closed.


Note You need to log in before you can comment on or make changes to this bug.