hpc / charliecloud

Lightweight user-defined software stacks for high-performance computing.
https://hpc.github.io/charliecloud
Apache License 2.0
308 stars 61 forks source link

seccomp root emulation: filter `capset(2)` with more nuance #1891

Open reidpr opened 3 months ago

reidpr commented 3 months ago

At present, we simply fake success for capset(2). However, like mknod(2), some uses of capset(2) are privileged and others are unprivileged. We could let through the unprivileged calls.

Figuring out what is privileged and what isn’t is quite a bit more complicated, though, and it requires dereferencing struct pointers.