diff options
Diffstat (limited to 'src/libs6/s6_accessrules_uidgid_cdb.c')
-rw-r--r-- | src/libs6/s6_accessrules_uidgid_cdb.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libs6/s6_accessrules_uidgid_cdb.c b/src/libs6/s6_accessrules_uidgid_cdb.c new file mode 100644 index 0000000..a1a83d6 --- /dev/null +++ b/src/libs6/s6_accessrules_uidgid_cdb.c @@ -0,0 +1,11 @@ +/* ISC license. */ + +#include <skalibs/diuint.h> +#include <skalibs/cdb.h> +#include <s6/accessrules.h> + +s6_accessrules_result_t s6_accessrules_uidgid_cdb (unsigned int uid, unsigned int gid, struct cdb *c, s6_accessrules_params_t *params) +{ + diuint uidgid = { .left = uid, .right = gid } ; + return s6_accessrules_keycheck_uidgid(&uidgid, c, params, &s6_accessrules_backend_cdb) ; +} |