Your message dated Mon, 15 Jun 2009 22:03:56 +0000
with message-id <[email protected]>
and subject line Bug#525197: fixed in sepolgen 1.0.16-1
has caused the Debian Bug report #525197,
regarding python2.6 and python-sepolgen
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
525197: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=525197
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sepolgen
Version: 1.0.13-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu jaunty ubuntu-patch

Hello,

It's not yet clear if this is a Python2.6 bug, or if it is a bug in
sepolgen, but under python 2.6 (e.g. in Ubuntu[1]) "audit2allow" fails:

$ cat /dev/null | audit2allow1
...
  File "/var/lib/python-support/python2.6/sepolgen/access.py", line 316, in 
__len__
    return len(self.roles)
AttributeError: RoleTypeSet instance has no attribute 'roles'

I'm filing this here in case this become a problem in sepolgen in Debian
too once Python2.6 becomes the default.

A patch from Marshall Miller that fixes it is attached.  Thanks,

-Kees

[1] https://bugs.launchpad.net/bugs/352610

-- 
Kees Cook                                            @debian.org
diff -u -r orig-sepolgen-1.0.13/src/sepolgen/access.py sepolgen-1.0.13/src/sepolgen/access.py
--- orig-sepolgen-1.0.13/src/sepolgen/access.py	2008-08-26 09:40:22.000000000 -0400
+++ sepolgen-1.0.13/src/sepolgen/access.py	2009-03-31 14:10:18.000000000 -0400
@@ -313,7 +313,7 @@
 
     def __len__(self):
         """Return the unique number of role allow statements."""
-        return len(self.roles)
+        return len(self.role_types.keys())
 
     def add(self, role, type):
         if self.role_types.has_key(role):

--- End Message ---
--- Begin Message ---
Source: sepolgen
Source-Version: 1.0.16-1

We believe that the bug you reported is fixed in the latest version of
sepolgen, which is due to be installed in the Debian FTP archive:

python-sepolgen_1.0.16-1_all.deb
  to pool/main/s/sepolgen/python-sepolgen_1.0.16-1_all.deb
sepolgen_1.0.16-1.diff.gz
  to pool/main/s/sepolgen/sepolgen_1.0.16-1.diff.gz
sepolgen_1.0.16-1.dsc
  to pool/main/s/sepolgen/sepolgen_1.0.16-1.dsc
sepolgen_1.0.16.orig.tar.gz
  to pool/main/s/sepolgen/sepolgen_1.0.16.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Manoj Srivastava <[email protected]> (supplier of updated sepolgen package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Format: 1.8
Date: Mon, 15 Jun 2009 14:30:39 -0500
Source: sepolgen
Binary: python-sepolgen
Architecture: source all
Version: 1.0.16-1
Distribution: unstable
Urgency: low
Maintainer: Russell Coker <[email protected]>
Changed-By: Manoj Srivastava <[email protected]>
Description: 
 python-sepolgen - A Python module used in SELinux policy generation
Closes: 525197
Changes: 
 sepolgen (1.0.16-1) unstable; urgency=low
 .
   * New upstream release
     + Convert sepolgen to using hashlib instead of the deprecated md5
       module from Dan Walsh.
     + fix to return length of role dict for len(roles) from Dan Walsh.
       Bug fix: "python2.6 and python-sepolgen", thanks to Kees Cook
       Patch incorporated upstream.                    (Closes: #525197).
     + fix multiple gen_requires block generation from Dan Walsh.
   * [e171cfe]: Updated standards version. no changes.
Checksums-Sha1: 
 36d093c3658a9a1be3d0cd1a3fe47100b739713d 1195 sepolgen_1.0.16-1.dsc
 0eb2098a2d9d228869eda20295c2534cc100c09c 362329 sepolgen_1.0.16.orig.tar.gz
 29823ff9e000dc5a763af634f2530bc8a265e38c 19888 sepolgen_1.0.16-1.diff.gz
 b3261e3704b6f95ac3119f1123f1676e016175d5 74932 python-sepolgen_1.0.16-1_all.deb
Checksums-Sha256: 
 0c57ccba4f60b4926f9824a82827a5700fb77d0e3fc731b57d52c869540797c0 1195 
sepolgen_1.0.16-1.dsc
 435472490300e3d1222d3cbf70238fa7893cf0d7593cfbdbd62064c62b334f39 362329 
sepolgen_1.0.16.orig.tar.gz
 5a5feb8c46ba1a6a8ef7baff86494b4436cd0a7bc974f9c74215f0e4589d8e1d 19888 
sepolgen_1.0.16-1.diff.gz
 06f7b70fa4cebe4d216e63485a0c6fb300f973fbac7e0de6e7b4c93d52e4e238 74932 
python-sepolgen_1.0.16-1_all.deb
Files: 
 38e84b048eab50d06be5885abfd95c94 1195 python optional sepolgen_1.0.16-1.dsc
 c418c4f2bdaa40e26d06e465f1907c48 362329 python optional 
sepolgen_1.0.16.orig.tar.gz
 f29b2b9de6876e4979384a6bc3a15363 19888 python optional 
sepolgen_1.0.16-1.diff.gz
 1769d443249b868c016cf1d40ec25b84 74932 python optional 
python-sepolgen_1.0.16-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREDAAYFAko2wH4ACgkQIbrau78kQkzL3gCfVV04oWgJAMlyma6sBZIjrQjk
+zoAoMOkXWDpDNN9urfsQ1wuXBmHPFMh
=7H4X
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to