Bug 630592 - [abrt] policycoreutils-python-2.0.83-20.fc13: sandbox:353:__setup_dir:AttributeError: 'module' object has no attribute 'chcon'
Summary: [abrt] policycoreutils-python-2.0.83-20.fc13: sandbox:353:__setup_dir:Attribu...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: 13
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:373ec7ca
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-06 10:59 UTC by Christoph A.
Modified: 2010-09-10 03:28 UTC (History)
3 users (show)

Fixed In Version: libselinux-2.0.94-2.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-10 03:28:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (564 bytes, text/plain)
2010-09-06 10:59 UTC, Christoph A.
no flags Details

Description Christoph A. 2010-09-06 10:59:48 UTC
abrt version: 1.1.13
architecture: x86_64
component: policycoreutils
executable: /usr/bin/sandbox
kernel: 2.6.34.6-47.fc13.x86_64
package: policycoreutils-python-2.0.83-20.fc13
reason: sandbox:353:__setup_dir:AttributeError: 'module' object has no attribute 'chcon'
release: Fedora release 13 (Goddard)
time: 1283770592
uid: 500

backtrace
-----
sandbox:353:__setup_dir:AttributeError: 'module' object has no attribute 'chcon'

Traceback (most recent call last):
  File "/usr/bin/sandbox", line 423, in <module>
    rc = sandbox.main()
  File "/usr/bin/sandbox", line 410, in main
    self.__setup_dir()
  File "/usr/bin/sandbox", line 353, in __setup_dir
    selinux.chcon(self.__options.homedir, self.__filecon, recursive=True)
AttributeError: 'module' object has no attribute 'chcon'

Local variables in innermost frame:
sandboxdir: '/home/user/.sandbox'
self: <__main__.Sandbox instance at 0x7fc951635b00>

How to reproduce
-----
1. start a sandbox including -X -t -i -H options

Comment 1 Christoph A. 2010-09-06 10:59:51 UTC
Created an attachment (id=443275)
File: backtrace

Comment 2 Christoph A. 2010-09-06 11:08:01 UTC
'-H' option causes the problem and is therefore not functional any more

sandbox -X -H foo evince
Traceback (most recent call last):
  File "/usr/bin/sandbox", line 423, in <module>
    rc = sandbox.main()
  File "/usr/bin/sandbox", line 410, in main
    self.__setup_dir()
  File "/usr/bin/sandbox", line 353, in __setup_dir
    selinux.chcon(self.__options.homedir, self.__filecon, recursive=True)
AttributeError: 'module' object has no attribute 'chcon'

Comment 3 Daniel Walsh 2010-09-07 19:13:54 UTC
Fixed in libselinux-2.0.94-2.fc13.src.rpm

Comment 4 Fedora Update System 2010-09-07 19:53:00 UTC
libselinux-2.0.94-2.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/libselinux-2.0.94-2.fc13

Comment 5 Fedora Update System 2010-09-08 02:23:13 UTC
libselinux-2.0.94-2.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update libselinux'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/libselinux-2.0.94-2.fc13

Comment 6 Fedora Update System 2010-09-10 03:28:25 UTC
libselinux-2.0.94-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


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