This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: issetugid?
- From: Florian Weimer <fweimer at redhat dot com>
- To: Rich Felker <dalias at libc dot org>, libc-alpha at sourceware dot org
- Date: Wed, 16 Jul 2014 09:31:41 +0200
- Subject: Re: issetugid?
- Authentication-results: sourceware.org; auth=none
- References: <20140716040726 dot GA25782 at brightrain dot aerifal dot cx>
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