diff options
Diffstat (limited to 'samples/server.c')
-rw-r--r-- | samples/server.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/samples/server.c b/samples/server.c index a43dc3c..25b4908 100644 --- a/samples/server.c +++ b/samples/server.c @@ -41,6 +41,7 @@ #include <openssl/md5.h> #include <sys/mman.h> #include <sys/param.h> +#include <sys/stat.h> #include <sys/time.h> #include "common.h" @@ -483,6 +484,8 @@ int main(int argc, char *argv[]) err(EXIT_FAILURE, "failed to setup BAR0 region"); } + umask(0022); + /* * Setup BAR1 to be 3 pages in size where only the first and the last pages * are mappable. The client can still mmap the 2nd page, we can't prohibit |