ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Serge Ryabchun <serge.ryabchun@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] LD_LIBRARY_PATH, setgid, rpath
Date: Fri, 27 Mar 2009 13:45:19 +0200
Message-ID: <c803b7870903270445k89ee7edr40163a234f712471@mail.gmail.com> (raw)
In-Reply-To: <4d6cc2f20903270434v532e93efv71aaf628788157c@mail.gmail.com>

2009/3/27 Boris Savelev <boris@altlinux.org>:
> 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
> Так что не вариант.

Что не вариант? /opt/daemon/lib/ld-linux.so есть в наличии со своим
rpath внутри?

-- 
Рябчун Сергей <serge.ryabchun@gmail.com>

      reply	other threads:[~2009-03-27 11:45 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
2009-03-27 11:45         ` Serge Ryabchun [this message]

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=c803b7870903270445k89ee7edr40163a234f712471@mail.gmail.com \
    --to=serge.ryabchun@gmail.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