Bug 632191 - [abrt] policycoreutils-gui-2.0.83-21.fc14: __init__.py:49:seinfo:RuntimeError: No default policy found.
Summary: [abrt] policycoreutils-gui-2.0.83-21.fc14: __init__.py:49:seinfo:RuntimeError...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: 14
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1e2b1d69
: 632437 (view as bug list)
Depends On:
Blocks: 689153
TreeView+ depends on / blocked
 
Reported: 2010-09-09 11:18 UTC by Edney Matias
Modified: 2011-03-19 22:10 UTC (History)
7 users (show)

Fixed In Version: policycoreutils-2.0.83-33.5.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-12-17 20:27:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (654 bytes, text/plain)
2010-09-09 11:18 UTC, Edney Matias
no flags Details

Description Edney Matias 2010-09-09 11:18:50 UTC
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.

Comment 1 Edney Matias 2010-09-09 11:18:53 UTC
Created an attachment (id=446229)
File: backtrace

Comment 2 Daniel Walsh 2010-09-09 12:07:21 UTC
Were you trying to run this on a machine with SELinux disabled?

Comment 3 Edney Matias 2010-09-09 20:52:17 UTC
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.

Comment 4 Daniel Walsh 2010-09-10 15:18:05 UTC
*** Bug 632437 has been marked as a duplicate of this bug. ***

Comment 5 Daniel Walsh 2010-09-10 15:48:27 UTC
Fixed in policycoreutils-2.0.83-26

Comment 6 GJahchan 2010-09-21 13:13:22 UTC
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.

Comment 7 Daniel Walsh 2010-09-22 20:40:27 UTC
Please test the updated package.

Comment 8 Stephan Peccini 2010-12-10 14:24:35 UTC
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.

Comment 9 Szabo Akos 2010-12-13 12:07:11 UTC
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

Comment 10 Daniel Walsh 2010-12-13 14:26:41 UTC
Do you have NFS home dirs?

Comment 11 Szabo Akos 2010-12-13 21:22:38 UTC
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.

Comment 12 Amit Shah 2010-12-14 05:52:59 UTC
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.

Comment 13 Amit Shah 2010-12-14 05:55:18 UTC
Marking 'assigned' since it happens with a newer version of policycoreutils.

Comment 14 Fedora Update System 2010-12-14 14:47:27 UTC
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

Comment 15 Daniel Walsh 2010-12-14 14:49:16 UTC
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.

Comment 16 Amit Shah 2010-12-15 07:19:54 UTC
(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!

Comment 17 Fedora Update System 2010-12-15 08:54:22 UTC
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

Comment 18 Szabo Akos 2010-12-15 09:43:30 UTC
The new version policycoreutils-2.0.83-33.5.fc14.x86_64.rpm works fine! Thank You a lot!

Comment 19 Daniel Walsh 2010-12-15 14:03:24 UTC
Please update karma (feedback)

Comment 20 Fedora Update System 2010-12-17 20:27:54 UTC
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.


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