Imported Upstream version 1.8.6p8
[debian/sudo] / src / sudo.h
index c50f1e1d6dd66b8f95ea853ad065efc0b3b7025c..87accee150d1c0e169f0fe6c4464274f0bad3dcc 100644 (file)
 #include "sudo_debug.h"
 #include "gettext.h"
 
+#ifdef HAVE_PRIV_SET
+# include <priv.h>
+#endif
+
 #ifdef __TANDEM
 # define ROOT_UID       65535
 #else
@@ -149,6 +153,10 @@ struct command_details {
     const char *utmp_user;
     char **argv;
     char **envp;
+#ifdef HAVE_PRIV_SET
+    priv_set_t *privs;
+    priv_set_t *limitprivs;
+#endif
 };
 
 /* Status passed between parent and child via socketpair */
@@ -157,6 +165,7 @@ struct command_status {
 #define CMD_ERRNO 1
 #define CMD_WSTATUS 2
 #define CMD_SIGNO 3
+#define CMD_PID 4
     int type;
     int val;
 };