* global name 'seinfo' is not defined
@ 2012-03-19 6:16 Russell Coker
2012-03-19 12:11 ` Stephen Smalley
0 siblings, 1 reply; 4+ messages in thread
From: Russell Coker @ 2012-03-19 6:16 UTC (permalink / raw)
To: SE-Linux
I'm stuck on the following error after updating the Debian packages to the
latest userspace. Could someone please tell me where this "seinfo" function
is supposed to be defined? I can probably work out the cause of this if I
could find where it's defined.
As an aside, if someone who's good at Python wants to help out with the Debian
SE Linux work then that would be greatly appreciated. Not much work is
required, but it's tough for people like me who generally don't do Python.
# dmesg|audit2allow
Traceback (most recent call last):
File "/usr/bin/audit2allow", line 354, in <module>
app.main()
File "/usr/bin/audit2allow", line 345, in main
self.__output()
File "/usr/bin/audit2allow", line 315, in __output
g.add_access(self.__avs)
File "/usr/lib/python2.7/dist-packages/sepolgen/policygen.py", line 211, in
add_access
self.__add_allow_rules(raw_allow)
File "/usr/lib/python2.7/dist-packages/sepolgen/policygen.py", line 179, in
__add_allow_rules
self.domains = seinfo(ATTRIBUTE, name="domain")[0]["types"]
NameError: global name 'seinfo' is not defined
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: global name 'seinfo' is not defined
2012-03-19 6:16 global name 'seinfo' is not defined Russell Coker
@ 2012-03-19 12:11 ` Stephen Smalley
2012-03-19 13:49 ` Daniel J Walsh
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Smalley @ 2012-03-19 12:11 UTC (permalink / raw)
To: russell; +Cc: SE-Linux
On Mon, 2012-03-19 at 17:16 +1100, Russell Coker wrote:
> I'm stuck on the following error after updating the Debian packages to the
> latest userspace. Could someone please tell me where this "seinfo" function
> is supposed to be defined? I can probably work out the cause of this if I
> could find where it's defined.
setools (setools-libs-python in Fedora).
>
> As an aside, if someone who's good at Python wants to help out with the Debian
> SE Linux work then that would be greatly appreciated. Not much work is
> required, but it's tough for people like me who generally don't do Python.
>
>
> # dmesg|audit2allow
> Traceback (most recent call last):
> File "/usr/bin/audit2allow", line 354, in <module>
> app.main()
> File "/usr/bin/audit2allow", line 345, in main
> self.__output()
> File "/usr/bin/audit2allow", line 315, in __output
> g.add_access(self.__avs)
> File "/usr/lib/python2.7/dist-packages/sepolgen/policygen.py", line 211, in
> add_access
> self.__add_allow_rules(raw_allow)
> File "/usr/lib/python2.7/dist-packages/sepolgen/policygen.py", line 179, in
> __add_allow_rules
> self.domains = seinfo(ATTRIBUTE, name="domain")[0]["types"]
> NameError: global name 'seinfo' is not defined
>
--
Stephen Smalley
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: global name 'seinfo' is not defined
2012-03-19 12:11 ` Stephen Smalley
@ 2012-03-19 13:49 ` Daniel J Walsh
2012-03-19 14:23 ` lkcl luke
0 siblings, 1 reply; 4+ messages in thread
From: Daniel J Walsh @ 2012-03-19 13:49 UTC (permalink / raw)
To: Stephen Smalley; +Cc: russell, SE-Linux
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 03/19/2012 08:11 AM, Stephen Smalley wrote:
> On Mon, 2012-03-19 at 17:16 +1100, Russell Coker wrote:
>> I'm stuck on the following error after updating the Debian
>> packages to the latest userspace. Could someone please tell me
>> where this "seinfo" function is supposed to be defined? I can
>> probably work out the cause of this if I could find where it's
>> defined.
>
> setools (setools-libs-python in Fedora).
>
>>
>> As an aside, if someone who's good at Python wants to help out
>> with the Debian SE Linux work then that would be greatly
>> appreciated. Not much work is required, but it's tough for
>> people like me who generally don't do Python.
>>
>>
>> # dmesg|audit2allow Traceback (most recent call last): File
>> "/usr/bin/audit2allow", line 354, in <module> app.main() File
>> "/usr/bin/audit2allow", line 345, in main self.__output() File
>> "/usr/bin/audit2allow", line 315, in __output
>> g.add_access(self.__avs) File
>> "/usr/lib/python2.7/dist-packages/sepolgen/policygen.py", line
>> 211, in add_access self.__add_allow_rules(raw_allow) File
>> "/usr/lib/python2.7/dist-packages/sepolgen/policygen.py", line
>> 179, in __add_allow_rules self.domains = seinfo(ATTRIBUTE,
>> name="domain")[0]["types"] NameError: global name 'seinfo' is not
>> defined
>>
>
Here are the appatches to setools that Fedora applies, currently. If
upstream is willing to take them, that would be great.
http://people.fedoraproject.org/~dwalsh/SELinux/setools/
The biggest change is the addition of setools bindings, which has
allowed us to build some interesting command line tools and enhance
setroubleshoot.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9nOXMACgkQrlYvE4MpobPuegCfaBSLAU4cY5CeJA0uQB4z08z+
6hYAn0COBnUBSSoaq1covtqMUn6CqZdk
=32fD
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: global name 'seinfo' is not defined
2012-03-19 13:49 ` Daniel J Walsh
@ 2012-03-19 14:23 ` lkcl luke
0 siblings, 0 replies; 4+ messages in thread
From: lkcl luke @ 2012-03-19 14:23 UTC (permalink / raw)
To: Daniel J Walsh; +Cc: Stephen Smalley, russell, SE-Linux
On Mon, Mar 19, 2012 at 1:49 PM, Daniel J Walsh <dwalsh@redhat.com> wrote:
> Here are the appatches to setools that Fedora applies, currently. If
> upstream is willing to take them, that would be great.
>
> http://people.fedoraproject.org/~dwalsh/SELinux/setools/
ah, crossover. should have read ahead before doing random google
searches to find the patches :) thanks dan.
russell: that was why i cc'd dan, so that he could, if he chose, help
advise how fedora does it, then you could translate that to debian.
l.
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-03-19 14:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-19 6:16 global name 'seinfo' is not defined Russell Coker
2012-03-19 12:11 ` Stephen Smalley
2012-03-19 13:49 ` Daniel J Walsh
2012-03-19 14:23 ` lkcl luke
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.