Re: [PATCH v4 6/20] lsm: Refactor return value of LSM hook getselfattr

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 getselfattr to 0 or a negative error code. Before: - Hook getselfattr returns number of attributes found on success or a negative error code on f

Re: [PATCH v4 6/20] lsm: Refactor return value of LSM hook getselfattr

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 getselfattr to 0 or a negative error code. > > Before: > - Hook getselfattr returns number of attributes found on success > or a negative error code on failure. > > After: > - Hook ge