mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Petr Mladek <pmladek@suse.com>
Cc: "Greg KH" <gregkh@linuxfoundation.org>,
	孟敬姿 <mengjingzi@iie.ac.cn>,
	john.ogness@linutronix.de, senozhatsky@chromium.org,
	keescook@chromium.org, tony.luck@intel.com, gpiccoli@igalia.com,
	linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Linus Torvalds" <torvalds@linuxfoundation.org>
Subject: Re: Suggestion for Capability Check Refinement in check_syslog_permissions()
Date: Thu, 4 Jan 2024 11:27:52 -0500	[thread overview]
Message-ID: <20240104112752.120cb566@gandalf.local.home> (raw)
In-Reply-To: <ZZZ92cjhyr_CgLRJ@alley>

On Thu, 4 Jan 2024 10:43:53 +0100
Petr Mladek <pmladek@suse.com> wrote:

> And CAP_SYS_ADMIN has really been deprecated last 13 years, see the
> commit ee24aebffb75a7f940cf ("cap_syslog: accept CAP_SYS_ADMIN for now").
> 
> Maybe, it is really time to remove it.

Perhaps what we should do is to remove it in a simple change that can be
easily reverted if someone complains.

The point is, Linus always says "Don't break user space", but he has even
said that we have broken user API before, but as long as no user space
breaks, it's OK. It's the "tree falls in the forest" analogy. If we break
user space API, but no user space application uses it, did it really break?

If nothing is using CAP_SYS_ADMIN why keep it?

If we remove it, and nobody complains, it means that nothing broke. If we
remove it and someone complains, then we know it's still needed and we
revert the removal just like Linus would do with any other commit that
broke user space.

-- Steve

  reply	other threads:[~2024-01-04 16:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-03  5:00 孟敬姿
2024-01-03  6:59 ` Greg KH
2024-01-04  9:43   ` Petr Mladek
2024-01-04 16:27     ` Steven Rostedt [this message]
2024-01-05  6:20   ` [PATCH] cap_syslog: remove CAP_SYS_ADMIN when dmesg_restrict Jingzi Meng
2024-01-05 14:49     ` Theodore Ts'o
2024-01-05 15:23       ` Petr Mladek
2024-01-08  6:32       ` 孟敬姿
2024-01-08 17:57     ` Kees Cook
2024-01-15  1:24       ` 孟敬姿
2024-02-01 18:05     ` Kees Cook

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=20240104112752.120cb566@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=gpiccoli@igalia.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=john.ogness@linutronix.de \
    --cc=keescook@chromium.org \
    --cc=linux-hardening@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mengjingzi@iie.ac.cn \
    --cc=pmladek@suse.com \
    --cc=senozhatsky@chromium.org \
    --cc=tony.luck@intel.com \
    --cc=torvalds@linuxfoundation.org \
    /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

all inboxes | Powered by JetHome®