flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
a16b03
What's the difference between
sys_getgid & sys_getegid Last edited by a16b03 on 07 Dec 2006, 22:00; edited 2 times in total |
|||
![]() |
|
rugxulo
e
![]() |
|||
![]() |
|
a16b03
I don't believe. You gotta be kidding me.
... Are you serious? Is that all? P.S. eax is 50 and 47. |
|||
![]() |
|
rugxulo
a16b03, sorry, just my little joke, I don't know the difference. I was just being goofy (thought it was obvious).
![]() |
|||
![]() |
|
vid
47 = get real group id
50 = get effective group id no idea what these are ![]() |
|||
![]() |
|
gunblade
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> |
|||
![]() |
|
a16b03
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 |
|||
![]() |
|
a16b03
I'll rename This post to GetGid
|
|||
![]() |
|
arafel
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. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.