diff options
author | 2016-03-14 15:26:52 +0000 | |
---|---|---|
committer | 2016-03-14 15:26:52 +0000 | |
commit | f4cd975ed2f6401c6381f96b8b1be735564a72dc (patch) | |
tree | 9bda4714a2fd6cafe7a2cfe48ce29a0cccd3d0f3 /lib/libc/stdlib/malloc.c | |
parent | (char *)0 -> NULL (diff) | |
download | wireguard-openbsd-f4cd975ed2f6401c6381f96b8b1be735564a72dc.tar.xz wireguard-openbsd-f4cd975ed2f6401c6381f96b8b1be735564a72dc.zip |
Remove doaccess variable and access(2) call since this interfers with
applications like zdump(8) because pledge(2) doesn't allow access(2) to
/usr/share/zoneinfo.
millert@ better described why this call can go away:
"This looks like an attempt to do access checks based on the real uid instead
of the effective uid. Basically for setuid programs we don't want to allow a
user to set TZ to a path they should not be able to otherwise access.
However, we already have a check for issetugid() above so I think the doaccess
bits can just be removed and we can rely on open()."
After discussion with tb@, deraadt@ and millert@, this was also OK'ed by them
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions