Skip to contentSkip to conversation

capabilities.7: add a note about /proc/PID/status

PATCH In review Andrey Vagin 2 participants 2 messages Feb 22, 2013 – Feb 28, 2013 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 capabilities.7: add a note about /proc/PID/status

Since kernel 3.6.8, all non-existent capabilities (above CAP_LAST_CAP) are not shown.

---
 man7/capabilities.7 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
man7/capabilities.7 +5 -1
index b8f2a75..5e4e6bf 100644
@@ -1034,7 +1034,11 @@ The
 file can be used to view the capability sets of a thread.
 The
 .I /proc/PID/status
-file shows the capability sets of a process's main thread.
+file shows the capability sets of a process's main thread. Since kernel 3.6.8,
+all non-existent capabilities (above
+.B CAP_LAST_CAP)
+are not shown.
+.\" 7b9a7ec565505699f503b4fcf61500dceb36e744
 
 The
 .I libcap
Signature · 6 lines
1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1361532265-5962-1-git-send-email-avagin-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org

#2 lore raw

Hi Andrey,

Quoted 26 lines · Andrey Vagin

Since kernel 3.6.8, all non-existent capabilities (above CAP_LAST_CAP) are not shown.

---
 man7/capabilities.7 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
man7/capabilities.7 +5 -2
index b8f2a75..5e4e6bf 100644
@@ -1034,7 +1034,11 @@ The
 file can be used to view the capability sets of a thread.
 The
 .I /proc/PID/status
-file shows the capability sets of a process's main thread.
+file shows the capability sets of a process's main thread. Since kernel 3.6.8,
+all non-existent capabilities (above
+.B CAP_LAST_CAP)
+are not shown.
+.\" 7b9a7ec565505699f503b4fcf61500dceb36e744
 
 The
 .I libcap
--
Quoted 2 lines

1.7.11.7

Thanks. I applied a tweaked version of your patch, and replaced the stable kernel number with a mainline number, which is the norm in man-pages.

Cheers,

Michael

man7/capabilities.7 +8 -1
index a663c22..64b642e 100644
@@ -43,7 +43,7 @@
 .\"     other capabilities where the permitted or inheritable bit is set.
 .\" 2011-09-07, mtk/Serge hallyn: Add CAP_SYSLOG
 .\"
-.TH CAPABILITIES 7 2012-12-22 "Linux" "Linux Programmer's Manual"
+.TH CAPABILITIES 7 2013-02-25 "Linux" "Linux Programmer's Manual"
 .SH NAME
 capabilities \- overview of Linux capabilities
 .SH DESCRIPTION
@@ -1035,6 +1035,13 @@ file can be used to view the capability sets of a thread.
 The
 .I /proc/PID/status
 file shows the capability sets of a process's main thread.
+Before Linux 3.8, nonexistent capabilities were shown as being
+enabled (1) in these sets.
+Since Linux 3.8,
+.\" 7b9a7ec565505699f503b4fcf61500dceb36e744
+all non-existent capabilities (above
+.B CAP_LAST_CAP)
+are shown as disabled (0).
 
 The
 .I libcap
Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html