diff --git a/init/builtins.c b/init/builtins.c
index bfc0ddb15f2785456f31989595d99f5692536f5b..e8c8f9165459620b33696bf4cc3350b6169bb85e 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;