/[packages]/cauldron/openqa/current/SOURCES/0001-the-sqlite-database-should-be-only-readable-by-the-o.patch
ViewVC logotype

Annotation of /cauldron/openqa/current/SOURCES/0001-the-sqlite-database-should-be-only-readable-by-the-o.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 913541 - (hide annotations) (download)
Tue Dec 22 15:52:18 2015 UTC (4 years, 7 months ago) by doktor5000
File size: 733 byte(s)
- imported package for openQA
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    

  ViewVC Help
Powered by ViewVC 1.1.28