suricata
|
#include "suricata-common.h"
#include "util-debug.h"
#include "suricata.h"
#include "util-privs.h"
#include "util-byte.h"
Go to the source code of this file.
Functions | |
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. More... | |
void | SCGetGroupID (const char *group_name, uint32_t *gid) |
Function to get the group ID from the specified group name. More... | |
File to drop the engine capabilities using libcap-ng by Steve Grubb
Definition in file util-privs.c.
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.