Re: [PATCH][LSM] Early init for security modules and various cleanups

Chris Wright
2003-06-02T16:23:42Z

* Andrew Morton (akpm@digeo.com) wrote:
> Chris Wright <chris@wirex.com> wrote:
> >
> > security_capable() returns 0 if that capability bit is set.
>
> That's just bizarre. Is there any logic behind it?

Yes, as Stephen pointed out, it's common for the security interface to
return 0 on success on -errno on failure.

cheers,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net