Skip to content

Commit

Permalink
Set umask to 0o007 so as to prevent access to DB to others.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfp committed Feb 4, 2016
1 parent 4f082f5 commit 896da4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ocamlmq.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 896da4b

Please sign in to comment.