|
XenevaOS
|
#include <stdint.h>

Go to the source code of this file.
Macros | |
| #define | GID_NUM int |
| #define | AURORA_GID_GENERAL_FILE -1 |
| gid general file could be any randome number defined by user administration system, must match the user id number | |
| #define | GROUP_NAME_NETWORK "network" |
| #define | GROUP_NAME_AUDIO "audio" |
| #define | GROUP_NAME_TTY "tty" |
| #define | GROUP_NAME_STORAGE "storage" |
| #define | GROUP_NAME_GRAPHICS "graphics" |
| #define | GROUP_NAME_IPC_POSTBOX "postbox_ipc" |
| #define | GROUP_ID_ROOT 0 |
| #define | GID_GLOBAL_NET_COUNT 4 |
| #define | GID_GLOBAL_IPC_COUNT 4 |
| #define | GID_GLOBAL_MISC_COUNT 4 |
| #define | AURORA_MAX_GROUPS |
| #define | GID_GLOBAL_NET 0 |
| #define | GID_GLOBAL_IPC GID_GLOBAL_NET_COUNT |
| #define | GID_GLOBAL_MISC (GID_GLOBAL_NET_COUNT + GID_GLOBAL_IPC_COUNT) |
Enumerations | |
| enum | _gid_entries_ { AURORA_GID_NET_SOCKET = GID_GLOBAL_NET , AURORA_GID_NET_RAW , AURORA_GID_NET_ADMIN , AURORA_GID_NET_MONITOR , AURORA_GID_IPC_POSTBOX = GID_GLOBAL_IPC , AURORA_GID_IPC_SHARED , AURORA_GID_IPC_SIGNAL , AURORA_GID_IPC_PIPE , AURORA_GID_MISC_WORLD = GID_GLOBAL_MISC , AURORA_GID_MISC_USERS , AURORA_GID_MISC_ADMIN , AURORA_GID_MISC_DAEMONS } |
Functions | |
| void | AuCredGroupInitialize () |
| AuCredGroupInitialize – initialize default group id's which is zero. | |
| int | AuCredGroupAdd (uint8_t category, GID_NUM value) |
| uint8_t | AuCredGetGroupCategory (const char *string) |
| AuCredGetGroupCategory – get a group category number by looking it name. | |
| GID_NUM | AuCredGetGroupID (uint8_t category) |
| AuCredGetGroupID – return a group id number. | |
BSD 2-Clause License
Copyright (c) 2022-2026, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| #define AURORA_GID_GENERAL_FILE -1 |
gid general file could be any randome number defined by user administration system, must match the user id number
| #define AURORA_MAX_GROUPS |
| #define GID_GLOBAL_IPC GID_GLOBAL_NET_COUNT |
| #define GID_GLOBAL_IPC_COUNT 4 |
| #define GID_GLOBAL_MISC (GID_GLOBAL_NET_COUNT + GID_GLOBAL_IPC_COUNT) |
| #define GID_GLOBAL_MISC_COUNT 4 |
| #define GID_GLOBAL_NET 0 |
offset based category
| #define GID_GLOBAL_NET_COUNT 4 |
| #define GID_NUM int |
| #define GROUP_ID_ROOT 0 |
| #define GROUP_NAME_AUDIO "audio" |
| #define GROUP_NAME_GRAPHICS "graphics" |
| #define GROUP_NAME_IPC_POSTBOX "postbox_ipc" |
| #define GROUP_NAME_NETWORK "network" |
| #define GROUP_NAME_STORAGE "storage" |
| #define GROUP_NAME_TTY "tty" |
| enum _gid_entries_ |
this are category entry, each category will have its own group id
|
extern |
AuCredGetGroupCategory – get a group category number by looking it name.
| string | – name of the group |
AuCredGetGroupID – return a group id number.
| category | – group category value |
| string | – group name |
AuCredGroupAdd – add group value to a category
| category | – category number |
| value | – value to add |
could not add value
|
extern |
AuCredGroupInitialize – initialize default group id's which is zero.
AuCredGroupInitialize – initialize default group id's which is zero.
fill up the IPC group gid
fill up the MISC group gid