From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 07:35:55 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AF29106564A for ; Wed, 30 Jun 2010 07:35:55 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 343588FC1B for ; Wed, 30 Jun 2010 07:35:54 +0000 (UTC) Received: by wyb34 with SMTP id 34so606757wyb.13 for ; Wed, 30 Jun 2010 00:35:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=kmneIXTOWZIgJPkMfFPet/QIca5nwy38FR9r68RdV2E=; b=NZURBnEUj2wyRj1lqKl7aTCE/y9Fxs8TVL9YxBGqTX7zoxFgEUnLDoh7vkzmE78l/v JR32eVIuE12wTUiR9dkc/ntU5jrkc8StgIwAOQMsNVcpOEE7vccwsHQIcuAafG5kCjUK PR1i8Ysj5wAhY7pLHCGDk+f1ReSd0gXhEZ+NU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=JIBLH0EkUsO0pP7tXbtnu4EnB7q5vvXW00dD4MYYJHpfK0X3y3V875ljBO6klo6tCI 5MXgPmWnI+F/yAW3AQrBQ2PvdMrp38w+VPeg8W9frReNVxxmQZ4N25BlZgZdSJLcWmON I/GjJy8R0D2lChk/Q2CaLjbXbR4u978YtOS6A= MIME-Version: 1.0 Received: by 10.216.85.71 with SMTP id t49mr10868337wee.19.1277883354127; Wed, 30 Jun 2010 00:35:54 -0700 (PDT) Received: by 10.216.37.68 with HTTP; Wed, 30 Jun 2010 00:35:54 -0700 (PDT) In-Reply-To: References: <4C2AE37C.5060000@gmail.com> Date: Wed, 30 Jun 2010 11:35:54 +0400 Message-ID: From: pluknet To: Andrey Zonov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org Subject: Re: How change process flags from userland? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2010 07:35:55 -0000 On 30 June 2010 11:33, pluknet wrote: > On 30 June 2010 10:26, Andrey Zonov wrote: >> Hi, >> >> I want to set P_PROTECTED flag for some daemons after it start, without >> patching application and kernel. >> It possible? >> > > May be madvise(NULL, 0, MADV_PROTECT) will fit your needs? > (see howto example in usr.sbin/cron). > Note, this behav isn't portable. > Ahem, please ignore my post. -- wbr, pluknet