mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 09:53:24 +00:00
11 lines
255 B
Rust
11 lines
255 B
Rust
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
use super::SyscallReturn;
|
|
use crate::prelude::*;
|
|
|
|
pub fn sys_geteuid(ctx: &Context) -> Result<SyscallReturn> {
|
|
let euid = ctx.posix_thread.credentials().euid();
|
|
|
|
Ok(SyscallReturn::Return(euid.as_u32() as _))
|
|
}
|