config.def.h 903 Bytes
Newer Older
Jaromil's avatar
Jaromil committed
1 2
// sup's configuration file
// need sup to be re-compiled for any change to be effective
3

Jaromil's avatar
Jaromil committed
4
/// un/comment flags below to remove functionalities
5
#define HASH 1
Jaromil's avatar
Jaromil committed
6 7
#define DAEMON 1
// #define DEBUG 1
8 9 10

#ifndef FLAGSONLY

11 12 13 14 15 16
#define USER 1000
#define GROUP -1

#define SETUID 0
#define SETGID 0

17 18
#define CHROOT ""
#define CHRDIR ""
19 20

static struct rule_t rules[] = {
21 22 23 24 25
    // allow user to run these programs when found in path location
    { USER, GROUP, "whoami",   "/usr/bin/whoami", "" },
    { USER, GROUP, "ifconfig", "/sbin/ifconfig",  "" },
    { USER, GROUP, "ls",       "/bin/ls",         "" },
    { USER, GROUP, "wifi",     "/root/wifi.sh",   "" },
26

27 28
    // allow to run this program when found in PATH */
    { USER, GROUP, "id", "*", "db533b77fc9e262209a46e0fe5bec646c1d2ed4e33285dc61da09dbc4caf6fa6" },
29 30
    /* { USER, GROUP, "*", "*"}, // allow to run any program found in PATH */
    { 0 },
31
};
32 33

#endif