summaryrefslogtreecommitdiffstats
path: root/lib/tcbfuncs.h
blob: 6324bc1c71d6d8202f3b510d2b99851b42aa1d52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _TCBFUNCS_H
#define _TCBFUNCS_H

#include <sys/types.h>

typedef enum {
	SHADOWTCB_FAILURE = 0,
	SHADOWTCB_SUCCESS = 1
} shadowtcb_status;

extern shadowtcb_status shadowtcb_drop_priv (void);
extern shadowtcb_status shadowtcb_gain_priv (void);
extern shadowtcb_status shadowtcb_set_user (const char *name);
extern shadowtcb_status shadowtcb_remove (const char *name);
extern shadowtcb_status shadowtcb_move (/*@null@*/const char *user_newname,
                                        uid_t user_newid);
extern shadowtcb_status shadowtcb_create (const char *name, uid_t uid);

#endif