From: "Serge E. Hallyn" <serge.hallyn@canonical.com>
To: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Kees Cook <kees@ubuntu.com>, lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH 1/1] Update manpages with CAP_SYSLOG info
Date: Fri, 18 Feb 2011 08:55:02 -0600 [thread overview]
Message-ID: <20110218145502.GA7138@localhost> (raw)
Hi Michael,
Here my attempt at a man-pages update to specify CAP_SYSLOG.
thanks,
-serge
Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
---
man2/syslog.2 | 4 +++-
man7/capabilities.7 | 9 +++++++++
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/man2/syslog.2 b/man2/syslog.2
index fb018a6..7383e2f 100644
--- a/man2/syslog.2
+++ b/man2/syslog.2
@@ -237,7 +237,9 @@ An attempt was made to change console_loglevel or clear the kernel
message ring buffer by a process without sufficient privilege
(more precisely: without the
.B CAP_SYS_ADMIN
-capability).
+or
+.B CAP_SYSLOG
+(since 2.6.38) capability).
.TP
.B ERESTARTSYS
System call was interrupted by a signal; nothing was read.
diff --git a/man7/capabilities.7 b/man7/capabilities.7
index a751b21..55177dc 100644
--- a/man7/capabilities.7
+++ b/man7/capabilities.7
@@ -236,6 +236,9 @@ Perform a range of system administration operations including:
.BR umount (2),
.BR swapon (2),
.BR swapoff (2),
+privileged
+.BR syslog(2)
+operations (see CAP_SYSLOG),
.BR sethostname (2),
and
.BR setdomainname (2);
@@ -421,6 +424,12 @@ set real-time (hardware) clock.
.B CAP_SYS_TTY_CONFIG
Use
.BR vhangup (2).
+.TP
+.B CAP_SYSLOG
+Since 2.6.38, this capability can be substituted for CAP_SYS_ADMIN for
+privileged syslog(2) actions. When dmesg_restrict is set, that means
+any call to syslog. Otherwise, it means any action other than reading
+the last kernel messages or getting the size of the log buffer.
.\"
.SS Past and Current Implementation
A full implementation of capabilities requires that:
--
1.7.2.3
next reply other threads:[~2011-02-18 14:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-18 14:55 Serge E. Hallyn [this message]
2011-02-18 18:03 ` [PATCH 1/1] Update manpages with CAP_SYSLOG info Kees Cook
2011-09-08 2:05 ` Michael Kerrisk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110218145502.GA7138@localhost \
--to=serge.hallyn@canonical.com \
--cc=kees@ubuntu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).