summaryrefslogtreecommitdiff
path: root/stacks/max25-bcpr/include/bcpr/bcpr_runas.h
diff options
context:
space:
mode:
Diffstat (limited to 'stacks/max25-bcpr/include/bcpr/bcpr_runas.h')
-rw-r--r--stacks/max25-bcpr/include/bcpr/bcpr_runas.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/stacks/max25-bcpr/include/bcpr/bcpr_runas.h b/stacks/max25-bcpr/include/bcpr/bcpr_runas.h
new file mode 100644
index 0000000..801dcba
--- /dev/null
+++ b/stacks/max25-bcpr/include/bcpr/bcpr_runas.h
@@ -0,0 +1,12 @@
+#ifndef BCPR_RUNAS_H
+#define BCPR_RUNAS_H
+
+#include "bcpr/bcpr_config.h"
+
+/* Drop to [max25-bcpr] user=/group= (Linux). Returns 0 or -1. */
+int bcpr_runas_drop(const bcpr_config_t *cfg);
+
+/* Refuse live start as root — use max25-bcprd-init for hardware. */
+int bcpr_runas_refuse_root(int dry_run);
+
+#endif
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com