Red Hat Bugzilla – Bug 995921
[abrt] policycoreutils-gui-2.1.14-46.4.fc19: generate.py:1107:generate_fc:AttributeError: 'module' object has no attribute 'fc_dir'
Last modified: 2015-01-14 08:12:13 EST
Description of problem:
Tried to create a policy to allow zmpkg.pl
Version-Release number of selected component:
cmdline: /usr/bin/python -Es /usr/bin/selinux-polgengui
runlevel: N 5
generate.py:1107:generate_fc:AttributeError: 'module' object has no attribute 'fc_dir'
Traceback (most recent call last):
File "/usr/bin/selinux-polgengui", line 372, in forward
File "/usr/bin/selinux-polgengui", line 518, in generate_policy
File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line 1362, in generate
out += "%s # %s\n" % (self.write_fc(out_dir), _("File Contexts file"))
File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line 1247, in write_fc
File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line 1107, in generate_fc
t1 = re.sub("TEMPLATETYPE", self.name, self.dirs[i].fc_dir)
AttributeError: 'module' object has no attribute 'fc_dir'
Local variables in innermost frame:
self: <sepolicy.generate.policy instance at 0xa375f80>
fclist: ['/usr/local/bin/zmpkg.pl\t\t--\tgen_context(system_u:object_r:zmpkg_exec_t,s0)\n', '/var/log/zoneminder(/.*)?\t\tgen_context(system_u:object_r:zmpkg_log_t,s0)\n']
Created attachment 785515 [details]
Created attachment 785516 [details]
What command did you run?
Btw. there is a policy for zmpkg.pl.
1>>grep zmpkg.pl /var/log/audit/audit.log | audit2allow -M mypol
2>>semodule -i mypol.pp
Do you have a copy of a working policy for zmpkg.pl that I can apply?
This message is a notice that Fedora 19 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 19. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 19 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.