Re: [PATCH 05/11] Creation of "check_vmflags" LSM hook

From: Salvatore Mesoraca
Date: Tue Jun 13 2017 - 03:55:37 EST


2017-06-12 23:31 GMT+02:00 Casey Schaufler <casey@xxxxxxxxxxxxxxxx>:
> Have the hook return a value and return that rather
> than -EPERM. That way a security module can choose an
> error that it determines is appropriate. It is possible
> that a module might want to deny the access for a reason
> other than lack of privilege.
> [...]
>
> Same here
>
> [...]
>
> And here.

Yes, I think you are right. I'll fix it in the next version.
Thank you very much for taking the time to review my patch.