Hi,
As mentioned here https://github.com/moby/moby/issues/19189 it would be nice to have an option to enforce umask setting of the executing user.
So, this would need to be done through the config.json for OCI runtimes (which requires a specification. change), As far as I can tell, you're not really familiar with OCI specifications, so I could submit the relevant PR for you.
However, there is a property of umask(2) that might make this unnecessary. Most notably, umask(2) is preserved across both fork(2) and execve(2) -- so really whatever is calling runc is able to set its own umask(2) explicitly. In the world of Docker, this would mean that containerd could set umask(2) before spawning runc.
Ok, then i will close this one and re-open an issue on containerd.
Thanks for pointing out :)
I'm reopening, since I didn't mean to say that this is something that runc shouldn't do -- I was just mentioning that as a point that might come up in the spec discussion. :wink:
I've opened the OCI spec PR here: opencontainers/runtime-spec#941.
Has there been any progress on this issue recently? Anything that needs unblocking? Thanks.
The OCI spec PR needs to be merged first.
@cyphar meanwhile the PR was merged :) what would be the next steps? Anything we can help with?
Most helpful comment
I've opened the OCI spec PR here: opencontainers/runtime-spec#941.