Skip to content
Snippets Groups Projects
Commit 4ca165fc authored by Lontke Michael's avatar Lontke Michael Committed by Casey Schaufler
Browse files

SMACK: Add sk_clone_security LSM hook


Using smk_of_current() during sk_alloc_security hook leads in
rare cases to a faulty initialization of the security context
of the created socket.

By adding the LSM hook sk_clone_security to SMACK this initialization
fault is corrected by copying the security context of the old socket
pointer to the newly cloned one.

Co-authored-by: default avatarMartin Ostertag: <martin.ostertag@elektrobit.com>
Signed-off-by: default avatarLontke Michael <michael.lontke@elektrobit.com>
Signed-off-by: default avatarCasey Schaufler <casey@schaufler-ca.com>
parent b90cb105
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment