libselinux.so: cannot open shared object file
I am using debian sid, I compiled a 2.6.0-test4 kernel ready for use, and downloaded Colin Walters SElinux packages, during their install, and I'm not sure when as I wasn't watching, the install borked, and now when I try to do anything ie type ls, I get the error message
error while loading shared libraries: libselinux.so: cannot open shared object file: No such file or directory
what happened? can I fix this? anyone encountered this before?
would love to get this sorted.
regards Max
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 9 lines · max barwell
I am using debian sid, I compiled a 2.6.0-test4 kernel ready for use, and downloaded Colin Walters SElinux packages, during their install, and I'm not sure when as I wasn't watching, the install borked, and now when I try to do anything ie type ls, I get the error message
error while loading shared libraries: libselinux.so: cannot open shared object file: No such file or directory
what happened? can I fix this? anyone encountered this before?
It sounds like one of two things happened:
1) The dependencies were not correct and you managed to install a coreutils package without the library package it should depend on.
2) You are running SE Linux in enforcing mode and libselinux.so got the wrong type (can occur when an apt installation aborts).
For 1 you have to install the necessary package.
For 2 you have to relabel the file in question with a command like the following:
find /lib /usr/lib | setfiles -s -v /etc/selinux/file_contexts/file_contexts
Anyway your system is not as broken as you think. If you have busybox-static installed (or can install it) then it will work fine.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 7 lines · max barwell
I am using debian sid, I compiled a 2.6.0-test4 kernel ready for use, and downloaded Colin Walters SElinux packages, during their install, and I'm not sure when as I wasn't watching, the install borked, and now when I try to do anything ie type ls, I get the error message
error while loading shared libraries: libselinux.so: cannot open shared object file: No such file or directory
Hm, for some reason the binaries are getting linked against libselinux.so instead of libselinux.so.1. I'll investigate this. In the meantime it should be sufficient to install libselinux1-dev.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 16 lines · Colin Walters
Quoted 7 lines · max barwell
I am using debian sid, I compiled a 2.6.0-test4 kernel ready for use, and downloaded Colin Walters SElinux packages, during their install, and I'm not sure when as I wasn't watching, the install borked, and now when I try to do anything ie type ls, I get the error message
error while loading shared libraries: libselinux.so: cannot open shared object file: No such file or directory
Hm, for some reason the binaries are getting linked against libselinux.so instead of libselinux.so.1. I'll investigate this. In the meantime it should be sufficient to install libselinux1-dev.
Quoted 7 lines
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message..
Why not just link libselinux.so to libselinux.so.1 ? That would at least temporarily fix the problem would it not?
Timothy,
Signature · 8 lines
I put instant coffee in a microwave and almost went back in time. -- Steven Wright -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 6 lines · Diyab
Quoted 3 lines
Hm, for some reason the binaries are getting linked against libselinux.so instead of libselinux.so.1. I'll investigate this. In the meantime it should be sufficient to install libselinux1-dev.
Why not just link libselinux.so to libselinux.so.1 ? That would at least temporarily fix the problem would it not?
I would assume that this is what the libselinux1-dev package does? (otherwise that might be the problem).
I haven't seen the packages in question, but what normally happens (assuming this hasn't changed, I don't think it has):
libselinux.so ---> libselinux.so.1 (symlink, for development)
libselinux.so.1 (shared library).
You link against libselinux.so; The linker realizes that this points to libselinux.so.1, and encodes libselinux.so.1 into the resultant executable (and not libselinux.so).
So you can run the programs with only libselinux.so.1 present, and libselinux.so is only needed for initial linking.
What is the output of "ldd filename"?
Signature · 6 lines
Brian May <[email protected]> -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.