Date: Thu, 01 Jul 2010 09:19:19 +0400 From: Andrey Zonov <andrey.zonov@gmail.com> To: Julian Elischer <julian@elischer.org> Cc: freebsd-hackers@freebsd.org Subject: Re: How change process flags from userland? Message-ID: <4C2C2557.3030304@gmail.com> In-Reply-To: <4C2BBCC9.7000605@elischer.org> References: <4C2AE37C.5060000@gmail.com> <4C2AF285.1090506@yandex.ru> <4C2B8B95.4010908@gmail.com> <4C2BBCC9.7000605@elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Can you explain how change flags with /dev/kmem? kvm_write(3) not work for this. Julian Elischer пишет: > On 6/30/10 11:23 AM, Andrey Zonov wrote: >> Yes, but I want change process flags without kernel hacking/loading >> modules or modification applications. > > you are going to have to do one of those. > The only alternative is that if you have root you can modify a > processe's flags > using gdb and /dev/kmem. > you could use a program to do it specially if you have root, > but if that's not what you want then you will need to add a syscall to > do what you want > as far as I can see. > > > > >> >> Andrey V. Elsukov пишет: >>> On 30.06.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? >>>> >>> >>> Did you try sysutils/scprotect? >>> >> > -- Andrey Zonov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C2C2557.3030304>