diff options
author | Khadija Kamran <kamrankhadijadj@gmail.com> | 2023-07-31 16:36:47 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2023-07-31 22:07:40 +0200 |
commit | bd1f5934e460eb11f42278fe8450a87d64bf70f5 (patch) | |
tree | 5d5a03488d4d0043a01d96eae2ba4dd560fdb3a5 /security/security.c | |
parent | security: Fix ret values doc for security_inode_init_security() (diff) | |
download | linux-bd1f5934e460eb11f42278fe8450a87d64bf70f5.tar.xz linux-bd1f5934e460eb11f42278fe8450a87d64bf70f5.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | security/security.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/security/security.c b/security/security.c index f86567083e66..9177fd0968bd 100644 --- a/security/security.c +++ b/security/security.c @@ -4421,6 +4421,13 @@ void security_sk_clone(const struct sock *sk, struct sock *newsk) } EXPORT_SYMBOL(security_sk_clone); +/** + * security_sk_classify_flow() - Set a flow's secid based on socket + * @sk: original socket + * @flic: target flow + * + * Set the target flow's secid to socket's secid. + */ void security_sk_classify_flow(struct sock *sk, struct flowi_common *flic) { call_void_hook(sk_getsecid, sk, &flic->flowic_secid); |