From owner-svn-src-head@FreeBSD.ORG Sun Sep 26 11:18:43 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA294106564A; Sun, 26 Sep 2010 11:18:43 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id BE6DD8FC0C; Sun, 26 Sep 2010 11:18:42 +0000 (UTC) Received: by ewy22 with SMTP id 22so1237068ewy.13 for ; Sun, 26 Sep 2010 04:18:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :x-comment-to:date:in-reply-to:message-id:user-agent:mime-version :content-type; bh=qLUifVsCCOipCp9c+Jx14xVLIVthkjx4jy0W0hnpUhw=; b=f7rJ5wlE+Dv9KwGAws80Qz86meLiWC80QpRqPtjiVddiSqoX8DUrwhBbYaaYRNzQer LsNbFvCVZ//kCwh+NfmRpJdzJwtT6j/zl+Ur3OrVoasF5JeTtCut+RncRIZX4oznNs8P 8nUbPCiwvpIHMzysTXYwg5gp6WidOQP/G1lEA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:x-comment-to:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=mBZjXOYTz5bFUZPd/9dsfrIgybxzqZVzbEdov2sh4hhJnMawazPvTFSt8tvUeU/aAJ YyZRp1bWAq3ECd+8T67zslMQys2iENQcoAUfZGK6h9cZRVNOtoorkD6cg+KFO4Fa9CfB RV7Hqiss4aNvwNQO9ydYd8raxHt7NaBu3POUU= Received: by 10.213.32.79 with SMTP id b15mr4830895ebd.39.1285498100170; Sun, 26 Sep 2010 03:48:20 -0700 (PDT) Received: from localhost (vpn-195-69-247-132.customer.onet.com.ua [195.69.247.132]) by mx.google.com with ESMTPS id a48sm6479300eei.0.2010.09.26.03.48.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 26 Sep 2010 03:48:18 -0700 (PDT) From: Mikolaj Golub To: Ed Maste References: <201009260145.o8Q1jXUk078511@svn.freebsd.org> X-Comment-To: Ed Maste Date: Sun, 26 Sep 2010 13:48:19 +0300 In-Reply-To: <201009260145.o8Q1jXUk078511@svn.freebsd.org> (Ed Maste's message of "Sun, 26 Sep 2010 01:45:33 +0000 (UTC)") Message-ID: <86mxr4eq6k.fsf@kopusha.home.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r213181 - head/usr.sbin/watchdogd X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Sep 2010 11:18:43 -0000 --=-=-= 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 --=-=-=--