-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Description
In the config section of runtime-spec, it states:
umask: [...] If unspecified, the umask should not be changed from the calling process' umask.
However runc does not seem to follow this:
~/mycontainer $ grep umask config.json
"umask": 5
~/mycontainer $ sudo runc run test
/ # umask
0005
~/mycontainer $ vim config.json
~/mycontainer $ grep umask config.json
~/mycontainer $ umask
0002
~/mycontainer $ sudo runc run test
/ # umask
0022
It looks like the issue originates in rootfs_linux.go:179, where the umask is set to 022 despite umask not being set in config.json.
Metadata
Metadata
Assignees
Labels
No labels