ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Alexey V. Vissarionov" <gremlin@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] xdg-su и wayland
Date: Thu, 5 Jul 2018 14:31:04 +0300
Message-ID: <20180705113104.GA3046@altlinux.org> (raw)
In-Reply-To: <1347be9c-8317-c003-13f0-0d80c1a0a516@ya.ru>

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

On 2018-07-05 18:15:31 +0700, Антон Мидюков wrote:

 > Чтобы можно было запустить через графический helper, нужно
 > дать такое разрешение: xhost +si:localuser:root Соответственно,
 > вопрос. Никто не будет возражать, если я пропатчу xdg-su, чтобы
 > давалось это разрешение на время запуска и работы программы
 > при использовании графического хелпера, а затем убиралось
 > командой, после завершения работы с ней: xhost -si:localuser:root

Ну коряква ведь...

 > И можно ли считать  такое разрешение дырой в безопасности,
 > учитывая, что пользователь сам себе может дать его?

Сильно зависит от настроек Xwindow. Даже `xhost +` вполне может
считаться безопасным - в частности, при запуске `X -nolisten tcp`
и грамотно выставленных правах на сокет.

В общем, я бы подумал как раз в эту сторону, причем глобально.


-- 
Alexey V. Vissarionov
gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii
GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  parent reply	other threads:[~2018-07-05 11:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-05 11:15 Антон Мидюков
2018-07-05 11:23 ` Dmitry V. Levin
2018-07-05 11:31 ` Alexey V. Vissarionov [this message]
2018-07-05 13:36   ` Антон Мидюков
2018-07-10  9:02 ` Aleksei Nikiforov

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=20180705113104.GA3046@altlinux.org \
    --to=gremlin@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /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