From: Peter Dinda Date: Sat, 21 Jun 2014 01:33:33 +0000 (-0500) Subject: Make newly created files 0600 by default X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=e3102a252f2e92de3275bdcf2af96beb85c693e4;p=palacios.git Make newly created files 0600 by default --- diff --git a/linux_module/iface-file.c b/linux_module/iface-file.c index 78c4e0b..e826296 100644 --- a/linux_module/iface-file.c +++ b/linux_module/iface-file.c @@ -218,7 +218,7 @@ static void * palacios_file_open(const char * path, int mode, void * private_dat pfile->mode |= O_LARGEFILE; - pfile->filp = filp_open(path, pfile->mode, 0); + pfile->filp = filp_open(path, pfile->mode, 0600); // rw------- to start if (!pfile->filp || IS_ERR(pfile->filp)) { ERROR("Cannot open file: %s\n", path);