Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 444903 - [PATCH] Can't generate policy for user application
Summary: [PATCH] Can't generate policy for user application
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: rawhide
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F9Target
TreeView+ depends on / blocked
 
Reported: 2008-05-01 17:15 UTC by Lubomir Rintel
Modified: 2008-05-07 11:34 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-05-07 11:34:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Fix traceback when generating policy for user application (deleted)
2008-05-01 17:15 UTC, Lubomir Rintel
no flags Details
Don't let stderr output clobber various lists (deleted)
2008-05-01 17:29 UTC, Lubomir Rintel
no flags Details
Necessary changes to SPEC file, fix -gui Requires (deleted)
2008-05-01 17:34 UTC, Lubomir Rintel
no flags Details

Description Lubomir Rintel 2008-05-01 17:15:48 UTC
Description of problem:

** (selinux-polgengui:21402): WARNING **: keyboard grab failed: keyboard already
grabbed by another window
/usr/share/system-config-selinux/polgengui.py:354: DeprecationWarning: raising a
string exception is deprecated
  raise(_("You must select a user"))
Traceback (most recent call last):
  File "/usr/share/system-config-selinux/polgengui.py", line 299, in forward
    self.generate_policy()
  File "/usr/share/system-config-selinux/polgengui.py", line 384, in generate_policy
    my_policy=polgen.policy(self.get_name(), self.get_type())
  File "/usr/share/system-config-selinux/polgengui.py", line 354, in get_name
    raise(_("You must select a user"))
You must select a user

Version-Release number of selected component (if applicable):

policycoreutils-gui-2.0.46-5.fc9.i386

Additional info:

See the attached patch for more information.

Comment 1 Lubomir Rintel 2008-05-01 17:15:48 UTC
Created attachment 304322 [details]
Fix traceback when generating policy for user application

Comment 2 Lubomir Rintel 2008-05-01 17:29:27 UTC
Created attachment 304324 [details]
Don't let stderr output clobber various lists

I'll reuse this bug for some more problems, since they have to be fixed at the
same time, contain the fix, and should be fixed at the same time.

Comment 3 Lubomir Rintel 2008-05-01 17:34:25 UTC
Created attachment 304325 [details]
Necessary changes to SPEC file, fix -gui Requires

And at last changes to SPEC file. Note the missing dependency which would cause
selinux-polgenui misbehave silently.

I did not commit these myself, because I really don't know any Python at all,
so I'd be glad if you reviewed whether I haven't broken anything.

Thanks.

Comment 4 Bill Nottingham 2008-05-02 21:39:12 UTC
At this point, I'm not seeing this as a release blocking issue. Moving to F9-target.

Comment 5 Daniel Walsh 2008-05-07 11:34:31 UTC
Fixed in policycoreutils-2.0.47-1


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