Bug 509344 - SELinux policy generation fails
SELinux policy generation fails
Product: Fedora
Classification: Fedora
Component: policycoreutils (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2009-07-02 07:39 EDT by Fabrice Colin
Modified: 2009-11-18 08:10 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-11-18 08:10:02 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Fabrice Colin 2009-07-02 07:39:18 EDT
Description of problem:
I am trying to create a new policy with system-config-selinux, using the SELinux Policy Generation Tool open by "Policy Module" > "New".
After filling in the details, nothing happens when pressing the Apply button and the following trace is output :

/root/selinuxTraceback (most recent call last):
  File "/usr/share/system-config-selinux/polgengui.py", line 273, in forward
  File "/usr/share/system-config-selinux/polgengui.py", line 414, in generate_policy
  File "/usr/share/system-config-selinux/polgen.py", line 1000, in generate
    out += "%-25s %s\n" % (_("Type Enforcement file"), self.write_te(out_dir))
  File "/usr/share/system-config-selinux/polgen.py", line 962, in write_te
  File "/usr/share/system-config-selinux/polgen.py", line 848, in generate_te
    newte += self.generate_process()
  File "/usr/share/system-config-selinux/polgen.py", line 577, in generate_process
AttributeError: policy instance has no attribute 'process'

Version-Release number of selected component (if applicable):
$ rpm -qf `which system-config-selinux `

How reproducible:
Just using the default values in all pages of the wizard seems to reproduce this every time.

Steps to Reproduce:
1. Open system-config-selinux
2. Go to "Policy Module" > "New"
3. Use default values
4. Press the Apply button
Actual results:
Program fails to generate a new module.

Expected results:
A new module is created in the user-specified location.

Additional info:
Replacing line 577 of /usr/share/system-config-selinux/polgen.py with
does the trick.

Comment 1 Daniel Walsh 2009-07-09 09:18:06 EDT
Fixed in policycoreutils-2.0.62-12.12.fc11

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