ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Boris Savelev <boris@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] LD_LIBRARY_PATH, setgid, rpath
Date: Fri, 27 Mar 2009 14:34:29 +0300
Message-ID: <4d6cc2f20903270434v532e93efv71aaf628788157c@mail.gmail.com> (raw)
In-Reply-To: <c803b7870903270419v2d414e65yb3e8d405a5fc5dfc@mail.gmail.com>

27 марта 2009 г. 14:19 пользователь Serge Ryabchun
<serge.ryabchun@gmail.com> написал:
> 2009/3/25 Boris Savelev <boris@altlinux.org>:
>> 25 марта 2009 г. 14:53 пользователь Anton Farygin <rider@altlinux.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
>>>> вариант не рассматривается-)
>>>>
>>>> Какие еще существуют пути решения этой проблемы?..
>>>
>>> Положить библиотеки в более стандартные пути...
>> Они пересекаются по именам.
>> Это практически тоже самое что и ld.so.conf.
>> Среди библиотек присутствует libc-)
>
> /opt/daemon/lib/ld-linux.so [--library-path /opt/daemon/lib]
> /opt/daemon/bin/daemon

--library-path PATH
    Переопределяет настройки переменной окружения LD_LIBRARY_PATH
Так что не вариант.

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

  reply	other threads:[~2009-03-27 11:34 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
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 [this message]
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=4d6cc2f20903270434v532e93efv71aaf628788157c@mail.gmail.com \
    --to=boris@altlinux.org \
    --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