Skip to content

Commit bd1f593

Browse files
KhadijaKamranpcmoore
authored andcommitted
lsm: add comment block for security_sk_classify_flow LSM hook
security_sk_classify_flow LSM hook has no comment block. Add a comment block with a brief description of LSM hook and its function parameters. Signed-off-by: Khadija Kamran <kamrankhadijadj@gmail.com> [PM: minor double-space fix] Signed-off-by: Paul Moore <paul@paul-moore.com>
1 parent faf302f commit bd1f593

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

security/security.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4421,6 +4421,13 @@ void security_sk_clone(const struct sock *sk, struct sock *newsk)
44214421
}
44224422
EXPORT_SYMBOL(security_sk_clone);
44234423

4424+
/**
4425+
* security_sk_classify_flow() - Set a flow's secid based on socket
4426+
* @sk: original socket
4427+
* @flic: target flow
4428+
*
4429+
* Set the target flow's secid to socket's secid.
4430+
*/
44244431
void security_sk_classify_flow(struct sock *sk, struct flowi_common *flic)
44254432
{
44264433
call_void_hook(sk_getsecid, sk, &flic->flowic_secid);

0 commit comments

Comments
 (0)