summaryrefslogtreecommitdiff
path: root/src/libs6/s6_accessrules_uidgid_fs.c
blob: 848fa897bd1bde44b0b8fc7efbd3e2d98689a821 (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <skalibs/diuint.h>
#include <s6/accessrules.h>

s6_accessrules_result_t s6_accessrules_uidgid_fs (unsigned int uid, unsigned int gid, char const *rulesdir, s6_accessrules_params_t *params)
{
  diuint uidgid = { .left = uid, .right = gid } ;
  return s6_accessrules_keycheck_uidgid(&uidgid, (void *)rulesdir, params, &s6_accessrules_backend_fs) ;
}