syzkaller/pkg/osutil
Dmitry Vyukov a7b199253f all: use consistent file permissions
Currently we have unix permissions for new files/dirs
hardcoded throughout the code base. Some places use 0644,
some - 0640, some - 0600 and a variety of other constants.

Introduce osutil.MkdirAll/WriteFile that use the default
permissions and use them throughout the code base.

This makes permissions consistent and also allows to easily
change the permissions later if we change our minds.

Also merge pkg/fileutil into pkg/osutil as they become
dependent on each other. The line between them was poorly
defined anyway as both operate on files.
2017-07-03 14:00:47 +02:00
..
fileutil_linux.go all: use consistent file permissions 2017-07-03 14:00:47 +02:00
fileutil_test.go all: use consistent file permissions 2017-07-03 14:00:47 +02:00
fileutil.go all: use consistent file permissions 2017-07-03 14:00:47 +02:00
osutil_linux.go pkg/osutil: port to darwin 2017-06-26 13:43:20 +02:00
osutil_stub.go pkg/osutil: port to darwin 2017-06-26 13:43:20 +02:00
osutil_test.go pkg/osutil: add IsExist helper function 2017-06-17 12:11:24 +02:00
osutil.go all: use consistent file permissions 2017-07-03 14:00:47 +02:00