Re: [PATCH] seclvl: use securityfs

2005-08-09 Thread serue
Quoting James Morris ([EMAIL PROTECTED]): > On Mon, 8 Aug 2005, [EMAIL PROTECTED] wrote: > > This looks like a nice cleanup. > > > + > > + if (count < 0 || count >= PAGE_SIZE) > > + return -ENOMEM; > > + if (*ppos != 0) { > > + return -EINVAL; > > + } > > Why is the fir

Re: [PATCH] seclvl: use securityfs

2005-08-08 Thread James Morris
On Mon, 8 Aug 2005, [EMAIL PROTECTED] wrote: This looks like a nice cleanup. > + > + if (count < 0 || count >= PAGE_SIZE) > + return -ENOMEM; > + if (*ppos != 0) { > + return -EINVAL; > + } Why is the first error there -ENOMEM and not -EINVAL? - James -- Ja

[PATCH] seclvl: use securityfs

2005-08-08 Thread serue
Hi, since Greg KH's securityfs patch is in -mm, the attached patch will convert seclvl to use securityfs. thanks, -serge Signed-off-by: Serge Hallyn <[EMAIL PROTECTED]> -- seclvl.c | 226 +++ 1 files changed, 69 insertions(+), 157 del