From: "Indan Zupancic" <indan@nul.nu>
To: "Tetsuo Handa" <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
w@1wt.eu, serue@us.ibm.com
Subject: Re: [PATCH][RFC] Simple tamper-proof device filesystem.
Date: Mon, 7 Jan 2008 21:37:35 +0100 (CET) [thread overview]
Message-ID: <51953.81.207.0.53.1199738255.squirrel@secure.samage.net> (raw)
In-Reply-To: <200801070020.DGI17963.HOOJStVMOFFQLF@I-love.SAKURA.ne.jp>
Hello,
Some questions:
On Sun, January 6, 2008 16:20, Tetsuo Handa wrote:
> I want to use this filesystem in case where a process with root privilege was
> hijacked but the behavior of the hijacked process is still restricted by MAC.
1) If the behaviour can be controlled, why can't the process be
disallowed to change anything badly in /dev? Like disallowing anything
from modifying existing nodes that weren't created by that process.
That would have practically the same effect as your filesystem,
won't it?
Or phrased differently, if the MAC system used can't protect /dev, it
won't be able to protect other directories either, and if it can't
protect e.g. my homedir, doesn't it make the whole MAC system
ineffective? And if the MAC system used is ineffective, your
filesystem is useless and you've bigger problems to fix.
2) The MAC system may not be able to guarantee certain combinations
of device names and properties, but isn't that policy that shouldn't
be in the kernel anyway? But if it is, shouldn't all device nodes be
checked? That is, shouldn't it be a global check instead of a filesystem
specific one?
3) Code efficiency. Thousand lines of code just to close one very specific
attack, which can be done in lots of different other ways that all need
to be prevented by the MAC system. (mounting over it, intercepting open
calls, duping the fd, etc.) Is it worth it?
I really don't care how you try to protect your system, but I don't think
this is an effective way to do it.
Good luck,
Indan
next prev parent reply other threads:[~2008-01-07 20:37 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-23 14:44 [PATCH][RFC] Simple tamper-proof device filesystem Tetsuo Handa
2007-12-31 20:02 ` Serge E. Hallyn
2008-01-01 2:16 ` Tetsuo Handa
2008-01-06 6:20 ` Tetsuo Handa
2008-01-06 6:26 ` Willy Tarreau
2008-01-06 7:36 ` Tetsuo Handa
2008-01-06 7:45 ` Willy Tarreau
2008-01-06 15:20 ` Tetsuo Handa
2008-01-07 20:37 ` Indan Zupancic [this message]
2008-01-08 13:50 ` Tetsuo Handa
2008-01-08 15:47 ` Indan Zupancic
2008-01-09 4:39 ` Tetsuo Handa
2008-01-09 13:59 ` Indan Zupancic
2008-01-09 23:08 ` Serge E. Hallyn
2008-01-10 1:06 ` Indan Zupancic
2008-01-10 4:57 ` Tetsuo Handa
2008-01-10 23:05 ` Indan Zupancic
2008-01-11 8:46 ` Tetsuo Handa
2008-01-11 12:22 ` Indan Zupancic
2008-01-11 14:05 ` Tetsuo Handa
2008-01-11 14:46 ` Lennart Sorensen
2008-01-07 17:09 ` Valdis.Kletnieks
2008-01-08 13:50 ` Tetsuo Handa
2008-01-09 5:04 ` Valdis.Kletnieks
2008-01-09 6:26 ` Tetsuo Handa
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=51953.81.207.0.53.1199738255.squirrel@secure.samage.net \
--to=indan@nul.nu \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=penguin-kernel@I-love.SAKURA.ne.jp \
--cc=serue@us.ibm.com \
--cc=w@1wt.eu \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).