On Fri, Oct 12, 2012 at 01:58:49PM -0700, John Johansen wrote:
> On 10/12/2012 01:36 PM, Kees Cook wrote:
> > How about using getpagesize() instead?
> > 
> We certainly could, but certainly isn't required for this test.
> 
> tbh I am not even sure why we are bothering with PAGE_SIZE at
> all, after all we are just allocating some space for the threads
> stack.  And for this case anything over a few hundred bytes should
> be sufficient.

I suspect (since my recollection of writing this testcase is lost
in the sands of time) that I was just trying to be conservative in
allocating a sufficiently sized stack for the child thread. I'm not
opposed to doing something differently here.

-- 
Steve Beattie
<[email protected]>
http://NxNW.org/~steve/

Attachment: signature.asc
Description: Digital signature

-- 
AppArmor mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to