dcavalca / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone
0b5e55
From ab0e0fa7a45bccf8304edcb2a904f30a4f3a48b1 Mon Sep 17 00:00:00 2001
0b5e55
From: Rik van Riel <riel@redhat.com>
0b5e55
Date: Fri, 6 Dec 2013 16:07:54 -0500
0b5e55
Subject: [PATCH] taskset: fix PERMISSIONS section of taskset man page
0b5e55
0b5e55
A user is always allowed to change the CPU affinity of his or her
0b5e55
own processes. CAP_SYS_NICE is only required to change the affinity
0b5e55
of another user's process.
0b5e55
0b5e55
Signed-off-by: Rik van Riel <riel@redhat.com>
0b5e55
Reported-by: Joe Mario <jmario@redhat.com>
0b5e55
---
0b5e55
 schedutils/taskset.1 | 5 +++--
0b5e55
 1 file changed, 3 insertions(+), 2 deletions(-)
0b5e55
0b5e55
diff --git a/schedutils/taskset.1 b/schedutils/taskset.1
0b5e55
index ade202b..fb5738c 100644
0b5e55
--- a/schedutils/taskset.1
0b5e55
+++ b/schedutils/taskset.1
0b5e55
@@ -102,10 +102,11 @@ Or set it:
0b5e55
 .B taskset \-p
0b5e55
 .I mask pid
0b5e55
 .SH PERMISSIONS
0b5e55
+A user can change the CPU affinity of a process belonging to the same user.
0b5e55
 A user must possess
0b5e55
 .B CAP_SYS_NICE
0b5e55
-to change the CPU affinity of a process.  Any user can retrieve the affinity
0b5e55
-mask.
0b5e55
+to change the CPU affinity of a process belonging to another user.
0b5e55
+A user can retrieve the affinity mask of any process.
0b5e55
 .SH AUTHOR
0b5e55
 Written by Robert M. Love.
0b5e55
 .SH COPYRIGHT
0b5e55
-- 
0b5e55
1.8.4.2
0b5e55