aboutgitcodebugslistschat
path: root/passt.h
diff options
context:
space:
mode:
Diffstat (limited to 'passt.h')
-rw-r--r--passt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/passt.h b/passt.h
index 69e334d..e541341 100644
--- a/passt.h
+++ b/passt.h
@@ -106,6 +106,8 @@ enum passt_modes {
* @sock_path: Path for UNIX domain socket
* @pcap: Path for packet capture file
* @pid_file: Path to PID file, empty string if not configured
+ * @uid: UID we should drop to, if started as root
+ * @gid: GID we should drop to, if started as root
* @pasta_netns_fd: File descriptor for network namespace in pasta mode
* @pasta_userns_fd: Descriptor for user namespace to join, -1 once joined
* @netns_only: In pasta mode, don't join or create a user namespace
@@ -170,6 +172,9 @@ struct ctx {
char pcap[PATH_MAX];
char pid_file[PATH_MAX];
+ uid_t uid;
+ uid_t gid;
+
int pasta_netns_fd;
int pasta_userns_fd;
int netns_only;