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
50#define GID_GLOBAL_NET 0
51#define GID_GLOBAL_IPC GID_GLOBAL_NET_COUNT
52#define GID_GLOBAL_MISC (GID_GLOBAL_NET_COUNT + GID_GLOBAL_IPC_COUNT)
53
74
81 XE_LIB int _KeCredChangeID(int fd, UID_NUM uid, GID_NUM gid);
82
88 XE_LIB int _KeCredAddSGroup(int proc_id, int sgid);
89
95 XE_LIB int _KeCredSetCap(int proc_id, int cap);
96
101 XE_LIB int _KeCredGetCap(int proc_id);
102
108 XE_LIB int _KeSetUID(int proc_id, UID_NUM uid);
109
115 XE_LIB int _KeSetGID(int proc_id, GID_NUM gid);
116
123
124#ifdef __cplusplus
125}
126#endif
127
128#endif
#define GID_GLOBAL_MISC
Definition _kecred.h:52
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:70
@ AURORA_GID_NET_MONITOR
Definition _kecred.h:61
@ AURORA_GID_NET_ADMIN
Definition _kecred.h:60
@ AURORA_GID_MISC_ADMIN
Definition _kecred.h:71
@ AURORA_GID_MISC_WORLD
Definition _kecred.h:69
@ AURORA_GID_IPC_POSTBOX
Definition _kecred.h:64
@ AURORA_GID_IPC_PIPE
Definition _kecred.h:67
@ AURORA_GID_NET_SOCKET
Definition _kecred.h:58
@ AURORA_GID_MISC_DAEMONS
Definition _kecred.h:72
@ AURORA_GID_IPC_SIGNAL
Definition _kecred.h:66
@ AURORA_GID_NET_RAW
Definition _kecred.h:59
@ AURORA_GID_IPC_SHARED
Definition _kecred.h:65
XE_LIB int _KeCredSetCap(int proc_id, int cap)
#define GID_GLOBAL_IPC
Definition _kecred.h:51
#define GID_GLOBAL_NET
Definition _kecred.h:50
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