Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 2 [3] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: EUREKA!!!!, How to fix the libs problem with UCIs!< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 07 2005,04:25 QUOTE

I spoke too soon.  No idea why, but those two libs are still not being found in DSL.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 07 2005,05:56 QUOTE

I found the cause of the trouble, but not a solution yet.  This is from the ld.so manpage:
The shared libraries needed by the program are searched for in various places:
...
   Using the environment variable LD_LIBRARY_PATH. Except if the executable is a setuid/setgid binary, in which case it is ignored.

the screen binary is setuid.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
ke4nt1 Offline





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: Jan. 07 2005,06:56 QUOTE

Ah yes, I have read about that a few times ..  
I think it was mentioned in the link I posted..
Hmm, wonder why setgid/uid ?

So.. what happens if you remove the sticky gid/uid?
Is that needed for running in a gnome or kde environment?

Usually NOT needed, and many times considered a securty risk.

If you don't have any luck, I'll get screen tomorrow,
and browse thru it with you..

What happens if you simply run the app as sudo?
Sticky bits be damned...

73
ke4nt
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 07 2005,15:21 QUOTE

Found a little more info:
Quote
   The screen program needs root permissions from the setuid-root bit for
   two reasons: multi-attached sessions are only possible with root
   privileges, and writing terminal allocation information to /var/run/utmp
   (the who(1) and finger(1) commands). If the screen command is not running
   with special privileges, all functionality except these two features will
   continue to work, but the local root compromise will not be possible.

These features don't seem to be too important for a DSL system, so I've removed the UID....still have to test it out.  It still requires libelf, which i find odd.  The screen package I have installed in suse is a single minor version difference, and it does not require libelf.  Also since ELF seems to be a very large part of Linux systems I'm curious why none of my other extensions want it.

Fordi: sorry for the hijack.  When I started typing it seemed to fit into this thread perfectly...but evolved into a different issue.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 07 2005,17:58 QUOTE

well....good and bad news...

After looking through Makefile and config.h I got it to compile without the extra libs, and now it seems to work.

Unfortunately it seems to work only in an X terminal, which makes the whole thing rather pointless.  I don't know if it's because of the way DSL was built, or if it's something I can fix myself, but I tried both with and without setuid and I get the message "can't open /dev/tty1".  This occurs with my extension as well as with a precompiled version including the extra libs.  Comparing /dev/tty* in DSL with /dev/tty* in suse I can't see any difference in the files themselves, so I'm at a wall with no visible doors or windows...not understanding much about how terminals work I think I'll have to put this project aside until I learn a bit more.

I won't be posting about this in this thread anymore....again, Fordi, sorry about taking your thread in the wrong direction.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
14 replies since Jan. 06 2005,06:06 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 2 [3] >/
reply to topic new topic new poll
Quick Reply: EUREKA!!!!

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code