XenevaOS
Loading...
Searching...
No Matches
group.h
Go to the documentation of this file.
1
32#ifndef __GROUP_H__
33#define __GROUP_H__
34
35#include <stdint.h>
36
37
38#define GID_NUM int
39
45#define AURORA_GID_GENERAL_FILE -1
46
47#define GROUP_NAME_NETWORK "network"
48#define GROUP_NAME_AUDIO "audio"
49#define GROUP_NAME_TTY "tty"
50#define GROUP_NAME_STORAGE "storage"
51#define GROUP_NAME_GRAPHICS "graphics"
52#define GROUP_NAME_IPC_POSTBOX "postbox_ipc"
53
54#define GROUP_ID_ROOT 0
55
56#define GID_GLOBAL_NET_COUNT 4
57#define GID_GLOBAL_IPC_COUNT 4
58#define GID_GLOBAL_MISC_COUNT 4
59
60#define AURORA_MAX_GROUPS (GID_GLOBAL_NET_COUNT + \
61 GID_GLOBAL_IPC_COUNT + \
62 GID_GLOBAL_MISC_COUNT )
63
65#define GID_GLOBAL_NET 0
66#define GID_GLOBAL_IPC GID_GLOBAL_NET_COUNT
67#define GID_GLOBAL_MISC (GID_GLOBAL_NET_COUNT + GID_GLOBAL_IPC_COUNT)
68
89
94extern void AuCredGroupInitialize();
95
101extern int AuCredGroupAdd(uint8_t category, GID_NUM value);
102
108extern uint8_t AuCredGetGroupCategory(const char* string);
109
115extern GID_NUM AuCredGetGroupID(uint8_t category);
116
117#endif
unsigned char uint8_t
Definition acefiex.h:161
#define GID_GLOBAL_MISC
Definition group.h:67
void AuCredGroupInitialize()
AuCredGroupInitialize – initialize default group id's which is zero.
Definition cred.c:83
GID_NUM AuCredGetGroupID(uint8_t category)
AuCredGetGroupID – return a group id number.
Definition cred.c:187
#define GID_NUM
Definition group.h:38
uint8_t AuCredGetGroupCategory(const char *string)
AuCredGetGroupCategory – get a group category number by looking it name.
Definition cred.c:162
int AuCredGroupAdd(uint8_t category, GID_NUM value)
Definition cred.c:145
_gid_entries_
Definition group.h:72
@ AURORA_GID_MISC_USERS
Definition group.h:85
@ AURORA_GID_NET_MONITOR
Definition group.h:76
@ AURORA_GID_NET_ADMIN
Definition group.h:75
@ AURORA_GID_MISC_ADMIN
Definition group.h:86
@ AURORA_GID_MISC_WORLD
Definition group.h:84
@ AURORA_GID_IPC_POSTBOX
Definition group.h:79
@ AURORA_GID_IPC_PIPE
Definition group.h:82
@ AURORA_GID_NET_SOCKET
Definition group.h:73
@ AURORA_GID_MISC_DAEMONS
Definition group.h:87
@ AURORA_GID_IPC_SIGNAL
Definition group.h:81
@ AURORA_GID_NET_RAW
Definition group.h:74
@ AURORA_GID_IPC_SHARED
Definition group.h:80
#define GID_GLOBAL_IPC
Definition group.h:66
#define GID_GLOBAL_NET
Definition group.h:65