summaryrefslogtreecommitdiff
path: root/check/check.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2021-02-01 12:05:48 -0500
committerJakob Kaivo <jkk@ung.org>2021-02-01 12:05:48 -0500
commit5fd418a22a0b9631328b7516a901f829016a3be2 (patch)
treef9cf274b58bf417dfc1d6429c9895c616d0d6655 /check/check.h
parent93854e37b25f7bb134291fc36956a3488e5cd201 (diff)
outline of check program
Diffstat (limited to 'check/check.h')
-rw-r--r--check/check.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/check/check.h b/check/check.h
new file mode 100644
index 0000000..b4650af
--- /dev/null
+++ b/check/check.h
@@ -0,0 +1,13 @@
+#ifndef PRIVEXEC_CHECK_H
+#define PRIVEXEC_CHECK_H
+
+#ifndef CONFIG_PATH
+#define CONFIG_PATH "/etc/privexec.conf"
+#endif
+
+enum permission { UNKNOWN, NO_AUTH, NEED_AUTH, DENIED };
+
+void fatal(int include_errno, char *fmt, ...);
+enum permission get_permission(const char *user, const char *group, const char *cmd);
+
+#endif