[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#579347: unset SSHD_OOM_ADJUST for linux-vserver

Package: openssh-server
Version: 1:5.3p1-3
Severity: normal
Tags: patch

please also check for linux-vserver virtual environment in
/etc/init.d/ssh by also grepping for "VxID" and unsetting
SSHD_OOM_ADJUST accordingly.

> # cat /proc/self/status |grep VxID
> VxID: 98

proposed patch attached.

diff -r 19b1559beaa3 init.d/ssh
--- a/init.d/ssh	Tue Apr 27 09:50:23 2010 +0200
+++ b/init.d/ssh	Tue Apr 27 10:00:49 2010 +0200
@@ -25,7 +25,7 @@
 # Are we in a virtual environment that doesn't support modifying
 # /proc/self/oom_adj?
-if grep -q 'envID:.*[1-9]' /proc/self/status; then
+if egrep -q '(VxID|envID):.*[1-9]' /proc/self/status; then
     unset SSHD_OOM_ADJUST

Reply to: