This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: issetugid?


On 07/16/2014 06:07 AM, Rich Felker wrote:
In the interest of fostering cooperation rather than fragmentation
when adding new APIs like this, I'd like to know if the glibc side has
any interest in adding this function, or any objections to the way it
works on BSDs and what's been proposed for inclusion in musl (see the
link above).

glibc already offers getauxval(AT_SECURE) and prctl(PR_GET_DUMPABLE), so I'm not sure if another interface is needed.

On Linux, the function name issetugid is misleading because you generally want to include transitions caused by Linux Security Modules which do not alter UID or GID as well.

What's worse, the Solaris and FreeBSD versions of issetugid are different, so we'd have to pick one behavior and be incompatible with the other.

--
Florian Weimer / Red Hat Product Security


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]