Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Sep 2010 13:48:19 +0300
From:      Mikolaj Golub <to.my.trociny@gmail.com>
To:        Ed Maste <emaste@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r213181 - head/usr.sbin/watchdogd
Message-ID:  <86mxr4eq6k.fsf@kopusha.home.net>
In-Reply-To: <201009260145.o8Q1jXUk078511@svn.freebsd.org> (Ed Maste's message of "Sun, 26 Sep 2010 01:45:33 %2B0000 (UTC)")
References:  <201009260145.o8Q1jXUk078511@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=


On Sun, 26 Sep 2010 01:45:33 +0000 (UTC) Ed Maste wrote:

 EM> Log:
 EM>   Protect the watchdog daemon against swap OOM killer.  This is similar to
 EM>   SVN r199804 which added protection to sshd, cron, syslogd, and inetd.

May be there is a sense to have some utility in the system so that an admin
could protect any process he wanted? E.g. something like in the attach.

-- 
Mikolaj Golub


--=-=-=
Content-Type: application/octet-stream
Content-Disposition: attachment; filename=mprotect.c
Content-Transfer-Encoding: base64

I2luY2x1ZGUgPHN5cy9tbWFuLmg+CgojaW5jbHVkZSA8ZXJyLmg+CiNpbmNsdWRlIDxlcnJuby5o
PgojaW5jbHVkZSA8c3RkaW8uaD4KI2luY2x1ZGUgPHN0ZGxpYi5oPgojaW5jbHVkZSA8dW5pc3Rk
Lmg+Cgp2b2lkIHVzYWdlKHZvaWQpOwoKaW50Cm1haW4oaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkK
ewoKCWFyZ2MtLTsKCWFyZ3YrKzsKCglpZiAoYXJnYyA9PSAwKQoJCXVzYWdlKCk7CgoJaWYgKG1h
ZHZpc2UoMCwgMCwgTUFEVl9QUk9URUNUKSAhPSAwKQoJCXdhcm4oIm1hZHZpc2UgZmFpbGVkIik7
CgoJZXJybm8gPSAwOwoJZXhlY3ZwKCphcmd2LCBhcmd2KTsKCWVycihlcnJubyA9PSBFTk9FTlQg
PyAxMjcgOiAxMjYsICIlcyIsICphcmd2KTsKfQoKdm9pZAp1c2FnZSh2b2lkKQp7CgoJKHZvaWQp
ZnByaW50ZihzdGRlcnIsCgkgICAgInVzYWdlOiBtcHJvdGVjdCB1dGlsaXR5IFthcmd1bWVudCAu
Li5dXG4iKTsKCWV4aXQoMSk7Cn0K
--=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86mxr4eq6k.fsf>