Date: Fri, 12 Jul 2013 17:48:57 -0400 From: John Baldwin <jhb@freebsd.org> To: freebsd-arch@freebsd.org Cc: Konstantin Belousov <kostikbel@gmail.com>, arch@freebsd.org, "Robert N. M. Watson" <rwatson@freebsd.org>, Jilles Tjoelker <jilles@stack.nl> Subject: Re: Extending MADV_PROTECT Message-ID: <201307121748.57778.jhb@freebsd.org> In-Reply-To: <201306281446.01797.jhb@freebsd.org> References: <201305071433.27993.jhb@freebsd.org> <20130522084145.GJ3047@kib.kiev.ua> <201306281446.01797.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, June 28, 2013 2:46:01 pm John Baldwin wrote: > Ok, there isn't really a clear consensus here, but I need a system call to let > me toggle this flag on existing processes. > > One reason I don't like the procctl() approach is I am uneasy about forcing > a certain behavior for how commands treat pgid (first-fail vs best-effort). > I guess it can always change in the future so that isn't completely unsolvable. > > I guess I am fine just making it use hardcoded sizes instead of full-blown > ioctl encoding. Ok, I have updated patches for this for HEAD. I have not yet implemented the inheritance bits because I'm loathe to add the first bit to a p_flag2. :-P However, if that's the best course of action I suppose we can do that. The kernel patch is at www.freebsd.org/~jhb/patches/procctl.patch The patch for the protect binary is at www.freebsd.org/~jhb/patches/protect.patch -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307121748.57778.jhb>