[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1249583888.20644.37.camel@dhcp231-106.rdu.redhat.com>
Date: Thu, 06 Aug 2009 14:38:08 -0400
From: Eric Paris <eparis@...hat.com>
To: James Morris <jmorris@...ei.org>
Cc: Justin Banks <justinb@...bone.com>, linux-kernel@...r.kernel.org,
linux-security-module@...r.kernel.org
Subject: Re: security module question
On Wed, 2009-08-05 at 12:02 +1000, James Morris wrote:
> On Tue, 4 Aug 2009, Justin Banks wrote:
>
> > Hello - I'm trying to implement a security module that will allow or
> > disallow writes on files by byte ranges. Is there a way to use
> > inode_permission() to do this, or is there an alternative route I should
> > take? It doesn't look like inode_permission() will give me the data I
> > need (offset + length of write).
There is nothing that can do that. Neither fanotify nor the LSM.
Biggest problem is mmap.....
I think there was past kernel module which did this, but I don't
remember what they were called. Nothing which tracks this and could be
used was ever reasonable for the mainline kernel.
-Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists