XenevaOS
Loading...
Searching...
No Matches
_kecred.h
Go to the documentation of this file.
1
32#ifndef __KE_CRED_H__
33#define __KE_CRED_H__
34
35#include <_xeneva.h>
36#include <stdint.h>
37
38#ifdef __cplusplus
40#endif
41
42#define GID_NUM int
43#define UID_NUM int
44
45#define GID_GLOBAL_NET_COUNT 4
46#define GID_GLOBAL_IPC_COUNT 4
47#define GID_GLOBAL_MISC_COUNT 4
48
49
51 #define GID_GLOBAL_NET 0
52 #define GID_GLOBAL_IPC GID_GLOBAL_NET_COUNT
53 #define GID_GLOBAL_MISC (GID_GLOBAL_NET_COUNT + GID_GLOBAL_IPC_COUNT)
54
75
82XE_LIB int _KeCredChangeID(int fd, UID_NUM uid, GID_NUM gid);
83
89XE_LIB int _KeCredAddSGroup(int proc_id, int sgid);
90
96XE_LIB int _KeCredSetCap(int proc_id, int cap);
97
102XE_LIB int _KeCredGetCap(int proc_id);
103
109XE_LIB int _KeSetUID(int proc_id, UID_NUM uid);
110
116XE_LIB int _KeSetGID(int proc_id, GID_NUM gid);
117
124
125#ifdef __cplusplus
126}
127#endif
128
129
130#endif
#define GID_GLOBAL_MISC
Definition _kecred.h:53
XE_LIB int _KeCredGetCap(int proc_id)
#define UID_NUM
Definition _kecred.h:43
XE_LIB int _KeSetUID(int proc_id, UID_NUM uid)
_KeSetUID – change user id of a process
XE_LIB int _KeCredChangeID(int fd, UID_NUM uid, GID_NUM gid)
_KeCredChangeID – change credential ids
#define GID_NUM
Definition _kecred.h:42
XE_LIB int _KeCredAddSGroup(int proc_id, int sgid)
_KeCredAddSGroup – add supplimentary gid to process
XE_LIB int _KeSetGID(int proc_id, GID_NUM gid)
_KeSetGID – change user id of a process
@ AURORA_GID_MISC_USERS
Definition _kecred.h:71
@ AURORA_GID_NET_MONITOR
Definition _kecred.h:62
@ AURORA_GID_NET_ADMIN
Definition _kecred.h:61
@ AURORA_GID_MISC_ADMIN
Definition _kecred.h:72
@ AURORA_GID_MISC_WORLD
Definition _kecred.h:70
@ AURORA_GID_IPC_POSTBOX
Definition _kecred.h:65
@ AURORA_GID_IPC_PIPE
Definition _kecred.h:68
@ AURORA_GID_NET_SOCKET
Definition _kecred.h:59
@ AURORA_GID_MISC_DAEMONS
Definition _kecred.h:73
@ AURORA_GID_IPC_SIGNAL
Definition _kecred.h:67
@ AURORA_GID_NET_RAW
Definition _kecred.h:60
@ AURORA_GID_IPC_SHARED
Definition _kecred.h:66
XE_LIB int _KeCredSetCap(int proc_id, int cap)
#define GID_GLOBAL_IPC
Definition _kecred.h:52
#define GID_GLOBAL_NET
Definition _kecred.h:51
XE_LIB GID_NUM _KeGetGlobalGroupID(uint8_t category)
_KeGetGlobalGroupID – return a group id number
#define XE_LIB
Definition _xeneva.h:55
#define XE_EXTERN
Definition _xeneva.h:50
unsigned char uint8_t
Definition acefiex.h:161
_gid_entries_
Definition group.h:72