summaryrefslogtreecommitdiff
path: root/src/libs6net/s6net_accessrules_uidgid_cdb.c
blob: 18363894e6877455d175e766916aa8f797e5a875 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <skalibs/diuint.h>
#include <skalibs/cdb.h>
#include <s6-networking/accessrules.h>

s6net_accessrules_result_t s6net_accessrules_uidgid_cdb (unsigned int uid, unsigned int gid, struct cdb *c, s6net_accessrules_params_t *params)
{
  diuint uidgid = { uid, gid } ;
  return s6net_accessrules_keycheck_uidgid(&uidgid, c, params, &s6net_accessrules_backend_cdb) ;
}