All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miroslav Grepl <mgrepl@redhat.com>
To: Amir Eaman <amir.imen@gmail.com>, selinux@tycho.nsa.gov
Subject: Re: Fedora 23 error when using policy generator
Date: Tue, 29 Mar 2016 10:33:50 +0200	[thread overview]
Message-ID: <56FA3DEE.40801@redhat.com> (raw)
In-Reply-To: <CA+D4ZVpHWM_hS_Ld8n00yJ_A_aO517WJp1mDrW+kXJvdeJo=mw@mail.gmail.com>

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.

      reply	other threads:[~2016-03-29  8:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56FA3DEE.40801@redhat.com \
    --to=mgrepl@redhat.com \
    --cc=amir.imen@gmail.com \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.