public inbox for gentoo-hardened@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-hardened] Migration problems
@ 2006-02-04 22:38 Darren Grant
  2006-02-05  0:40 ` Michael
  2006-02-05  4:44 ` Chris PeBenito
  0 siblings, 2 replies; 5+ messages in thread
From: Darren Grant @ 2006-02-04 22:38 UTC (permalink / raw
  To: gentoo-hardened

Heya

I'm trying to migrate my system over to selinux using the gentoo 
handbook for selinux migration. I'm following the initial preperations 
page and so, changed my profile, ensured I had the latest kernel headers 
and then emerged glibc.

After doing so, I'm not trying to emerge hardened-sources but my emerge 
seems to be broken.

Exhibit A:

# emerge hardened-sources
Calculating dependencies ...done!
 >>> emerge (1 of 1) sys-kernel/hardened-sources-2.6.14-r5 to /
 >>> Downloading 
ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/distfiles/hardened-patches-2.6.14-5.extras.tar.bz2
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3228, in ?
    mydepgraph.merge(pkglist)
  File "/usr/bin/emerge", line 1912, in merge
    
retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug,tree="porttree")
  File "/usr/lib/portage/pym/portage.py", line 2704, in doebuild
    if mydo!="manifest" and not fetch(fetchme, mysettings, 
listonly=listonly, fetchonly=fetchonly):
  File "/usr/lib/portage/pym/portage.py", line 1914, in fetch
    con=selinux.getcontext()
AttributeError: 'module' object has no attribute 'getcontext'

In fact I can't emerge anything. Anyone please able to help me out and 
let me know what I've done wrong? Should I not be using this document 
for a 2005.1 install system?

-- 
gentoo-hardened@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-hardened] Migration problems
  2006-02-04 22:38 [gentoo-hardened] Migration problems Darren Grant
@ 2006-02-05  0:40 ` Michael
  2006-02-05  2:45   ` Darren Grant
  2006-02-05  4:44 ` Chris PeBenito
  1 sibling, 1 reply; 5+ messages in thread
From: Michael @ 2006-02-05  0:40 UTC (permalink / raw
  To: gentoo-hardened

I think your python is broken... Something is broken and since emerge
needs it there is no easy way to get it working again. The easiest is if
someone can provide the needed package as a tgz/tbz2 which you can
then extract to / to have emerge working again, after which you can
remerge the package that stopped working. My guess is it's python,
but I'm not 100% sure.
Good luck,

Michael

Darren Grant wrote:

> Heya
>
> I'm trying to migrate my system over to selinux using the gentoo 
> handbook for selinux migration. I'm following the initial preperations 
> page and so, changed my profile, ensured I had the latest kernel 
> headers and then emerged glibc.
>
> After doing so, I'm not trying to emerge hardened-sources but my 
> emerge seems to be broken.
>
> Exhibit A:
>
> # emerge hardened-sources
> Calculating dependencies ...done!
> >>> emerge (1 of 1) sys-kernel/hardened-sources-2.6.14-r5 to /
> >>> Downloading 
> ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/distfiles/hardened-patches-2.6.14-5.extras.tar.bz2 
>
> Traceback (most recent call last):
>  File "/usr/bin/emerge", line 3228, in ?
>    mydepgraph.merge(pkglist)
>  File "/usr/bin/emerge", line 1912, in merge
>    
> retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug,tree="porttree") 
>
>  File "/usr/lib/portage/pym/portage.py", line 2704, in doebuild
>    if mydo!="manifest" and not fetch(fetchme, mysettings, 
> listonly=listonly, fetchonly=fetchonly):
>  File "/usr/lib/portage/pym/portage.py", line 1914, in fetch
>    con=selinux.getcontext()
> AttributeError: 'module' object has no attribute 'getcontext'
>
> In fact I can't emerge anything. Anyone please able to help me out and 
> let me know what I've done wrong? Should I not be using this document 
> for a 2005.1 install system?
>

-- 
gentoo-hardened@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-hardened] Migration problems
  2006-02-05  0:40 ` Michael
@ 2006-02-05  2:45   ` Darren Grant
  0 siblings, 0 replies; 5+ messages in thread
From: Darren Grant @ 2006-02-05  2:45 UTC (permalink / raw
  To: gentoo-hardened

If I remove my profile link and point it back to a regular default-linux 
profile, emerge works again perfectly...

To prepare for the selinux migration, I did the following:
# rm -f /etc/make.profile
# ln -sf /usr/portage/profiles/selinux/2005.1/amd64 /etc/make.profile

Checked that my headers were up-to-date (remerged glibc) and proceeded 
to try and use emerge which failed with the error I posted.

By reversing the process and removing the make.profile and linking it 
back to /usr/portage/profiles/default-linux/amd64... emerge works again.

Michael wrote:

> I think your python is broken... Something is broken and since emerge
> needs it there is no easy way to get it working again. The easiest is if
> someone can provide the needed package as a tgz/tbz2 which you can
> then extract to / to have emerge working again, after which you can
> remerge the package that stopped working. My guess is it's python,
> but I'm not 100% sure.
> Good luck,
>
> Michael
>
> Darren Grant wrote:
>
>> Heya
>>
>> I'm trying to migrate my system over to selinux using the gentoo 
>> handbook for selinux migration. I'm following the initial 
>> preperations page and so, changed my profile, ensured I had the 
>> latest kernel headers and then emerged glibc.
>>
>> After doing so, I'm not trying to emerge hardened-sources but my 
>> emerge seems to be broken.
>>
>> Exhibit A:
>>
>> # emerge hardened-sources
>> Calculating dependencies ...done!
>> >>> emerge (1 of 1) sys-kernel/hardened-sources-2.6.14-r5 to /
>> >>> Downloading 
>> ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/distfiles/hardened-patches-2.6.14-5.extras.tar.bz2 
>>
>> Traceback (most recent call last):
>>  File "/usr/bin/emerge", line 3228, in ?
>>    mydepgraph.merge(pkglist)
>>  File "/usr/bin/emerge", line 1912, in merge
>>    
>> retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug,tree="porttree") 
>>
>>  File "/usr/lib/portage/pym/portage.py", line 2704, in doebuild
>>    if mydo!="manifest" and not fetch(fetchme, mysettings, 
>> listonly=listonly, fetchonly=fetchonly):
>>  File "/usr/lib/portage/pym/portage.py", line 1914, in fetch
>>    con=selinux.getcontext()
>> AttributeError: 'module' object has no attribute 'getcontext'
>>
>> In fact I can't emerge anything. Anyone please able to help me out 
>> and let me know what I've done wrong? Should I not be using this 
>> document for a 2005.1 install system?
>>
>
-- 
gentoo-hardened@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-hardened] Migration problems
  2006-02-04 22:38 [gentoo-hardened] Migration problems Darren Grant
  2006-02-05  0:40 ` Michael
@ 2006-02-05  4:44 ` Chris PeBenito
  2006-02-05  4:59   ` Darren Grant
  1 sibling, 1 reply; 5+ messages in thread
From: Chris PeBenito @ 2006-02-05  4:44 UTC (permalink / raw
  To: gentoo-hardened

[-- Attachment #1: Type: text/plain, Size: 1332 bytes --]

On Sat, 2006-02-04 at 14:38 -0800, Darren Grant wrote:
> # emerge hardened-sources
> Calculating dependencies ...done!
>  >>> emerge (1 of 1) sys-kernel/hardened-sources-2.6.14-r5 to /
>  >>> Downloading 
> ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/distfiles/hardened-patches-2.6.14-5.extras.tar.bz2
> Traceback (most recent call last):
>   File "/usr/bin/emerge", line 3228, in ?
>     mydepgraph.merge(pkglist)
>   File "/usr/bin/emerge", line 1912, in merge
>     
> retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug,tree="porttree")
>   File "/usr/lib/portage/pym/portage.py", line 2704, in doebuild
>     if mydo!="manifest" and not fetch(fetchme, mysettings, 
> listonly=listonly, fetchonly=fetchonly):
>   File "/usr/lib/portage/pym/portage.py", line 1914, in fetch
>     con=selinux.getcontext()
> AttributeError: 'module' object has no attribute 'getcontext'

Make sure you have python-selinux-2.16.  Its the highest stable version,
so I'm not sure why you wouldn't have it, but just to make sure I
removed all the older versions.

-- 
Chris PeBenito
<pebenito@gentoo.org>
Developer,
Hardened Gentoo Linux
Embedded 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


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-hardened] Migration problems
  2006-02-05  4:44 ` Chris PeBenito
@ 2006-02-05  4:59   ` Darren Grant
  0 siblings, 0 replies; 5+ messages in thread
From: Darren Grant @ 2006-02-05  4:59 UTC (permalink / raw
  To: gentoo-hardened

That did the trick!

Thanks... appreciate it.

So is moving to selinux worth it? I'm setting up a small web/email 
server... (apache2,postfix,courier-imap,etc...)

Chris PeBenito wrote:

>On Sat, 2006-02-04 at 14:38 -0800, Darren Grant wrote:
>  
>
>># emerge hardened-sources
>>Calculating dependencies ...done!
>> >>> emerge (1 of 1) sys-kernel/hardened-sources-2.6.14-r5 to /
>> >>> Downloading 
>>ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/distfiles/hardened-patches-2.6.14-5.extras.tar.bz2
>>Traceback (most recent call last):
>>  File "/usr/bin/emerge", line 3228, in ?
>>    mydepgraph.merge(pkglist)
>>  File "/usr/bin/emerge", line 1912, in merge
>>    
>>retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug,tree="porttree")
>>  File "/usr/lib/portage/pym/portage.py", line 2704, in doebuild
>>    if mydo!="manifest" and not fetch(fetchme, mysettings, 
>>listonly=listonly, fetchonly=fetchonly):
>>  File "/usr/lib/portage/pym/portage.py", line 1914, in fetch
>>    con=selinux.getcontext()
>>AttributeError: 'module' object has no attribute 'getcontext'
>>    
>>
>
>Make sure you have python-selinux-2.16.  Its the highest stable version,
>so I'm not sure why you wouldn't have it, but just to make sure I
>removed all the older versions.
>
>  
>
-- 
gentoo-hardened@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-05  5:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-04 22:38 [gentoo-hardened] Migration problems Darren Grant
2006-02-05  0:40 ` Michael
2006-02-05  2:45   ` Darren Grant
2006-02-05  4:44 ` Chris PeBenito
2006-02-05  4:59   ` Darren Grant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox