sup

simple user privilege escalation
git clone git://git.suckless.org/sup
Log | Files | Refs

config.def.h (472B)


      1 #define USER 1000
      2 #define GROUP -1
      3 
      4 #define SETUID 0
      5 #define SETGID 0
      6 
      7 #define CHROOT ""
      8 #define CHRDIR ""
      9 
     10 #define ENFORCE 1
     11 
     12 static struct rule_t rules[] = {
     13 	{ USER, GROUP, "whoami", "/usr/bin/whoami" },
     14 	{ USER, GROUP, "ifconfig", "/sbin/ifconfig" },
     15 	{ USER, GROUP, "ls", "/bin/ls" },
     16 	{ USER, GROUP, "wifi", "/root/wifi.sh" },
     17 	{ USER, GROUP, "cp", "*"}, // allow to run this program in PATH
     18 	{ USER, GROUP, "*", "*"}, // allow to run any program in PATH
     19 	{ 0 },
     20 };