fn check_access_permissions(
st: &FileStat,
mode: u32,
) -> Result<(), SyscallError>Expand description
Check file permissions against the access mode.
F_OK (0): just check that the file exists (already done by stat_path). R_OK/W_OK/X_OK: check the corresponding permission bits for the current process’s real UID/GID (access() semantics).