# Re: \[PATCH v11 07/11\] LSM: Helpers for attribute names and filling lsm\_ctx

- From: Kees Cook \<hidden\>
- Date: 2023-06-19 20:02:37 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2023/06/2239067
- Thread: https://ratatoskr.run/linux-security-module/2023/06/2236897/t.md

```text
On Fri, Jun 16, 2023 at 09:50:51AM -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.
> 
> All are used in module specific components of LSM system calls.
> 
> Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>

Reviewed-by: Kees Cook <redacted>

-- 
Kees Cook
```
