From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikanth Karthikesan Subject: Re: [PATCH] ioprio_set.2: CAP_SYS_ADMIN is not reqd to set IOPRIO_CLASS_IDLE anymore Date: Tue, 8 Jul 2008 14:25:46 +0530 Message-ID: <200807081425.47162.knikanth@suse.de> References: <200807081207.39693.knikanth@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Michael Kerrisk Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, axboe-tSWWG44O7X1aa/9Udqfwiw@public.gmane.org List-Id: linux-man@vger.kernel.org On Tuesday 08 July 2008 12:47:26 Michael Kerrisk wrote: > On Tue, Jul 8, 2008 at 8:37 AM, Nikanth Karthikesan wrote: > > Since linux-2.6.25 CAP_SYS_ADMIN capability is not required to set > > IOPRIO_CLASS_IDLE. > > > > Signed-off-by: Nikanth Karthikesan > > > > --- > > man2/ioprio_set.2 | 7 ++++--- > > 1 file changed, 4 insertions(+), 3 deletions(-) > > > > Index: b/man2/ioprio_set.2 > > =================================================================== > > --- a/man2/ioprio_set.2 > > +++ b/man2/ioprio_set.2 > > @@ -293,11 +293,12 @@ capability can change the priority of an > > .B "What is the desired priority" > > Attempts to set very high priorities > > .RB ( IOPRIO_CLASS_RT ) > > -or very low ones > > -.RB ( IOPRIO_CLASS_IDLE ) > > require the > > .B CAP_SYS_ADMIN > > -capability. > > +capability. Kernel versions till 2.6.24 require > > +.B CAP_SYS_ADMIN > > +capability even to set very low priority > > +.RB ( IOPRIO_CLASS_IDLE ). > > Hi Nikanth, > > Thanks for this! > > I'll reword this as > > == > Attempts to set very high priorities > .RB ( IOPRIO_CLASS_RT ) > require the > .B CAP_SYS_ADMIN > capability. > Kernel versions up to 2.6.24 also required > B CAP_SYS_ADMIN > to set very low priority > .RB ( IOPRIO_CLASS_IDLE ), > but since Linux 2.6.24 this is no longer required. > == > > Okay? > Thanks, Michael. > The change will be in man-pages-3.04. > Thanks Nikanth Karthikesan -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html