Re: [PATCH] capabilities.7: add a note about /proc/PID/status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrey,

On Fri, Feb 22, 2013 at 12:24 PM, Andrey Vagin <avagin@xxxxxxxxxx> wrote:
> Since kernel 3.6.8, all non-existent capabilities (above CAP_LAST_CAP)
> are not shown.
>
> Signed-off-by: Andrey Vagin <avagin@xxxxxxxxxx>
> ---
>  man7/capabilities.7 | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/man7/capabilities.7 b/man7/capabilities.7
> index b8f2a75..5e4e6bf 100644
> --- a/man7/capabilities.7
> +++ b/man7/capabilities.7
> @@ -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
> --
> 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

diff --git a/man7/capabilities.7 b/man7/capabilities.7
index a663c22..64b642e 100644
--- a/man7/capabilities.7
+++ b/man7/capabilities.7
@@ -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


-- 
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux