Permalink
Browse files

Set umask to 0o007 so as to prevent access to DB to others.

  • Loading branch information...
mfp committed Feb 4, 2016
1 parent 4f082f5 commit 896da4bb38dea167f54a60f4a27727ccb6bc5af4
Showing with 3 additions and 0 deletions.
  1. +3 −0 ocamlmq.ml
View
@@ -57,6 +57,9 @@ let () =
exit 1)
usage_message;
let addr = Unix.ADDR_INET (Unix.inet_addr_any, !port) in
+
+ ignore (Unix.umask 0o007 : int);
+
Lwt_unix.run begin
let msg_store =
Mq_sqlite_persistence.make

0 comments on commit 896da4b

Please sign in to comment.