Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
seliunx 2005.1 problems[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Fri Jun 08, 2007 4:34 pm    Post subject: seliunx 2005.1 problems[solved] Reply with quote

in the manual i have to type make load but it fails...
Code:
 # make load
 * Creating policy.conf
m4:tunable.te:89: ERROR: end of file in comment
make: *** [policy.conf] Error 1


i didn't change the makefile...

Code:
# cat /selinux/policyvers
21


Last edited by GNUtoo on Sat Jun 09, 2007 12:37 am; edited 2 times in total
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Fri Jun 08, 2007 9:58 pm    Post subject: Re: seliunx 2005.1 installation problem Reply with quote

GNUtoo wrote:
in the manual i have to type make load but it fails...
Code:
 # make load
 * Creating policy.conf
m4:tunable.te:89: ERROR: end of file in comment
make: *** [policy.conf] Error 1


i didn't change the makefile...

Code:
# cat /selinux/policyvers
21

i solved that editing the configuration file...
but i have another problem...
Code:
# equery b file_contexts
[ Searching for file(s) file_contexts in *... ]
sec-policy/selinux-base-policy-20051022-r1 (/etc/security/selinux/src/policy/file_contexts)
sec-policy/selinux-wireshark-20060720 (/etc/security/selinux/src/policy/file_contexts)
port4 ~ # emerge -av sec-policy/selinux-base-policy-20051022-r1

These are the packages that would be merged, in order:

Calculating dependencies /

!!! 'sec-policy/selinux-base-policy-20051022-r1' is not a valid package atom.
!!! Please check ebuild(5) for full details.
!!! (Did you specify a version but forget to prefix with '='?)
port4 ~ # emerge -av =sec-policy/selinux-base-policy-20051022-r1

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sec-policy/selinux-base-policy-20051022-r1  USE="-build" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] y

>>> Emerging (1 of 1) sec-policy/selinux-base-policy-20051022-r1 to /
 * selinux-base-policy-20051022.tar.bz2 RMD160 ;-) ...                                                                                                                                                                                                                                                              [ ok ]
 * selinux-base-policy-20051022.tar.bz2 SHA1 ;-) ...                                                                                                                                                                                                                                                                [ ok ]
 * selinux-base-policy-20051022.tar.bz2 SHA256 ;-) ...                                                                                                                                                                                                                                                              [ ok ]
 * selinux-base-policy-20051022.tar.bz2 size ;-) ...                                                                                                                                                                                                                                                                [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                                                                                                                                [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                                                                                                               [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                                                                                                              [ ok ]
 * checking selinux-base-policy-20051022.tar.bz2 ;-) ...                                                                                                                                                                                                                                                            [ ok ]
>>> Unpacking source...
>>> Unpacking selinux-base-policy-20051022.tar.bz2 to /var/tmp/portage/sec-policy/selinux-base-policy-20051022-r1/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sec-policy/selinux-base-policy-20051022-r1/work/base-policy ...
>>> Source compiled.
>>> Test phase [not enabled]: sec-policy/selinux-base-policy-20051022-r1

>>> Install selinux-base-policy-20051022-r1 into /var/tmp/portage/sec-policy/selinux-base-policy-20051022-r1/image/ category sec-policy
ACCESS DENIED  open_wr:   /proc/self/task/29774/attr/fscreate
cp: cannot set setfscreatecon `user_u:object_r:portage_tmp_t': Permission denied
>>> Completed installing selinux-base-policy-20051022-r1 into /var/tmp/portage/sec-policy/selinux-base-policy-20051022-r1/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-sec-policy_-_selinux-base-policy-20051022-r1-29733.log"

open_wr:   /proc/self/task/29774/attr/fscreate (symlink to /proc/29774/task/29774/attr/fscreate)
--------------------------------------------------------------------------------
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Fri Jun 08, 2007 10:30 pm    Post subject: Reply with quote

i don't like to but i remooved the sandbox...but it didn't work because of that:
# emerge -av selinux-base-policy

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] sec-policy/selinux-base-policy-20051022-r1 USE="-build" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] y

>>> Emerging (1 of 1) sec-policy/selinux-base-policy-20051022-r1 to /
* selinux-base-policy-20051022.tar.bz2 RMD160 ;-) ... [ ok ]
* selinux-base-policy-20051022.tar.bz2 SHA1 ;-) ... [ ok ]
* selinux-base-policy-20051022.tar.bz2 SHA256 ;-) ... [ ok ]
* selinux-base-policy-20051022.tar.bz2 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking selinux-base-policy-20051022.tar.bz2 ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking selinux-base-policy-20051022.tar.bz2 to /var/tmp/portage/sec-policy/selinux-base-policy-20051022-r1/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sec-policy/selinux-base-policy-20051022-r1/work/base-policy ...
>>> Source compiled.
>>> Test phase [not enabled]: sec-policy/selinux-base-policy-20051022-r1

>>> Install selinux-base-policy-20051022-r1 into /var/tmp/portage/sec-policy/selinux-base-policy-20051022-r1/image/ category sec-policy
>>> Completed installing selinux-base-policy-20051022-r1 into /var/tmp/portage/sec-policy/selinux-base-policy-20051022-r1/image/

>>> Merging sec-policy/selinux-base-policy-20051022-r1 to /
>>> Setting SELinux security labels
/etc/selinux/targeted/contexts/files/file_contexts: No such file or directory

!!! ERROR: sec-policy/selinux-base-policy-20051022-r1 failed.
Call stack:
misc-functions.sh, line 570: Called preinst_selinux_labels
misc-functions.sh, line 492: Called die

!!! Failed to set SELinux security labels.
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! post preinst failed; exiting.
!!! FAILED preinst: 1
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Sat Jun 09, 2007 12:37 am    Post subject: Reply with quote

solved:
->rebooting with a kernel without selinux
->reinstalling portage without selinux
->reinstalling the base selinux packages such as the policies

by the way there is a 2006.1 migration guide and the 2007.0 will be avaliable soon
http://www.gentoo.org/proj/en/hardened/selinux/selinux20061-upg.xml
v
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu Jun 21, 2007 11:19 am    Post subject: Reply with quote

GNUtoo wrote:
solved:
->rebooting with a kernel without selinux
->reinstalling portage without selinux
->reinstalling the base selinux packages such as the policies

by the way there is a 2006.1 migration guide and the 2007.0 will be avaliable soon
http://www.gentoo.org/proj/en/hardened/selinux/selinux20061-upg.xml
v


sweet :D
hopefully that will support hardened + selinux again
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum