ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus mailing list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] setuid на xmms и всякие другие проблемки.
Date: Sat, 28 Sep 2002 20:53:40 +0400
Message-ID: <20020928165340.GA32746@basalt.office.altlinux.ru> (raw)
In-Reply-To: <20020928161738.GA3617@pyro.hopawar.private.net>

[-- Attachment #1: Type: text/plain, Size: 876 bytes --]

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.


--
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2002-09-28 16:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-28 16:17 Alexey Morozov
2002-09-28 16:53 ` Dmitry V. Levin [this message]
2002-09-30 10:27 ` [sisyphus] " Michael Shigorin
2002-09-30 10:45   ` Alexey Morozov

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=20020928165340.GA32746@basalt.office.altlinux.ru \
    --to=ldv@altlinux.org \
    --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