diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-09-12 22:23:59 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-09-13 05:31:51 +0200 |
commit | 7330ae3abfba9722c04e6c52ae6222de47016834 (patch) | |
tree | 7fcedad80d3f101ac08247ec4136224cbec4bad8 /passt.h | |
parent | e2cae8f1c3651b1237a3042b4ba6211155aa58f1 (diff) | |
download | passt-7330ae3abfba9722c04e6c52ae6222de47016834.tar passt-7330ae3abfba9722c04e6c52ae6222de47016834.tar.gz passt-7330ae3abfba9722c04e6c52ae6222de47016834.tar.bz2 passt-7330ae3abfba9722c04e6c52ae6222de47016834.tar.lz passt-7330ae3abfba9722c04e6c52ae6222de47016834.tar.xz passt-7330ae3abfba9722c04e6c52ae6222de47016834.tar.zst passt-7330ae3abfba9722c04e6c52ae6222de47016834.zip |
Don't store UID & GID persistently in the context structure
c->uid and c->gid are first set in conf(), and last used in check_root()
itself called from conf(). Therefore these don't need to be fields in the
long lived context structure and can instead be locals in conf().
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'passt.h')
-rw-r--r-- | passt.h | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -144,8 +144,6 @@ struct ip6_ctx { * @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 @@ -198,9 +196,6 @@ 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; |