Hide Forgot
+++ This bug was initially created as a clone of Bug 632191 +++ abrt version: 1.1.13 architecture: i686 cmdline: /usr/bin/python -Es /usr/bin/selinux-polgengui component: policycoreutils executable: /usr/bin/selinux-polgengui kernel: 2.6.35.4-12.fc14.i686 package: policycoreutils-gui-2.0.83-21.fc14 reason: __init__.py:49:seinfo:RuntimeError: No default policy found. release: Fedora release 14 (Laughlin) time: 1283906588 uid: 500 backtrace ----- __init__.py:49:seinfo:RuntimeError: No default policy found. Traceback (most recent call last): File "/usr/bin/selinux-polgengui", line 649, in <module> app = childWindow() File "/usr/bin/selinux-polgengui", line 94, in __init__ self.all_types=polgen.get_all_types() File "/usr/share/system-config-selinux/polgen.py", line 79, in get_all_types all_types = map(lambda x: x['name'], setools.seinfo(setools.TYPE)) File "/usr/lib/python2.7/site-packages/setools/__init__.py", line 49, in seinfo dict_list = _seinfo.seinfo(setype, name) RuntimeError: No default policy found. Local variables in innermost frame: setype: 0 name: None How to reproduce ----- 1. reboot machine 2. 3. --- Additional comment from edneymatias onThu Sep 09 11:18:53 EDT 2010 --- Created an attachment (id=446229) File: backtrace --- Additional comment from dwalsh onThu Sep 09 12:07:21 EDT 2010 --- Were you trying to run this on a machine with SELinux disabled? --- Additional comment from edneymatias onThu Sep 09 20:52:17 EDT 2010 --- I wasn't trying anything at all i just restarted my machine, but indeed before that i disabled and enabled SELinux again but that was 2 days ago. Since that SELinux is enabled. --- Additional comment from dwalsh onFri Sep 10 15:18:05 EDT 2010 --- *** Bug 632437 has been marked as a duplicate of this bug. *** --- Additional comment from dwalsh onFri Sep 10 15:48:27 EDT 2010 --- Fixed in policycoreutils-2.0.83-26 --- Additional comment from GJahchan onTue Sep 21 13:13:22 EDT 2010 --- Package: policycoreutils-python-2.0.83-20.fc13 Architecture: x86_64 OS Release: Fedora release 13 (Goddard) How to reproduce ----- 1. Ran audit2allow as an unprivileged user against a manually extracted audit log. 2. 3. Comment ----- The problem does not manifest itself if I "sudo audit2allow ..." on the same log file. --- Additional comment from dwalsh onWed Sep 22 20:40:27 EDT 2010 --- Please test the updated package. --- Additional comment from stephan onFri Dec 10 14:24:35 EST 2010 --- Package: policycoreutils-python-2.0.83-33.4.fc14 Architecture: x86_64 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1.~/sandbox/home and ~/sandox/tmp created 2.cd ~/sandbox 3.sandbox -X -H home -T tmp -t sandbox_web_t firefox Comment ----- Sandbox is not working, whatever command I start (even sandbox alone) with always the same error. --- Additional comment from fonya onMon Dec 13 12:07:11 EST 2010 --- Package: policycoreutils-python-2.0.83-33.4.fc14 Architecture: x86_64 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1. try to run a snadboxed X11 apps 2. 3. Comment ----- my command line: /usr/bin/sandbox -t sandbox_web_t -X firefox https://gmail.com/ And the complett output: [fonya@cellaxps ~]$ /usr/bin/sandbox -t sandbox_web_t -X firefox https://gmail.com/ Traceback (most recent call last): File "/usr/bin/sandbox", line 443, in <module> rc = sandbox.main() File "/usr/bin/sandbox", line 428, in main self.__parse_options() File "/usr/bin/sandbox", line 251, in __parse_options types = "\t" + "\n\t".join(setools.seinfo(setools.ATTRIBUTE, "sandbox_type")[0]['types']) File "/usr/lib64/python2.7/site-packages/setools/__init__.py", line 49, in seinfo dict_list = _seinfo.seinfo(setype, name) RuntimeError: Invalid argument --- Additional comment from dwalsh onMon Dec 13 14:26:41 EST 2010 --- Do you have NFS home dirs? --- Additional comment from fonya onMon Dec 13 21:22:38 EST 2010 --- No, I have NFS in under my home dir, in a subdirs, but not my home: Filesystem Mounted on /dev/sda6 / tmpfs /dev/shm /dev/sda4 /boot mir:/home/fonya /home/fonya/mir BTW in the above case, I don't use nfs. Previous version was working perfectly for sandbox. --- Additional comment from amit.shah onTue Dec 14 05:52:59 EST 2010 --- Package: policycoreutils-python-2.0.83-33.4.fc14 Architecture: x86_64 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1. Start a firefox instance in a sandbox 2. Crash after the latest policy update. 3. --- Additional comment from amit.shah onTue Dec 14 05:55:18 EST 2010 --- Marking 'assigned' since it happens with a newer version of policycoreutils. --- Additional comment from updates onTue Dec 14 14:47:27 EST 2010 --- policycoreutils-2.0.83-33.5.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/policycoreutils-2.0.83-33.5.fc14 --- Additional comment from dwalsh onTue Dec 14 14:49:16 EST 2010 --- I have updated policycoreutils to handle this situation. Will be adding policy updates to make this function nicely. This works pretty well in Rawhide. Sorry about the back port problem. --- Additional comment from amit.shah onWed Dec 15 07:19:54 EST 2010 --- (In reply to comment #15) > I have updated policycoreutils to handle this situation. I installed policycoreutils-2.0.83-33.5.fc14.x86_64.rpm from koji and sandboxed firefox works fine. Thanks! --- Additional comment from updates onWed Dec 15 08:54:22 EST 2010 --- policycoreutils-2.0.83-33.5.fc14 has been pushed to the Fedora 14 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 policycoreutils'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/policycoreutils-2.0.83-33.5.fc14 --- Additional comment from fonya onWed Dec 15 09:43:30 EST 2010 --- The new version policycoreutils-2.0.83-33.5.fc14.x86_64.rpm works fine! Thank You a lot! --- Additional comment from dwalsh onWed Dec 15 14:03:24 EST 2010 --- Please update karma (feedback) --- Additional comment from updates onFri Dec 17 20:27:54 EST 2010 --- policycoreutils-2.0.83-33.5.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
Created attachment 486418 [details] File: backtrace
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. If you would like it considered as an exception in the current release, please ask your support representative.
Created attachment 495040 [details] File: backtrace
Fixed in policycoreutils-2.0.83-19.2.el6
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. http://rhn.redhat.com/errata/RHBA-2011-1637.html