1 |
doktor5000 |
913541 |
From ca5371222096d4fb347124a353a9d868acf40c76 Mon Sep 17 00:00:00 2001 |
2 |
|
|
From: Ludwig Nussel <ludwig.nussel@suse.de> |
3 |
|
|
Date: Fri, 16 Oct 2015 08:34:07 +0200 |
4 |
|
|
Subject: [PATCH] the sqlite database should be only readable by the owner. |
5 |
|
|
|
6 |
|
|
--- |
7 |
|
|
script/initdb | 3 +++ |
8 |
|
|
1 file changed, 3 insertions(+) |
9 |
|
|
|
10 |
|
|
diff --git a/script/initdb b/script/initdb |
11 |
|
|
index acd0fa8..e9f4934 100755 |
12 |
|
|
--- a/script/initdb |
13 |
|
|
+++ b/script/initdb |
14 |
|
|
@@ -66,6 +66,9 @@ if ($user) { |
15 |
|
|
setuid($uid) || die "can't suid to $user"; |
16 |
|
|
} |
17 |
|
|
|
18 |
|
|
+# the sqlite database should be only readable by the owner. |
19 |
|
|
+umask 027; |
20 |
|
|
+ |
21 |
|
|
my $script_directory = "$FindBin::Bin/../dbicdh"; |
22 |
|
|
my @databases = qw( MySQL SQLite PostgreSQL ); |
23 |
|
|
my $schema = OpenQA::Schema::connect_db(); |
24 |
|
|
-- |
25 |
|
|
2.5.0 |
26 |
|
|
|