From: Alexey Tourbin <at@turbinal.org>
To: ALT Linux general discussion list <community@altlinux.ru>
Subject: [Comm] Re: read-only system
Date: Tue, 3 Dec 2002 15:56:39 +0300
Message-ID: <20021203125639.GA4104@ungrund> (raw)
In-Reply-To: <20021201002107.GD16531@basalt.office.altlinux.ru>
On Sun, Dec 01, 2002 at 03:21:07AM +0300, Dmitry V. Levin wrote:
> > * Всё было смонтировано 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
>
> Так что в записке содержалось легко опрвержимое утверждение.
Можно чуть подробнее? Т.е. вы хотите сказать, что монтирование noexec по
существу ничего не дает?
> P.S. Как вы думаете, почему я предпочитаю readonly chroot?
Потому что в чруте есть /lib/ld-linux.so.2?
А можно ли с него снять chmod -x?
Я просто плохо разбираюсь, как это всё подцепляется.
> --
> ldv
--
WBR, Alexey Tourbin "He is a sane man who can have tragedy
BIOZAK Ltd., Russia in his heart and comedy in his head."
--G.K.Chesterton
next prev parent reply other threads:[~2002-12-03 12:56 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
2002-12-03 12:56 ` Alexey Tourbin [this message]
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=20021203125639.GA4104@ungrund \
--to=at@turbinal.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