mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
2cd450c3d2
Patches from: George Liaskos [geo.liaskos gmail com] Security: http://www.vuxml.org/freebsd/6887828f-0229-11e0-b84d-00262d5ed8ee.html
12 lines
429 B
C++
12 lines
429 B
C++
--- ipc/ipc_channel_posix.cc.orig 2011-06-06 00:13:54.367162724 +0300
|
|
+++ ipc/ipc_channel_posix.cc 2011-06-06 00:14:09.016163924 +0300
|
|
@@ -927,7 +927,7 @@
|
|
|
|
bool Channel::ChannelImpl::GetClientEuid(uid_t* client_euid) const {
|
|
DCHECK(HasAcceptedConnection());
|
|
-#if defined(OS_MACOSX)
|
|
+#if defined(OS_MACOSX) || defined(OS_FREEBSD)
|
|
uid_t peer_euid;
|
|
gid_t peer_gid;
|
|
if (getpeereid(pipe_, &peer_euid, &peer_gid) != 0) {
|