ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux general discussion list <community@altlinux.ru>
Subject: Re: [Comm] Re: read-only system
Date: Sun, 1 Dec 2002 03:21:07 +0300
Message-ID: <20021201002107.GD16531@basalt.office.altlinux.ru> (raw)
In-Reply-To: <20021120091822.GL19743@ifirst.ru>

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

On Wed, Nov 20, 2002 at 12:18:22PM +0300, Artem K. Jouravsky wrote:
> > > >	  Есть желание перевести fs на рутере по максимуму на read-only. В
> > > >связи с этим возник вопрос: 
> > > >В какие папки/файлы система с установленными DNS, Postfix, syslog, klog
> > > >система хочет иметь доступ на read-write. 
> > > >
> > > /etc
> > > /tmp
> > > /var
> > > 
> > А как же / , корневой раздел может быть RO ?
> > Я вроде читал что нет.
> Отлично может. Когда-то видел роутер-мечту, построенный на freebsd.
> * Всё было смонтировано RO, всё что требовало записи (/var, например) было
>   смонтировано noexec. 
> * mount был пропатчен, чтобы работать только в init 1, т.о. перемонтировать
>   раздел становилось возможным только в single user
> * были убраны компиляторы, perl, вообще практически всё лишнее. Как было
>   написано в сопроводительной записке: "Таким образом, потенциальному
>   взломщику останутся только shell скрипты даже при получении доступа root"

... и возможность залить недостающий инструментарий по сети:
$ cp -p /bin/ls ~/tmp/
$ chmod 400 ~/tmp/ls
$ /lib/ld-linux.so.2 ~/tmp/ls /             
bin  boot  dev  etc  home  lib  mnt  opt  proc  root  sbin  tmp  usr  var

Так что в записке содержалось легко опрвержимое утверждение.

P.S. Как вы думаете, почему я предпочитаю readonly chroot?


--
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2002-12-01  0:21 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-19 11:12 [Comm] " Oleg Lukashin
2002-11-19 11:28 ` Alexander Lyubushkin
2002-11-19 13:34   ` Andrey Vakatov
2002-11-19 13:53     ` Oleg Lukashin
2002-11-19 13:42       ` Andrey Orlov
2002-11-19 14:02         ` Oleg Lukashin
2002-11-19 14:14           ` Andrey Orlov
2002-11-19 13:50 ` Andrew Velikoredchanin
2002-11-19 15:00   ` Andrei M. Laptev
2002-11-19 15:26     ` Re[2]: " ASA
2002-11-20 10:13       ` Andrei M. Laptev
2002-11-20 10:22         ` Re[4]: " ASA
2002-11-20 11:20         ` Re[2]: " Oleg Lukashin
2002-11-19 18:26     ` Andrew Velikoredchanin
2002-11-20  9:18     ` [Comm] " Artem K. Jouravsky
2002-12-01  0:21       ` Dmitry V. Levin [this message]
2002-12-03 12:56         ` Alexey Tourbin
2002-12-08  0:17           ` Dmitry V. Levin

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=20021201002107.GD16531@basalt.office.altlinux.ru \
    --to=ldv@altlinux.org \
    --cc=community@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 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