[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070308170001.GA17304@sergelap.austin.ibm.com>
Date: Thu, 8 Mar 2007 11:00:01 -0600
From: "Serge E. Hallyn" <serue@...ibm.com>
To: Chris Wright <chrisw@...s-sol.org>
Cc: Mimi Zohar <zohar@...ux.vnet.ibm.com>,
linux-kernel@...r.kernel.org, safford@...son.ibm.com,
serue@...ux.vnet.ibm.com, kjhall@...ux.vnet.ibm.com,
zohar@...ibm.com
Subject: Re: [RFC][Patch 1/6] integrity: new hooks
Quoting Chris Wright (chrisw@...s-sol.org):
> * Mimi Zohar (zohar@...ux.vnet.ibm.com) wrote:
> > +static int dummy_inode_setxattr(struct dentry *dentry, char *name, void *value,
> > + size_t size, int flags)
> > +{
> > + if (!strncmp(name, XATTR_SECURITY_PREFIX,
> > + sizeof(XATTR_SECURITY_PREFIX) - 1) &&
> > + !capable(CAP_SYS_ADMIN))
> > + return -EPERM;
> > + return 0;
> > +}
>
> Hold on, what is all this? Duplication of all of this code is a no go.
It's unfortunate, agreed, but
use of LSM as an integrity framework was also a no-go.
Options?
thanks,
-serge
-
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