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: Tue, 8 Oct 2002 11:49:56 +0400 Message-ID: <20021008074956.GA8370@basalt.office.altlinux.ru> (raw) In-Reply-To: <20021008063122.GG11539@pyro.hopawar.private.net> [-- Attachment #1: Type: text/plain, Size: 1621 bytes --] On Tue, Oct 08, 2002 at 01:31:22PM +0700, Alexey Morozov wrote: > > Запускающий helper процесс должен входить в группу utempter. > > Если он сбросит права раньше срока, то получит EACCES. > > Если он их не сбросит до инициализации Gtk, то последний его пошлет. > > Если же он выставит все group IDs в utempter, то получается ерунда с > > доступом к файловой системе - отсюда и запрет на создание файлов. > > > > > > Конечно, можно сделать fork+pipe, но это уже совсем другая история. > > > Хмм... Из пушки... > > Зато реально. Других рабочих вариантов до сих пор предложено не было. > Стоп. А как насчет следующей схемы: > 0. права на терминал 02511 root:utempter Т.е. на эмулятор терминала. > 1. запуск терминала (egid == utempter, gid == user_gid) > | > \_ 2. запуск pty-helper > 3. сброс привилегий в _gid_ (не в egid!). > 4. инициализация GTK+ и всяких прочих там виджетсетов/библиотек и > всего остального. Выполнение пункта 2 до пункта 4, скорее всего, потребует серьезного изменения в коде эмуляторов. > плюсы: достаточная простота реализации, минимизация изменений в > сравнении с vanilla sources. > минус: существуют проблемы с отслеживанием момента закрытия Сформулирую иначе: нет способа внести запись о закрытии терминала. > Кстати, возможно, идея с долгоживущим utempter'ом или привилегированным > процессом его запускающим, возможно, заслуживает рассмотрения... Можно даже сервер сделать. :) > Но здесь, опять же, есть минус: поскольку процесс все же принадлежит > пользователю, то он может читать/модифицировать его память... Не может - процесс то ведь привилегированный. -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2002-10-08 7:49 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 2002-10-08 6:31 ` Alexey Morozov 2002-10-08 7:49 ` Dmitry V. Levin [this message] 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=20021008074956.GA8370@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