OpenDNSSEC-signer 1.2.1
|
#include <pwd.h>
#include <grp.h>
Go to the source code of this file.
Functions | |
gid_t | privgid (const char *groupname) |
uid_t | privuid (const char *username) |
int | privdrop (const char *username, const char *groupname, const char *newroot) |
int privdrop | ( | const char * | username, |
const char * | groupname, | ||
const char * | newroot | ||
) |
Drop privileges.
[in] | username | drop priviliges to this user |
[in] | groupname | drop priviliges to this group |
[in] | newroot | make this the new root directory |
Drop privileges.
Definition at line 148 of file privdrop.c.
References privgid(), privuid(), se_free(), se_log_debug(), se_log_error(), and se_malloc().
Referenced by tools_zone_fetcher().
gid_t privgid | ( | const char * | groupname | ) |
Privileges. Get the group identifier from a group name.
[in] | groupname | group name |
Get the group identifier from the group name.
Definition at line 109 of file privdrop.c.
References _SC_GETGR_R_SIZE_MAX, se_calloc(), and se_free().
Referenced by privdrop().
uid_t privuid | ( | const char * | username | ) |
Get the user identifier from a username.
[in] | username | username |
Get the user identifier from the username.
Definition at line 70 of file privdrop.c.
References _SC_GETPW_R_SIZE_MAX, se_calloc(), and se_free().
Referenced by privdrop().