new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / headers / privsep_op.h
1 /* Copyright (C) 2009 Trend Micro Inc.
2  * All right reserved.
3  *
4  * This program is a free software; you can redistribute it
5  * and/or modify it under the terms of the GNU General Public
6  * License (version 2) as published by the FSF - Free Software
7  * Foundation
8  */
9
10 /* Functions for privilege separation */
11
12 #ifndef __PRIV_H
13 #define __PRIV_H
14
15 #include "shared.h"
16
17 uid_t Privsep_GetUser(const char *name) __attribute__((nonnull));
18
19 gid_t Privsep_GetGroup(const char *name) __attribute__((nonnull));
20
21 int Privsep_SetUser(uid_t uid);
22
23 int Privsep_SetGroup(gid_t gid);
24
25 int Privsep_Chroot(const char *path) __attribute__((nonnull));
26
27 #endif
28