diff options
author | Nick Kralevich <nnk@google.com> | 2013-09-17 15:07:10 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-09-17 15:07:10 -0700 |
commit | 3dcfb7f107916445cd378d530a6a69175128d0c7 (patch) | |
tree | 775a148079381a213c60075ddf597463a4bb5242 /init | |
parent | 59e51e792a13e017d0f1b85a02fcc56815ea83d6 (diff) | |
parent | 18c34183d76be2efbf2f498ec0185c1ceffa49f0 (diff) | |
download | system_core-3dcfb7f107916445cd378d530a6a69175128d0c7.zip system_core-3dcfb7f107916445cd378d530a6a69175128d0c7.tar.gz system_core-3dcfb7f107916445cd378d530a6a69175128d0c7.tar.bz2 |
am 18c34183: am 5535b051: write_file: introduce O_NOFOLLOW, use sane mask
* commit '18c34183d76be2efbf2f498ec0185c1ceffa49f0':
write_file: introduce O_NOFOLLOW, use sane mask
Diffstat (limited to 'init')
-rw-r--r-- | init/builtins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/builtins.c b/init/builtins.c index bfc0ddb..e8c8f91 100644 --- a/init/builtins.c +++ b/init/builtins.c @@ -57,7 +57,7 @@ static int write_file(const char *path, const char *value) { int fd, ret, len; - fd = open(path, O_WRONLY|O_CREAT, 0622); + fd = open(path, O_WRONLY|O_CREAT|O_NOFOLLOW, 0600); if (fd < 0) return -errno; |