#include <isc/fsaccess.h>
#include <isc/result.h>
#include <isc/util.h>
Go to the source code of this file.
Defines | |
#define | STEP (ISC__FSACCESS_PERMISSIONBITS) |
#define | GROUP (STEP) |
#define | OTHER (STEP * 2) |
Functions | |
void | isc_fsaccess_add (int trustee, int permission, isc_fsaccess_t *access) |
void | isc_fsaccess_remove (int trustee, int permission, isc_fsaccess_t *access) |
static isc_result_t | check_bad_bits (isc_fsaccess_t access, isc_boolean_t is_dir) |
Definition in file fsaccess.c.
#define STEP (ISC__FSACCESS_PERMISSIONBITS) |
Shorthand. Maybe ISC__FSACCESS_PERMISSIONBITS should not even be in <isc/fsaccess.h>. Could check consistency with sizeof(isc_fsaccess_t) and the number of bits in each function.
Definition at line 33 of file fsaccess.c.
Referenced by check_bad_bits().
#define GROUP (STEP) |
Definition at line 34 of file fsaccess.c.
Referenced by isc_fsaccess_add(), and isc_fsaccess_remove().
#define OTHER (STEP * 2) |
Definition at line 35 of file fsaccess.c.
Referenced by isc_fsaccess_add(), and isc_fsaccess_remove().
void isc_fsaccess_add | ( | int | trustee, | |
int | permission, | |||
isc_fsaccess_t * | access | |||
) |
Definition at line 38 of file fsaccess.c.
References GROUP, ISC_FSACCESS_GROUP, ISC_FSACCESS_OTHER, ISC_FSACCESS_OWNER, OTHER, and REQUIRE.
Referenced by dst__privstruct_writefile(), and write_public_key().
void isc_fsaccess_remove | ( | int | trustee, | |
int | permission, | |||
isc_fsaccess_t * | access | |||
) |
Definition at line 53 of file fsaccess.c.
References GROUP, ISC_FSACCESS_GROUP, ISC_FSACCESS_OTHER, ISC_FSACCESS_OWNER, OTHER, and REQUIRE.
static isc_result_t check_bad_bits | ( | isc_fsaccess_t | access, | |
isc_boolean_t | is_dir | |||
) | [static] |
Definition at line 69 of file fsaccess.c.
References ISC_FSACCESS_ACCESSCHILD, ISC_FSACCESS_CREATECHILD, ISC_FSACCESS_DELETECHILD, ISC_FSACCESS_EXECUTE, ISC_FSACCESS_LISTDIRECTORY, ISC_FSACCESS_READ, ISC_FSACCESS_WRITE, ISC_R_NOTDIRECTORY, ISC_R_NOTFILE, ISC_R_SUCCESS, and STEP.
Referenced by isc_fsaccess_set().