]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/conf.c
Set umask before populating /dev and restore it after.
authorAlexander Vladimirov <alexander.idkfa.vladimirov@gmail.com>
Tue, 8 Jan 2013 01:08:54 +0000 (09:08 +0800)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 8 Jan 2013 17:07:34 +0000 (12:07 -0500)
commit3a32201c5a442c2732861aeee1a5f70909718b90
treee842fbb5dd9ccf35ef32caf48176a7685d90f054
parentc5b908a262d30dfc6a5969b22a7e25fe167447fd
Set umask before populating /dev and restore it after.

According to docs, mknod clears each permission bit whose
corresponding bit in the process umask is set, so we should fix it
before creating device nodes.

Signed-off-by: Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/conf.c