Home
last modified time | relevance | path

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

/DragonOS/user/apps/test_cred/
H A Dmain.c34 int egid = getegid(); in main() local
35 assert(egid == 1000); in main()
36 printf("Current egid:%d\n\n", egid); in main()
/DragonOS/kernel/src/process/
H A Dcred.rs39 pub egid: Kgid, field
66 egid: GLOBAL_ROOT_GID, in init()
154 pub fn setegid(&mut self, egid: usize) { in setegid()
155 self.egid.0 = egid; in setegid()
H A Dsyscall.rs312 return Ok(pcb.cred.lock().egid.data()); in getegid()
336 if guard.egid.data() == 0 { in setgid()
369 pub fn setegid(egid: usize) -> Result<usize, SystemError> { in setegid()
373 if egid == usize::MAX || (egid == guard.egid.data() && egid == guard.fsgid.data()) { in setegid()
377 if egid != usize::MAX { in setegid()
378 guard.setegid(egid); in setegid()
381 let egid = guard.egid.data(); in setegid() localVariable
382 guard.setfsgid(egid); in setegid()
408 if fsgid == guard.gid || fsgid == guard.egid || fsgid == guard.sgid { in setfsgid()