[lxc-devel] RFC - umask

Serge Hallyn serge.hallyn at ubuntu.com
Wed Sep 10 20:06:24 UTC 2014


Hi,

so https://bugs.launchpad.net/bugs/1367730 points out another case where
running lxc under a tight umask can cause trouble for the containers.
How best to handle this?

(1) We could ignore it.

(2) We could detect too-tight umasks and warn.

(3) We could set a desirable umask at the top of all api functions.

(4) We could set the umask before any mkdir or create.

(5) We could switch over to using our own custom mkdir and create which
do the umask for us.

I'm tempted to go with 4, but am curious what others think.

-serge


More information about the lxc-devel mailing list