File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/starnix/kernel/security Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -825,13 +825,14 @@ pub fn check_exec_access(
825
825
}
826
826
827
827
/// Computes and updates the socket security class for the `FsNode` associated with a new socket.
828
+ /// Corresponds to the `socket_post_create()` LSM hooks.
828
829
pub fn socket_post_create ( socket : & Socket , socket_node : & FsNode ) {
829
830
profile_duration ! ( "security.hooks.socket_post_create" ) ;
830
831
selinux_hooks:: socket:: socket_post_create ( socket, socket_node) ;
831
832
}
832
833
833
834
/// 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.
835
836
pub fn update_state_on_exec ( current_task : & CurrentTask , elf_security_state : & ResolvedElfState ) {
836
837
track_hook_duration ! ( c"security.hooks.update_state_on_exec" ) ;
837
838
if_selinux_else (
You can’t perform that action at this time.
0 commit comments