Re: [PATCH v4 1/6] sysctl: Add flags to support min/max range clamping

2018-03-13 Thread Waiman Long
On 03/13/2018 01:46 PM, Eric W. Biederman wrote: > Waiman Long writes: > >> When minimum/maximum values are specified for a sysctl parameter in >> the ctl_table structure with proc_dointvec_minmax() handler, update >> to that parameter will fail with error if the given value

Re: [PATCH v4 1/6] sysctl: Add flags to support min/max range clamping

2018-03-13 Thread Eric W. Biederman
Waiman Long writes: > When minimum/maximum values are specified for a sysctl parameter in > the ctl_table structure with proc_dointvec_minmax() handler, update > to that parameter will fail with error if the given value is outside > of the required range. > > There are use

Re: [PATCH v4 1/6] sysctl: Add flags to support min/max range clamping

2018-03-12 Thread Waiman Long
On 03/12/2018 04:44 PM, Luis R. Rodriguez wrote: > On Mon, Mar 12, 2018 at 04:15:39PM -0400, Waiman Long wrote: >> When minimum/maximum values are specified for a sysctl parameter in >> the ctl_table structure with proc_dointvec_minmax() handler, update >> to that parameter will fail with error if

Re: [PATCH v4 1/6] sysctl: Add flags to support min/max range clamping

2018-03-12 Thread Luis R. Rodriguez
On Mon, Mar 12, 2018 at 04:15:39PM -0400, Waiman Long wrote: > When minimum/maximum values are specified for a sysctl parameter in > the ctl_table structure with proc_dointvec_minmax() handler, update > to that parameter will fail with error if the given value is outside > of the required range. >