mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 17:33:23 +00:00
Allow passing the process Context
to syscall handlers
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
19ad2a2eb4
commit
66a37da214
@ -3,7 +3,7 @@
|
||||
use super::SyscallReturn;
|
||||
use crate::{prelude::*, process::credentials};
|
||||
|
||||
pub fn sys_getuid() -> Result<SyscallReturn> {
|
||||
pub fn sys_getuid(_ctx: &Context) -> Result<SyscallReturn> {
|
||||
let uid = {
|
||||
let credentials = credentials();
|
||||
credentials.ruid()
|
||||
|
Reference in New Issue
Block a user