summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2009-07-28 16:00:09 +0000
committerColin Watson <cjwatson@debian.org>2009-07-28 16:00:09 +0000
commite9d81479a1961d96ce147b64cfb018439a8ece2f (patch)
tree961d1e25a301b0d3adb65e50cf3380f64fddaf1f /debian
parent61845adf608a38dbf1e3cf4db49f409d438e3391 (diff)
Set umask to 022 in the init script as well as postinsts (closes:
#539030).
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog2
-rw-r--r--debian/openssh-server.init2
2 files changed, 4 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index dbf1d40c9..f73bbd209 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ openssh (1:5.1p1-7) UNRELEASED; urgency=low
2 2
3 * Update config.guess and config.sub from autotools-dev 20090611.1 3 * Update config.guess and config.sub from autotools-dev 20090611.1
4 (closes: #538301). 4 (closes: #538301).
5 * Set umask to 022 in the init script as well as postinsts (closes:
6 #539030).
5 7
6 -- Colin Watson <cjwatson@debian.org> Fri, 24 Jul 2009 18:43:45 +0100 8 -- Colin Watson <cjwatson@debian.org> Fri, 24 Jul 2009 18:43:45 +0100
7 9
diff --git a/debian/openssh-server.init b/debian/openssh-server.init
index 75ea71525..70cded948 100644
--- a/debian/openssh-server.init
+++ b/debian/openssh-server.init
@@ -16,6 +16,8 @@ set -e
16test -x /usr/sbin/sshd || exit 0 16test -x /usr/sbin/sshd || exit 0
17( /usr/sbin/sshd -\? 2>&1 | grep -q OpenSSH ) 2>/dev/null || exit 0 17( /usr/sbin/sshd -\? 2>&1 | grep -q OpenSSH ) 2>/dev/null || exit 0
18 18
19umask 022
20
19export SSHD_OOM_ADJUST=-17 21export SSHD_OOM_ADJUST=-17
20if test -f /etc/default/ssh; then 22if test -f /etc/default/ssh; then
21 . /etc/default/ssh 23 . /etc/default/ssh