Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 18 Apr 2021 10:29:56 -0700
From: Alan Coopersmith <alan.coopersmith@...cle.com>
To: oss-security@...ts.openwall.com
Subject: Re: xscreensaver package caps gets raw socket

On 4/17/21 5:51 PM, Érico Nogueira wrote:
> Using `secure_getenv` in some of these cases would probably work as well as 
> checking `getauxval(AT_SECURE)`, especially because it seems (from my quick 
> search over at <https://man.bsd.lv>) that both are Linux specific anyway.

Solaris also has secure_getenv since the 11.3.10 release.  It uses the
issetugid() call that's been available since Solaris 9 (2002) and which
is also available in FreeBSD & OpenBSD:

https://man.openbsd.org/issetugid.2
https://www.freebsd.org/cgi/man.cgi?query=issetugid&sektion=2
https://docs.oracle.com/cd/E88353_01/html/E37841/issetugid-2.html

Though Nico Williams warns not all implementations work the same way:
https://gist.github.com/nicowilliams/4daf74a3a0c86848d3cbd9d0cdb5e26e

-- 
	-Alan Coopersmith-               alan.coopersmith@...cle.com
	 Oracle Solaris Engineering - https://blogs.oracle.com/alanc

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.