suricata
|
Go to the source code of this file.
Macros | |
#define | SC_CAP_NONE 0x01 |
#define | SC_CAP_SYS_ADMIN 0x02 |
#define | SC_CAP_SYS_RAW_IO 0x04 |
#define | SC_CAP_IPC_LOCK 0x08 |
#define | SC_CAP_NET_ADMIN 0x10 |
#define | SC_CAP_NET_RAW 0x20 |
#define | SC_CAP_NET_BIND_SERVICE 0x40 |
#define | SC_CAP_NET_BROADCAST 0x80 |
#define | SCDropCaps(...) |
#define | SCDropMainThreadCaps(...) |
#define | SCPledge(...) |
Functions | |
void | SCGetUserID (const char *, const char *, uint32_t *, uint32_t *) |
Function to get the user and group ID from the specified user name. More... | |
void | SCGetGroupID (const char *, uint32_t *) |
Function to get the group ID from the specified group name. More... | |
Definition in file util-privs.h.
#define SC_CAP_IPC_LOCK 0x08 |
Definition at line 31 of file util-privs.h.
#define SC_CAP_NET_ADMIN 0x10 |
Definition at line 32 of file util-privs.h.
#define SC_CAP_NET_BIND_SERVICE 0x40 |
Definition at line 34 of file util-privs.h.
#define SC_CAP_NET_BROADCAST 0x80 |
Definition at line 35 of file util-privs.h.
#define SC_CAP_NET_RAW 0x20 |
Definition at line 33 of file util-privs.h.
#define SC_CAP_NONE 0x01 |
Definition at line 28 of file util-privs.h.
#define SC_CAP_SYS_ADMIN 0x02 |
Definition at line 29 of file util-privs.h.
#define SC_CAP_SYS_RAW_IO 0x04 |
Definition at line 30 of file util-privs.h.
#define SCDropCaps | ( | ... | ) |
Definition at line 90 of file util-privs.h.
#define SCDropMainThreadCaps | ( | ... | ) |
Definition at line 91 of file util-privs.h.
#define SCPledge | ( | ... | ) |
Definition at line 100 of file util-privs.h.
void SCGetGroupID | ( | const char * | group_name, |
uint32_t * | gid | ||
) |
Function to get the group ID from the specified group name.
group_name | pointer to the given group name |
gid | pointer to the group id in which result will be stored |
FatalError | on a failure |
Definition at line 208 of file util-privs.c.
References ByteExtractStringUint32(), FatalError, and group.
void SCGetUserID | ( | const char * | user_name, |
const char * | group_name, | ||
uint32_t * | uid, | ||
uint32_t * | gid | ||
) |
Function to get the user and group ID from the specified user name.
user_name | pointer to the given user name |
uid | pointer to the user id in which result will be stored |
gid | pointer to the group id in which result will be stored |
FatalError | on a failure |
Definition at line 141 of file util-privs.c.
References ByteExtractStringUint32(), FatalError, and group.