summaryrefslogtreecommitdiff
path: root/src/libs6/s6_accessrules_uidgid_fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs6/s6_accessrules_uidgid_fs.c')
-rw-r--r--src/libs6/s6_accessrules_uidgid_fs.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libs6/s6_accessrules_uidgid_fs.c b/src/libs6/s6_accessrules_uidgid_fs.c
new file mode 100644
index 0000000..848fa89
--- /dev/null
+++ b/src/libs6/s6_accessrules_uidgid_fs.c
@@ -0,0 +1,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) ;
+}