Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: Hardened

SELinux failure during emerge: setfscreatecon() takes exactly 1 argument

 

 

Gentoo hardened RSS feed   Index | Next | Previous | View Threaded


kutulu at kutulu

Sep 18, 2009, 11:58 AM

Post #1 of 3 (696 views)
Permalink
SELinux failure during emerge: setfscreatecon() takes exactly 1 argument

For about the past two weeks I've been receiving the
following error on our SELinux-enabled web server, any time
I attempt to upgrade or install a package from portage.

File "/usr/lib/portage/pym/portage/_selinux.py", line 50,
in mkdir
selinux.setfscreatecon()
TypeError: setfscreatecon() takes exactly 1 argument (0 given)

In each case, if I re-run the emerge command, the package
installs successfully the second time, but portage complains
about file collisions during the final merge step. The
attached build log shows this condition: the previous
upgrade attempt failed during timezone-data. The log shows
the second upgrade attempt, where timezone-data installs
correctly but README.bz2 indicates a collision.

I have reinstalled portage, python-selinux, and libselinux
successfully (by disabling selinux in FEATURES) but the
problem persists. I have the most recent selinux userland
from portage (:

[I] dev-python/python-selinux (2.16-r2 [at] 0/17/2009)
[I] dev-python/sepolgen (1.0.17 [at] 0/03/2009)
[I] sys-libs/libselinux (2.0.85 [at] 0/17/2009)
[I] sys-libs/libsemanage (2.0.33-r1 [at] 0/18/2009)
[I] sys-libs/libsepol (2.0.37 [at] 0/04/2009)
[I] sys-apps/portage (2.2_rc40 [at] 0/17/2009)
Attachments: setfscreatecon_failure.log (9.12 KB)


agaffney at gentoo

Sep 18, 2009, 6:52 PM

Post #2 of 3 (640 views)
Permalink
Re: SELinux failure during emerge: setfscreatecon() takes exactly 1 argument [In reply to]

On 09/18/2009 01:58 PM, Mike Edenfield wrote:
> For about the past two weeks I've been receiving the following error on
> our SELinux-enabled web server, any time I attempt to upgrade or install
> a package from portage.
>
> File "/usr/lib/portage/pym/portage/_selinux.py", line 50, in mkdir
> selinux.setfscreatecon()
> TypeError: setfscreatecon() takes exactly 1 argument (0 given)

It's a bug in portage. Look for an existing bug and file one if you don't find one.

--
Andrew Gaffney http://dev.gentoo.org/~agaffney/
Gentoo Linux Developer Catalyst/Genkernel + Release Engineering Lead


pebenito at gentoo

Sep 19, 2009, 10:23 PM

Post #3 of 3 (643 views)
Permalink
Re: SELinux failure during emerge: setfscreatecon() takes exactly 1 argument [In reply to]

On Fri, 2009-09-18 at 20:52 -0500, Andrew Gaffney wrote:
> On 09/18/2009 01:58 PM, Mike Edenfield wrote:
> > For about the past two weeks I've been receiving the following error on
> > our SELinux-enabled web server, any time I attempt to upgrade or install
> > a package from portage.
> >
> > File "/usr/lib/portage/pym/portage/_selinux.py", line 50, in mkdir
> > selinux.setfscreatecon()
> > TypeError: setfscreatecon() takes exactly 1 argument (0 given)
>
> It's a bug in portage. Look for an existing bug and file one if you don't find one.

This is already fixed in portage SVN, it just hasn't made it out in a
release. The patch is attached.

--
Chris PeBenito
<pebenito [at] gentoo>
Developer,
Hardened Gentoo Linux

Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE6AF9243
Key fingerprint = B0E6 877A 883F A57A 8E6A CB00 BC8E E42D E6AF 9243
Attachments: portage-selinux-mkdir.diff (0.48 KB)

Gentoo hardened RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.