summaryrefslogtreecommitdiff
path: root/stacks/max25-bcpr/include/bcpr/bcpr_runas.h
blob: 801dcba9b41077424cfc5334df15e98a47f9b254 (plain)
1
2
3
4
5
6
7
8
9
10
11
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