summaryrefslogtreecommitdiff
path: root/src/libs6/s6_accessrules_uidgid_cdb.c
blob: 3679d876ae28012e83148f6af8ef878ff6a59213 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <sys/types.h>
#include <skalibs/cdb.h>
#include <s6/accessrules.h>

s6_accessrules_result_t s6_accessrules_uidgid_cdb (uid_t uid, gid_t gid, struct cdb *c, s6_accessrules_params_t *params)
{
  uidgid_t uidgid = { .left = uid, .right = gid } ;
  return s6_accessrules_keycheck_uidgid(&uidgid, c, params, &s6_accessrules_backend_cdb) ;
}