Re: [PATCH v4 7/20] lsm: Refactor return value of LSM hook setprocattr

2024-07-20 Thread Xu Kuohai
On 7/19/2024 10:08 AM, Paul Moore wrote: On Jul 11, 2024 Xu Kuohai wrote: To be consistent with most LSM hooks, convert the return value of hook setprocattr to 0 or a negative error code. Before: - Hook setprocattr returns the number of bytes written on success or a negative error code on

Re: [PATCH v4 7/20] lsm: Refactor return value of LSM hook setprocattr

2024-07-18 Thread Paul Moore
On Jul 11, 2024 Xu Kuohai wrote: > > To be consistent with most LSM hooks, convert the return value of > hook setprocattr to 0 or a negative error code. > > Before: > - Hook setprocattr returns the number of bytes written on success > or a negative error code on failure. > > After: > - Hook s