24 RCSIDH(perm_h,
"$Id: 057e7133afe4cb9de5cd38905a50a7a9aa93a9a9 $")
28 #include <sys/types.h>
31 #include <freeradius-devel/util/talloc.h>
int fr_perm_getpwuid(TALLOC_CTX *ctx, struct passwd **out, uid_t uid))
Resolve a uid to a passwd entry.
char * fr_perm_gid_to_str(TALLOC_CTX *ctx, gid_t gid)
int fr_perm_getgrnam(TALLOC_CTX *ctx, struct group **out, char const *name))
Resolve a group name to a group database entry.
char const * fr_perm_mode_to_oct(char out[static 5], mode_t mode)
char const * fr_perm_mode_to_str(char out[static 10], mode_t mode)
Convert mode_t into humanly readable permissions flags.
int fr_perm_uid_from_str(TALLOC_CTX *ctx, uid_t *out, char const *name))
Resolve a user name to a GID.
int fr_perm_getgrgid(TALLOC_CTX *ctx, struct group **out, gid_t gid))
Resolve a gid to a group database entry.
int fr_perm_gid_from_str(TALLOC_CTX *ctx, gid_t *out, char const *name))
Resolve a group name to a GID.
int fr_perm_getpwnam(TALLOC_CTX *ctx, struct passwd **out, char const *name))
Resolve a username to a passwd entry.
void fr_perm_file_error(int num)
Write a file access error to the fr_strerror buffer, including euid/egid.
char * fr_perm_uid_to_str(TALLOC_CTX *ctx, uid_t uid)
Print uid to a string.
static size_t char ** out