2008-04-22 07:43:00 +00:00
|
|
|
/* $FreeBSD$ */
|
|
|
|
|
2007-04-06 01:09:06 +00:00
|
|
|
#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
|
2011-02-27 19:41:40 +00:00
|
|
|
priv_ineffect(int priv)
|
2007-04-06 01:09:06 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
assert(priv == PRIV_SYS_CONFIG);
|
|
|
|
return (geteuid() == 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* !_OPENSOLARIS_PRIV_H_ */
|