Home
last modified time | relevance | path

Searched refs:euid (Results 1 – 3 of 3) sorted by relevance

/DragonOS/user/apps/test_cred/
H A Dmain.c27 int euid = geteuid(); in main() local
28 assert(euid == 1000); in main()
29 printf("Current euid:%d\n\n", euid); in main()
/DragonOS/kernel/src/process/
H A Dcred.rs37 pub euid: Kuid, field
65 euid: GLOBAL_ROOT_UID, in init()
138 pub fn seteuid(&mut self, euid: usize) { in seteuid()
139 self.euid.0 = euid; in seteuid()
H A Dsyscall.rs365 return Ok(pcb.cred.lock().euid.data()); in geteuid()
409 pub fn seteuid(euid: usize) -> Result<usize, SystemError> { in seteuid()
413 if euid == usize::MAX || (euid == guard.euid.data() && euid == guard.fsuid.data()) { in seteuid()
417 if euid != usize::MAX { in seteuid()
418 guard.seteuid(euid); in seteuid()
421 let euid = guard.euid.data(); in seteuid() localVariable
422 guard.setfsuid(euid); in seteuid()
452 if fsuid == guard.uid || fsuid == guard.euid || fsuid == guard.suid { in setfsuid()