* Fedora 23 error when using policy generator
@ 2016-03-27 0:39 Amir Eaman
2016-03-27 3:29 ` Amir Eaman
0 siblings, 1 reply; 3+ messages in thread
From: Amir Eaman @ 2016-03-27 0:39 UTC (permalink / raw)
To: selinux
[-- Attachment #1: Type: text/plain, Size: 976 bytes --]
Hi,
When I press apply button in the last step for policy generator on Fedora
23 the following error is issued. What should I do?
> Failed to retrieve rpm info for selinux-policy
> Traceback (most recent call last):
> File "/usr/lib/python-exec/python2.7/sepolicy", line 643, in <module>
> args.func(args)
> File "/usr/lib/python-exec/python2.7/sepolicy", line 517, in generate
> print mypolicy.generate(args.path)
> File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line 1370, in generate
> out += "%s # %s\n" % (self.write_spec(out_dir), _("Spec file"))
> File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line 1219, in write_spec
> fd.write(self.generate_spec())
> File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line 1181, in generate_spec
> selinux_policyver = get_rpm_nvr_list("selinux-policy")[1]
> TypeError: 'NoneType' object has no attribute '__getitem__'
--
[-- Attachment #2: Type: text/html, Size: 1741 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Fedora 23 error when using policy generator 2016-03-27 0:39 Fedora 23 error when using policy generator Amir Eaman @ 2016-03-27 3:29 ` Amir Eaman 2016-03-29 8:33 ` Miroslav Grepl 0 siblings, 1 reply; 3+ messages in thread From: Amir Eaman @ 2016-03-27 3:29 UTC (permalink / raw) To: selinux [-- Attachment #1: Type: text/plain, Size: 2018 bytes --] The exact error is: in Fedora 23 root@localhost selinux-master]# *selinux-polgengui* Failed to retrieve rpm info for selinux-policy > Traceback (most recent call last): > File "/bin/selinux-polgengui", line 360, in forward > self.generate_policy() > File "/bin/selinux-polgengui", line 506, in generate_policy > self.info(my_policy.generate(outputdir)) > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line > 1382, in generate > out += "%s # %s\n" % (self.write_spec(out_dir), _("Spec file")) > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line > 1228, in write_spec > fd.write(self.generate_spec()) > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line > 1190, in generate_spec > selinux_policyver = get_rpm_nvr_list("selinux-policy")[1] > TypeError: 'NoneType' object has no attribute '__getitem__' > On Sat, Mar 26, 2016 at 8:39 PM, Amir Eaman <amir.imen@gmail.com> wrote: > Hi, > When I press apply button in the last step for policy generator on Fedora > 23 the following error is issued. What should I do? > > > > Failed to retrieve rpm info for selinux-policy > > Traceback (most recent call last): > > File "/usr/lib/python-exec/python2.7/sepolicy", line 643, in <module> > > args.func(args) > > File "/usr/lib/python-exec/python2.7/sepolicy", line 517, in generate > > print mypolicy.generate(args.path) > > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line 1370, in generate > > out += "%s # %s\n" % (self.write_spec(out_dir), _("Spec file")) > > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line 1219, in write_spec > > fd.write(self.generate_spec()) > > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line 1181, in generate_spec > > selinux_policyver = get_rpm_nvr_list("selinux-policy")[1] > > TypeError: 'NoneType' object has no attribute '__getitem__' > > > > -- > > -- [-- Attachment #2: Type: text/html, Size: 8958 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Fedora 23 error when using policy generator 2016-03-27 3:29 ` Amir Eaman @ 2016-03-29 8:33 ` Miroslav Grepl 0 siblings, 0 replies; 3+ messages in thread From: Miroslav Grepl @ 2016-03-29 8:33 UTC (permalink / raw) To: Amir Eaman, selinux On 03/27/2016 05:29 AM, Amir Eaman wrote: > The exact error is: in Fedora 23 > > root@localhost selinux-master]# *selinux-polgengui*** > > Failed to retrieve rpm info for selinux-policy > Traceback (most recent call last): > File "/bin/selinux-polgengui", line 360, in forward > self.generate_policy() > File "/bin/selinux-polgengui", line 506, in generate_policy > self.info <http://self.info>(my_policy.generate(outputdir)) > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", > line 1382, in generate > out += "%s # %s\n" % (self.write_spec(out_dir), _("Spec file")) > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", > line 1228, in write_spec > fd.write(self.generate_spec()) > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", > line 1190, in generate_spec > selinux_policyver = get_rpm_nvr_list("selinux-policy")[1] > TypeError: 'NoneType' object has no attribute '__getitem__' > > > On Sat, Mar 26, 2016 at 8:39 PM, Amir Eaman <amir.imen@gmail.com > <mailto:amir.imen@gmail.com>> wrote: > > Hi, > When I press apply button in the last step for policy generator on > Fedora 23 the following error is issued. What should I do? > > > > Failed to retrieve rpm info for selinux-policy > > Traceback (most recent call last): > > File "/usr/lib/python-exec/python2.7/sepolicy", line 643, in <module> > > args.func(args) > > File "/usr/lib/python-exec/python2.7/sepolicy", line 517, in generate > > print mypolicy.generate(args.path) > > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line 1370, in generate > > out += "%s # %s\n" % (self.write_spec(out_dir), _("Spec file")) > > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line 1219, in write_spec > > fd.write(self.generate_spec()) > > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line 1181, in generate_spec > > selinux_policyver = get_rpm_nvr_list("selinux-policy")[1] > > TypeError: 'NoneType' object has no attribute '__getitem__' Could you please open a new Fedora bug - https://bugzilla.redhat.com/. Thank you. > > > > -- > > > > > -- > > > > _______________________________________________ > Selinux mailing list > Selinux@tycho.nsa.gov > To unsubscribe, send email to Selinux-leave@tycho.nsa.gov. > To get help, send an email containing "help" to Selinux-request@tycho.nsa.gov. > -- Miroslav Grepl Senior Software Engineer, SELinux Solutions Red Hat, Inc. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-03-29 8:35 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-03-27 0:39 Fedora 23 error when using policy generator Amir Eaman 2016-03-27 3:29 ` Amir Eaman 2016-03-29 8:33 ` Miroslav Grepl
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.