How change process flags from userland?

pluknet pluknet at gmail.com
Wed Jun 30 07:35:55 UTC 2010


On 30 June 2010 11:33, pluknet <pluknet at gmail.com> wrote:
> On 30 June 2010 10:26, Andrey Zonov <andrey.zonov at gmail.com> 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


More information about the freebsd-hackers mailing list