diff options
| author | Paul Moore <paul@paul-moore.com> | 2025-11-18 19:18:10 -0500 |
|---|---|---|
| committer | Paul Moore <paul@paul-moore.com> | 2025-11-19 10:32:06 -0500 |
| commit | 9a948eefad594c42717f29824dd40d6dc0b7aa13 (patch) | |
| tree | 52619ea20b2c2f7956109a43d3086ef2a786e2dc /scripts/lib/kdoc/kdoc_output.py | |
| parent | 0e6ebf877843717ced4ada5c09c7196cede5054c (diff) | |
lsm: use unrcu_pointer() for current->cred in security_init()
We need to directly allocate the cred's LSM state for the initial task
when we initialize the LSM framework. Unfortunately, this results in a
RCU related type mismatch, use the unrcu_pointer() macro to handle this
a bit more elegantly.
The explicit type casting still remains as we need to work around the
constification of current->cred in this particular case.
Reviewed-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions
