diff options
author | Casey Schaufler <casey@schaufler-ca.com> | 2024-10-09 19:32:20 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2024-10-11 20:34:16 +0200 |
commit | 05a344e54d0b4892736526e4a309851da8ee9c89 (patch) | |
tree | 0ee5712316b1619172d26ac0ee76fdc9a5f4a9ee /security/smack | |
parent | audit: change context data from secid to lsm_prop (diff) | |
download | linux-05a344e54d0b4892736526e4a309851da8ee9c89.tar.xz linux-05a344e54d0b4892736526e4a309851da8ee9c89.zip |
netlabel,smack: use lsm_prop for audit data
Replace the secid in the netlbl_audit structure with an lsm_prop.
Remove scaffolding that was required when the value was a secid.
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
[PM: fix the subject line]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/smack')
-rw-r--r-- | security/smack/smackfs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/security/smack/smackfs.c b/security/smack/smackfs.c index 5dd1e164f9b1..1401412fd794 100644 --- a/security/smack/smackfs.c +++ b/security/smack/smackfs.c @@ -182,11 +182,9 @@ static inline void smack_catset_bit(unsigned int cat, char *catsetp) */ static void smk_netlabel_audit_set(struct netlbl_audit *nap) { - struct smack_known *skp = smk_of_current(); - nap->loginuid = audit_get_loginuid(current); nap->sessionid = audit_get_sessionid(current); - nap->secid = skp->smk_secid; + nap->prop.smack.skp = smk_of_current(); } /* |