ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Stas <stas.grumbler@gmail.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] postfix sasl
Date: Tue, 25 Oct 2016 11:45:29 +0500
Message-ID: <580EFF89.10707@gmail.com> (raw)
In-Reply-To: <58909133-d4e5-aa26-be82-0e6acc1927f6@gmail.com>



On 25.10.2016 11:26, В.А. Илларионов wrote:
> 25.10.2016 12:45, Stas пишет:
>> On 25.10.2016 06:27, В.А. Илларионов wrote:
>>> 21.10.2016 15:47, Anton Gorlov пишет:
>>>> chroot, как мне кажется в настоящие время скорее костыль из прошлого,
>>>> когда есть lxc и прочие докеры
>>> Яростно плюсую. Особенно касательно ДХЦП-сервера, который не выполняет
>>> скрипты, когда зачручен. Пришлось в LXC развернуть кентось из-за этого.
>> Это большой оверхед.
>>
>> Чтобы сделать без лишних затрат ресурсов, нужно:
>> - либо в chroot подцепить нужные каталоги с помощью mount --bind  и тут
>> же перемонтировать их в ro, и тут сильно не хватает возможности вызвать
>> свой скрипт из стандартных в /etc/chroot.d/
>> - либо без chroot акуратно выставить разрешения, используя namespaces.
>>
>> Второй вариант универсальнее и хорошо сочетается с systemd
>
> В условиях провайдера, невзирая на оверхед, предпочтителен расклад
> "одна задача - одна виртуалка". Крайне желательно, чтоб задача для
> виртуалки работала "искаропки" и поднималась без самописных костылей,
> в которых когда-нибудь предстоит разбираться кому-то другому. Совсем
> замечательно, если виртуалки умеют мигрировать с сервера на сервер.

В такой постановке задачи выбор запуска в chroot или в корне
несущественен. Насколько я помню, в конфигурации можно указать, как
запускать демон.

Задача chroot в другом - изоляция процесса, чтобы при взломе фатально
затруднить работу злоумышленника. SElinux или механизм namespaces решают
эту задачу изящнее и основательнее по сравнению с chroot.

-- 
Станислав Дёгтев
Служба "Ваш админ"
 Мои контакты:
 - jabber: grumbler@grumbler.org
 - email: stas.grumbler@gmail.com и stas@vashadmin.su
 - телефоны в Е-бурге +79045430461 и +79222112259


  reply	other threads:[~2016-10-25  6:45 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-20  8:25 Stas
2016-10-20  9:33 ` Nikolay A. Fetisov
2016-10-20 20:55   ` Stas
2016-10-20 10:01 ` Andrew Borodin
2016-10-21  5:58 ` Sergey
2016-10-21  7:09   ` Stas
2016-10-21  7:33     ` Sergey
2016-10-21  7:41       ` Stas
2016-10-21  7:47     ` Anton Gorlov
2016-10-21  8:36       ` Stas
2016-10-25  1:27       ` В.А. Илларионов
2016-10-25  4:45         ` Stas
2016-10-25  6:26           ` В.А. Илларионов
2016-10-25  6:45             ` Stas [this message]
2016-10-25  9:20               ` В.А. Илларионов
2016-10-21  7:26   ` Nikolay A. Fetisov
2016-10-21  7:34     ` Sergey

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=580EFF89.10707@gmail.com \
    --to=stas.grumbler@gmail.com \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git