blob: c536ed51f1f9eb01663ab25f419ed9dbc0ca0b5c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* $FreeBSD: src/cddl/compat/opensolaris/include/priv.h,v 1.2.2.2.4.1 2009/04/15 03:14:26 kensmith Exp $ */
#ifndef _OPENSOLARIS_PRIV_H_
#define _OPENSOLARIS_PRIV_H_
#include <sys/types.h>
#include <unistd.h>
#include <assert.h>
#define PRIV_SYS_CONFIG 0
static __inline int
priv_ineffect(priv)
{
assert(priv == PRIV_SYS_CONFIG);
return (geteuid() == 0);
}
#endif /* !_OPENSOLARIS_PRIV_H_ */
|