Re: [PATCH] Bug with powerof2 macro in sys/param.h

2010-10-14 Thread Andriy Gapon
on 14/10/2010 00:30 Garrett Cooper said the following: > I was talking to someone today about this macro, and he noted that > the algorithm is incorrect -- it fails the base case with ((x) == 0 -- > which makes sense because 2^(x) cannot equal 0 (mathematically > impossible, unless you consider

Re: [PATCH] Bug with powerof2 macro in sys/param.h

2010-10-14 Thread John Baldwin
On Thursday, October 14, 2010 7:58:32 am Andriy Gapon wrote: > on 14/10/2010 00:30 Garrett Cooper said the following: > > I was talking to someone today about this macro, and he noted that > > the algorithm is incorrect -- it fails the base case with ((x) == 0 -- > > which makes sense because 2

negative permission scanner for periodic/security

2010-10-14 Thread Brooks Davis
One of the side effects of increasing NGROUPS_MAX is that it's possible for a process to be in more groups that can be transmitted over NFS (<4). When that happens users are mostly denied access to things they should have access to. However, permission evaluation order in unix means that groups c

Re: [PATCH] Bug with powerof2 macro in sys/param.h

2010-10-14 Thread Garrett Cooper
On Thu, Oct 14, 2010 at 6:37 AM, John Baldwin wrote: > On Thursday, October 14, 2010 7:58:32 am Andriy Gapon wrote: >> on 14/10/2010 00:30 Garrett Cooper said the following: >> >     I was talking to someone today about this macro, and he noted that >> > the algorithm is incorrect -- it fails the