From: Anton Farygin <rider@altlinux.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] LD_LIBRARY_PATH, setgid, rpath
Date: Wed, 25 Mar 2009 14:53:13 +0300
Message-ID: <49CA1B29.8020500@altlinux.com> (raw)
In-Reply-To: <4d6cc2f20903250432s640952d0sc7bdbe8704b018d4@mail.gmail.com>
Boris Savelev пишет:
> Здравствуйте!
>
> Есть некий демон, который слинкован с некоторыми либами, которые лежат
> в /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
> вариант не рассматривается-)
>
> Какие еще существуют пути решения этой проблемы?..
Положить библиотеки в более стандартные пути...
next prev parent reply other threads:[~2009-03-25 11:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-25 11:32 Boris Savelev
2009-03-25 11:53 ` Anton Farygin [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49CA1B29.8020500@altlinux.com \
--to=rider@altlinux.com \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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