From: morozov@novosoft.ru
To: sisyphus@altlinux.ru
Subject: Re: [sisyphus] setuid на xmms и всякие другие проблемки.
Date: Sun, 29 Sep 2002 19:48:07 +0700
Message-ID: <OFDF63797F.8DE18E6A-ONC6256C43.00460D06-C6256C43.0046532A@novosoft.ru> (raw)
09/28/2002 23:53:40 sisyphus-admin wrote:
>On Sat, Sep 28, 2002 at 11:17:38PM +0700, Alexey Morozov wrote:
>> Во-первых, я пытался запускать/управлять его через сторонние
>> контроллеры, навроде xmms-kde и xmms-shell. Выяснилась одна довольно
>> обидная вещь. Для setuid программ переменная TMPDIR выставлена в NULL
>> (хех, век живи, век учись :-)), соответственно, прежний способ
>> определения контролирующего сокета (через g_get_tmp_dir()) уже не
>> работает. Точнее, работает, но приводит к разным результатам в случае
>> xmms и контролеров. Соответственно, предлагается слегка переработать эту
>> часть, скажем, поместить управляющий сокет в ~/.xmms/ (патч имеется).
>> Кстати, а что у нас с делегированием полномочий (capabilities). Ему же
>> (xmms) CAP_SYS_NICE хватит за глаза...
>
>Если программа setuid, то TMPDIR будет убрано их environment'а еще до
>того, как управление дойдет до main(). Это не ALT-specific.
Я это понимаю (уже :-)). Но хочется не понимания, хочется решения. Надо или убрать из xmms установки
насчет RT, чтобы-де умы не смущать, либо сделать так, чтобы программы работали с таковыми
установками.
Ну, и вопрос насчет CAP_SYS_NICE остается открытым. Есть способ хранить капабилитиз на файловой
системе, или как это вообще делается?
next reply other threads:[~2002-09-29 12:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-29 12:48 morozov [this message]
2002-09-30 10:54 ` Dmitry V. Levin
2002-09-30 12:24 ` Alexey Morozov
2002-09-30 13:17 ` Dmitry V. Levin
2002-09-30 13:51 ` Alexey Morozov
2002-09-30 16:55 ` [sisyphus] " Vlad Harchev
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=OFDF63797F.8DE18E6A-ONC6256C43.00460D06-C6256C43.0046532A@novosoft.ru \
--to=morozov@novosoft.ru \
--cc=sisyphus@altlinux.ru \
/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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git