Re: [PATCH v4 9/20] lsm: Refactor return value of LSM hook key_getsecurity

2024-07-23 Thread Paul Moore
On Tue, Jul 23, 2024 at 3:04 AM Xu Kuohai wrote: > On 7/23/2024 5:35 AM, Paul Moore wrote: > > On Sat, Jul 20, 2024 at 5:31 AM Xu Kuohai wrote: > >> 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 ret

Re: [PATCH v4 9/20] lsm: Refactor return value of LSM hook key_getsecurity

2024-07-23 Thread Xu Kuohai
On 7/23/2024 5:35 AM, Paul Moore wrote: On Sat, Jul 20, 2024 at 5:31 AM Xu Kuohai wrote: 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 key_getsecurity to 0 or a negative error code. Before: -

Re: [PATCH v4 9/20] lsm: Refactor return value of LSM hook key_getsecurity

2024-07-22 Thread Paul Moore
On Sat, Jul 20, 2024 at 5:31 AM Xu Kuohai wrote: > 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 key_getsecurity to 0 or a negative error code. > >> > >> Before: > >> - Hook key_g

Re: [PATCH v4 9/20] lsm: Refactor return value of LSM hook key_getsecurity

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 key_getsecurity to 0 or a negative error code. Before: - Hook key_getsecurity returns length of value on success or a negative error code on fail

Re: [PATCH v4 9/20] lsm: Refactor return value of LSM hook key_getsecurity

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 key_getsecurity to 0 or a negative error code. > > Before: > - Hook key_getsecurity returns length of value on success or a > negative error code on failure. > > After: > - Hook key_g