From: "Dmitry V. Levin" <ldv@altlinux.org> To: ALT Devel discussion list <devel@altlinux.ru> Subject: Re: [devel] Re: IA: /usr/sbin/gnome-pty-helper Date: Mon, 7 Oct 2002 13:36:01 +0400 Message-ID: <20021007093601.GD31447@basalt.office.altlinux.ru> (raw) In-Reply-To: <20021007071558.GD11539@pyro.hopawar.private.net> [-- Attachment #1: Type: text/plain, Size: 915 bytes --] On Mon, Oct 07, 2002 at 02:15:58PM +0700, Alexey Morozov wrote: > > > >Одновременно придется запретить им создавать новые файлы. > > > Почему? По-хорошему же, fsgid меняется вместе с egid. Или не меняется? А > > > setfsgid не поможет? > > Нет, поскольку смена egid влечет за собой смену fsgid. > Дык тогда все хорошо? Главное - сбросить egid до gid до создания > каких-либо файлов. Или я чего-то недопонимаю в процессе? Запускающий helper процесс должен входить в группу utempter. Если он сбросит права раньше срока, то получит EACCES. Если он их не сбросит до инициализации Gtk, то последний его пошлет. Если же он выставит все group IDs в utempter, то получается ерунда с доступом к файловой системе - отсюда и запрет на создание файлов. > > Конечно, можно сделать fork+pipe, но это уже совсем другая история. > Хмм... Из пушки... Зато реально. Других рабочих вариантов до сих пор предложено не было. -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2002-10-07 9:36 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-10-05 10:52 morozov 2002-10-06 20:19 ` Dmitry V. Levin 2002-10-07 7:15 ` Alexey Morozov 2002-10-07 9:36 ` Dmitry V. Levin [this message] 2002-10-08 6:31 ` Alexey Morozov 2002-10-08 7:49 ` Dmitry V. Levin 2002-10-08 8:38 ` Alexey Morozov 2002-10-08 8:54 ` Dmitry V. Levin 2002-10-08 13:16 ` [devel] а оно _вообще_ -- нужно? (was: IA: /usr/sbin/gnome-pty-helper) Michael Shigorin
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=20021007093601.GD31447@basalt.office.altlinux.ru \ --to=ldv@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