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] Q: Аксакалам IPC
Date: Sun, 25 Aug 2019 02:45:11 +0300
Message-ID: <20190824234511.GD21177@altlinux.org> (raw)
In-Reply-To: <0b92606d-13f5-6840-7b3b-cb4f346c4b04@altlinux.org>

On 2019-08-23 15:01:12 +0300, Paul Wolneykien wrote:

 > Всем привет. У меня вопрос к знатокам межпроцессного
 > взаимодействия в Linux: какой бы способ соединения вы
 > посоветовали использовать для того, чтобы связаться
 > снаружи с процессом, который работает внутри чрута?

TCP или UDP на localhost.

 > При этом необходим контроль доступа на уровне прав
 > пользователей и групп Linux. Если сказать точнее, то
 > достаточно будет, если доступ к каналу сможет получить
 > только процесс с EUID root.

Работать при CAP_NET_BIND_SERVICE - допустимо? Если да, то
банальный bind() на порт < 1024 вполне решает эту задачу.

 > Сейчас это достигается через mount -o bind директории с
 > сокетом (unix domain socket) из чрута наружу. И что-то
 > иногда идёт не так.

Ой.


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


      parent reply	other threads:[~2019-08-24 23:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-23 12:01 Paul Wolneykien
2019-08-23 14:03 ` Vitaly Lipatov
2019-08-23 14:10   ` Paul Wolneykien
2019-08-23 14:26     ` Anton Farygin
2019-08-23 14:32       ` Paul Wolneykien
2019-08-23 14:36         ` Dmitry V. Levin
2019-08-23 15:05           ` Leonid Krivoshein
2019-08-23 14:41         ` Anton Farygin
2019-08-24 23:45 ` Alexey V. Vissarionov [this message]

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=20190824234511.GD21177@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