Skip to content

Commit dc2236f

Browse files
nellyvCQ Bot
authored andcommitted
[sestarnix][cleanup] Nits in comments.
Fix/add missing doc "Corresponds to the ... LSM hook" Change-Id: Ic6bc7a655e7dd641cd1da896285c08603683e4c2 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1236084 Commit-Queue: Nelly Vouzoukidou <[email protected]> Reviewed-by: Wez <[email protected]>
1 parent 674b5de commit dc2236f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/starnix/kernel/security/hooks.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,13 +825,14 @@ pub fn check_exec_access(
825825
}
826826

827827
/// Computes and updates the socket security class for the `FsNode` associated with a new socket.
828+
/// Corresponds to the `socket_post_create()` LSM hooks.
828829
pub fn socket_post_create(socket: &Socket, socket_node: &FsNode) {
829830
profile_duration!("security.hooks.socket_post_create");
830831
selinux_hooks::socket::socket_post_create(socket, socket_node);
831832
}
832833

833834
/// Updates the SELinux thread group state on exec.
834-
/// Corresponds to the `bprm_committing_creds()` and `bprm_committed_creds()` hooks.
835+
/// Corresponds to the `bprm_committing_creds()` and `bprm_committed_creds()` LSM hooks.
835836
pub fn update_state_on_exec(current_task: &CurrentTask, elf_security_state: &ResolvedElfState) {
836837
track_hook_duration!(c"security.hooks.update_state_on_exec");
837838
if_selinux_else(

0 commit comments

Comments
 (0)