From: Alexey Tourbin <at@altlinux.ru>
To: ALT Devel discussion list <devel@altlinux.org>
Subject: [devel] Re: suid/sgid programs and temporary files
Date: Wed, 17 Aug 2005 03:52:39 +0400
Message-ID: <20050816235239.GC19097@solemn.turbinal.org> (raw)
In-Reply-To: <20050816233802.GD9408@basalt.office.altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 547 bytes --]
On Wed, Aug 17, 2005 at 03:38:02AM +0400, Dmitry V. Levin wrote:
> > То есть проверка каталога по этой схеме перед созданием временного файла
> > практически гарантирует, что все остальные операции с временным файлом
> > пройдут безопасно.
>
> В случае с привилегированными программами такая гарантия появляется только
> в случае проверки на euid, иначе запускающий такую программу может
> попробовать через неё добыть себе права через манипуляции с каталогом.
Да. Я как раз на это обратил внимание в File::Temp.
Уже послал им патч.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-08-16 23:52 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-16 19:31 [devel] " Alexey Tourbin
2005-08-16 19:56 ` Dmitry V. Levin
2005-08-16 21:42 ` [devel] " Alexey Tourbin
2005-08-16 22:06 ` Dmitry V. Levin
2005-08-16 22:34 ` Alexey Tourbin
2005-08-16 22:50 ` Dmitry V. Levin
2005-08-16 23:33 ` Alexey Tourbin
2005-08-16 23:38 ` Dmitry V. Levin
2005-08-16 23:52 ` Alexey Tourbin [this message]
2005-08-17 7:14 ` [devel] [wiki] " Michael Shigorin
2005-08-16 22:44 ` [devel] " Alexey Tourbin
2005-08-16 22:55 ` Dmitry V. Levin
2005-08-16 23:20 ` Alexey Tourbin
2005-08-16 23:30 ` Alexey Tourbin
2005-08-17 0:37 ` Alexey Tourbin
2005-08-17 0:46 ` Alexey Tourbin
2005-08-17 3:02 ` Andrey Rahmatullin
2005-08-17 6:37 ` Alexey Tourbin
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=20050816235239.GC19097@solemn.turbinal.org \
--to=at@altlinux.ru \
--cc=devel@altlinux.org \
--cc=devel@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 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