Re: [PATCH v10 07/11] LSM: Helpers for attribute names and filling lsm_ctx

From: Serge Hallyn
Date: Thu Jun 15 2023 - 09:27:18 EST


On Fri, Apr 28, 2023 at 01:34:13PM -0700, Casey Schaufler wrote:
> Add lsm_name_to_attr(), which translates a text string to a
> LSM_ATTR value if one is available.
>
> Add lsm_fill_user_ctx(), which fills a struct lsm_ctx, including
> the trailing attribute value. The .len value is padded to a multiple
> of 64 bits for alignment.
>
> All are used in module specific components of LSM system calls.
>
> Signed-off-by: Casey Schaufler <casey@xxxxxxxxxxxxxxxx>

(I assume you have a patch queued up for the undefined errors?)