diff options
author | Dmitry Bogatov <KAction@debian.org> | 2019-03-20 12:34:16 +0000 |
---|---|---|
committer | Dmitry Bogatov <KAction@debian.org> | 2019-03-20 12:34:16 +0000 |
commit | ce920b176349198414396a23698345c41e2565ef (patch) | |
tree | 29f6ba3fb7386aabd5a1c2d9f086e2644704bdaa /dh_runit | |
parent | 59d50388e3be8229bfb3388d9cfcfe50aebb6b58 (diff) |
Make permissions of supervise directories 0700, as created by sv(8). (Closes: #924903)
Diffstat (limited to 'dh_runit')
-rwxr-xr-x | dh_runit | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -71,6 +71,7 @@ PKG: foreach my $pkg (@{$dh{DOPACKAGES}}) { | |||
71 | make_symlink("/etc/sv/$name/supervise", | 71 | make_symlink("/etc/sv/$name/supervise", |
72 | "/var/lib/runit/supervise/$name", $tmp); | 72 | "/var/lib/runit/supervise/$name", $tmp); |
73 | install_dir("$tmp/var/lib/runit/supervise/$name"); | 73 | install_dir("$tmp/var/lib/runit/supervise/$name"); |
74 | chmod 0700, "$tmp/var/lib/runit/supervise/$name"; | ||
74 | install_dir("$tmp/etc/runit/runsvdir/default"); | 75 | install_dir("$tmp/etc/runit/runsvdir/default"); |
75 | 76 | ||
76 | my $substitutions = { | 77 | my $substitutions = { |
@@ -102,6 +103,7 @@ HERE | |||
102 | make_symlink("/etc/sv/$name/log/supervise", | 103 | make_symlink("/etc/sv/$name/log/supervise", |
103 | "/var/lib/runit/log/supervise/$name", $tmp); | 104 | "/var/lib/runit/log/supervise/$name", $tmp); |
104 | install_dir("$tmp/var/lib/runit/log/supervise/$name"); | 105 | install_dir("$tmp/var/lib/runit/log/supervise/$name"); |
106 | chmod 0700, "$tmp/var/lib/runit/log/supervise/$name"; | ||
105 | } | 107 | } |
106 | } | 108 | } |
107 | # runit=2.1.2-20 introduced 'runit-log' user | 109 | # runit=2.1.2-20 introduced 'runit-log' user |