We want bound users to be able to elevate privileges inside the
container.
cmdline += ["--bind", f"{tree.source}:{target}:norbind,{uidmap}"]
if config.bind_user:
- cmdline += ["--bind-user", getpass.getuser()]
+ cmdline += ["--bind-user", getpass.getuser(), "--bind-user-group=wheel"]
if args.verb == Verb.boot and config.forward_journal:
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as sock:
cmdline += ["--grow-image", str(config.runtime_size)]
if config.bind_user:
- cmdline += ["--bind-user", getpass.getuser()]
+ cmdline += ["--bind-user", getpass.getuser(), "--bind-user-group=wheel"]
if config.runtime_network == Network.user:
cmdline += ["--network-user-mode"]