[Virtio-fs] [virtiofsd] Issue opened: Can't run unprivileged any more due to setgroups

[email protected]
Newsgroups dev.linux.lists.virtio-fs
Message-ID <[email protected]>
Since !77, it's not possible to run virtiofsd as an unprivileged user any more:

```
[2022-03-04T16:46:42Z ERROR virtiofsd] Error entering sandbox: DropSupplementalGroups(Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" })
```

This is because `setgroups` is always called at startup, and it requires `CAP_SETGID`.  When using the namespace sandbox mode, should `setgroups` be called _after_ setting up the namespace?

cc @slp @vgoyal
---
https://gitlab.com/virtio-fs/virtiofsd/-/issues/36
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.