]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
Since Linux 2.6.25, CAP_SYS_ADMIN is longer required to set
authorMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 8 Jul 2008 10:12:21 +0000 (10:12 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 8 Jul 2008 10:12:21 +0000 (10:12 +0000)
a low priority (IOPRIO_CLASS_IDLE).

man2/ioprio_set.2

index 4770b6c9653925f0a165341c74aa2ec76e43e597..fb8ec9e6f9c989658b6ef4e43909c3a054a5b491 100644 (file)
@@ -22,7 +22,7 @@
 .\" with various additions by Michael Kerrisk <mtk.manpages@gmail.com>
 .\"
 .\"
-.TH IOPRIO_SET 2 2007-06-01 "Linux" "Linux Programmer's Manual"
+.TH IOPRIO_SET 2 2008-07-09 "Linux" "Linux Programmer's Manual"
 .SH NAME
 ioprio_get, ioprio_set \- get/set I/O scheduling class and priority
 .SH SYNOPSIS
@@ -269,8 +269,7 @@ Priority levels range from 0 (highest) to 7 (lowest).
 This is the idle scheduling class.
 Processes running at this level only get I/O
 time when no-one else needs the disk.
-The idle class has no class
-data.
+The idle class has no class data.
 Attention is required when assigning this priority class to a process,
 since it may become starved if higher priority processes are
 constantly accessing the disk.
@@ -293,11 +292,14 @@ capability can change the priority of any process.
 .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.
+Kernel versions up to 2.6.24 also required
+.B CAP_SYS_ADMIN
+to set a very low priority
+.RB ( IOPRIO_CLASS_IDLE ),
+but since Linux 2.6.25, this is no longer required.
 .PP
 A call to
 .BR ioprio_set ()