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