summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/os_posix/os_priv.c
blob: 0e0f5dfb190ac61825f55fa9e505c165f2c3b173 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*-
 * Copyright (c) 2014-2017 MongoDB, Inc.
 * Copyright (c) 2008-2014 WiredTiger, Inc.
 *	All rights reserved.
 *
 * See the file LICENSE for redistribution information.
 */

#include "wt_internal.h"

/*
 * __wt_has_priv --
 *	Return if the process has special privileges, defined as having
 *	different effective and read UIDs or GIDs.
 */
bool
__wt_has_priv(void)
{
	return (getuid() != geteuid() || getgid() != getegid());
}