flat assembler
Message board for the users of flat assembler.
Index
> Linux > GetGid [renamed] |
Author |
|
a16b03 07 Dec 2006, 21:01
What's the difference between
sys_getgid & sys_getegid Last edited by a16b03 on 07 Dec 2006, 22:00; edited 2 times in total |
|||
07 Dec 2006, 21:01 |
|
rugxulo 07 Dec 2006, 21:10
e
|
|||
07 Dec 2006, 21:10 |
|
a16b03 07 Dec 2006, 21:17
I don't believe. You gotta be kidding me.
... Are you serious? Is that all? P.S. eax is 50 and 47. |
|||
07 Dec 2006, 21:17 |
|
rugxulo 07 Dec 2006, 21:28
a16b03, sorry, just my little joke, I don't know the difference. I was just being goofy (thought it was obvious).
|
|||
07 Dec 2006, 21:28 |
|
vid 07 Dec 2006, 21:41
47 = get real group id
50 = get effective group id no idea what these are |
|||
07 Dec 2006, 21:41 |
|
gunblade 07 Dec 2006, 21:43
man 2 getgid answers all your questions:
getgid returns the real group ID of the current process. getegid returns the effective group ID of the current process. The real ID corresponds to the ID of the calling process. The effec- tive ID corresponds to the set ID bit on the file being executed. Thats your best bet for any syscall, remove the "sys_" prefix, then just do man 2 <rest of syscall name> |
|||
07 Dec 2006, 21:43 |
|
a16b03 07 Dec 2006, 21:58
Oh. I think i know whats wrong with my prog.
getgid returns all groups, rignt (for process)? And If I want to know if user is in tty (GID=5) group i must somehow mask it out right? Last edited by a16b03 on 07 Dec 2006, 22:05; edited 1 time in total |
|||
07 Dec 2006, 21:58 |
|
a16b03 07 Dec 2006, 21:59
I'll rename This post to GetGid
|
|||
07 Dec 2006, 21:59 |
|
arafel 26 Dec 2006, 20:06
sys_getgid returns real group id for the process and sys_getgroups retrieves a lists of all the supplementary groups id's.
No need to mask out (or do any other operations on) the return values. Just check whether the required group equals to primary or one of the supplementary groups. |
|||
26 Dec 2006, 20:06 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.