ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] LD_LIBRARY_PATH, setgid, rpath
@ 2009-03-25 11:32 Boris Savelev
  2009-03-25 11:53 ` Anton Farygin
  0 siblings, 1 reply; 12+ messages in thread
From: Boris Savelev @ 2009-03-25 11:32 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Здравствуйте!

Есть некий демон, который слинкован с некоторыми либами, которые лежат
в /opt/daemon/lib.
Логично вызывать демона так:
LD_LIBRARY_PATH=/opt/daemon/lib /opt/daemon/daemon.bin
но это не работает, потому демон использует setgid и ругается что
setgid(): Can not set group ID (Operation not permitted)!
Пишут что LD_LIBRARY_PATH не работает с setuid/setgid. Что правда?-)

Другие 2 варианта:
1) rpath для линковки daemon.bin
с этим все понятно, но так делать крайне не хочется
2) Дописать /opt/daemon/lib в ld.so.conf
вариант не рассматривается-)

Какие еще существуют пути решения этой проблемы?..

-- 
С уважением, Борис Савельев

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

end of thread, other threads:[~2009-03-27 11:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-25 11:32 [devel] LD_LIBRARY_PATH, setgid, rpath Boris Savelev
2009-03-25 11:53 ` Anton Farygin
2009-03-25 11:57   ` Boris Savelev
2009-03-25 11:58     ` Mikhail Gusarov
2009-03-25 12:45     ` Epiphanov Sergei
2009-03-25 13:30       ` Boris Savelev
2009-03-26 15:49         ` Boris Savelev
2009-03-26 15:54           ` Andrey Rahmatullin
2009-03-26 18:16           ` Sergey Vlasov
2009-03-27 11:19     ` Serge Ryabchun
2009-03-27 11:34       ` Boris Savelev
2009-03-27 11:45         ` Serge Ryabchun

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git