All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luis Chamberlain <mcgrof@kernel.org>
To: Rafael Aquini <aquini@redhat.com>
Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
	kexec@lists.infradead.org, linux-fsdevel@vger.kernel.org,
	dyoung@redhat.com, bhe@redhat.com, corbet@lwn.net,
	keescook@chromium.org, akpm@linux-foundation.org, cai@lca.pw,
	rdunlap@infradead.org
Subject: Re: [PATCH v2] kernel: add panic_on_taint
Date: Thu, 7 May 2020 18:50:46 +0000	[thread overview]
Message-ID: <20200507185046.GY11244@42.do-not-panic.com> (raw)
In-Reply-To: <20200507180631.308441-1-aquini@redhat.com>

On Thu, May 07, 2020 at 02:06:31PM -0400, Rafael Aquini wrote:
> Another, perhaps less frequent, use for this option would be
> as a mean for assuring a security policy (in paranoid mode)
> case where no single taint is allowed for the running system.

If used for this purpose then we must add a new TAINT flag for
proc_taint() was used, otherwise we can cheat to show a taint
*did* happen, where in fact it never happened, some punk just
echo'd a value into the kernel's /proc/sys/kernel/tainted.

Forunately proc_taint() only allows to *increment* the taint, not
reduce.

  Luis

WARNING: multiple messages have this Message-ID (diff)
From: Luis Chamberlain <mcgrof@kernel.org>
To: Rafael Aquini <aquini@redhat.com>
Cc: rdunlap@infradead.org, keescook@chromium.org, bhe@redhat.com,
	linux-doc@vger.kernel.org, corbet@lwn.net,
	kexec@lists.infradead.org, linux-kernel@vger.kernel.org,
	cai@lca.pw, linux-fsdevel@vger.kernel.org,
	akpm@linux-foundation.org, dyoung@redhat.com
Subject: Re: [PATCH v2] kernel: add panic_on_taint
Date: Thu, 7 May 2020 18:50:46 +0000	[thread overview]
Message-ID: <20200507185046.GY11244@42.do-not-panic.com> (raw)
In-Reply-To: <20200507180631.308441-1-aquini@redhat.com>

On Thu, May 07, 2020 at 02:06:31PM -0400, Rafael Aquini wrote:
> Another, perhaps less frequent, use for this option would be
> as a mean for assuring a security policy (in paranoid mode)
> case where no single taint is allowed for the running system.

If used for this purpose then we must add a new TAINT flag for
proc_taint() was used, otherwise we can cheat to show a taint
*did* happen, where in fact it never happened, some punk just
echo'd a value into the kernel's /proc/sys/kernel/tainted.

Forunately proc_taint() only allows to *increment* the taint, not
reduce.

  Luis

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

  parent reply	other threads:[~2020-05-07 18:50 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-07 18:06 [PATCH v2] kernel: add panic_on_taint Rafael Aquini
2020-05-07 18:06 ` Rafael Aquini
2020-05-07 18:22 ` Luis Chamberlain
2020-05-07 18:22   ` Luis Chamberlain
2020-05-07 18:43   ` Rafael Aquini
2020-05-07 18:43     ` Rafael Aquini
2020-05-07 18:47     ` Rafael Aquini
2020-05-07 18:47       ` Rafael Aquini
2020-05-07 20:33       ` Luis Chamberlain
2020-05-07 20:33         ` Luis Chamberlain
2020-05-07 22:06         ` Rafael Aquini
2020-05-07 22:06           ` Rafael Aquini
2020-05-07 22:25           ` Luis Chamberlain
2020-05-07 22:25             ` Luis Chamberlain
2020-05-08 12:47             ` Rafael Aquini
2020-05-08 12:47               ` Rafael Aquini
2020-05-09  3:48               ` Luis Chamberlain
2020-05-09  3:48                 ` Luis Chamberlain
2020-05-09 14:56                 ` Rafael Aquini
2020-05-09 14:56                   ` Rafael Aquini
2020-05-07 18:50 ` Luis Chamberlain [this message]
2020-05-07 18:50   ` Luis Chamberlain
2020-05-07 18:53   ` Rafael Aquini
2020-05-07 18:53     ` Rafael Aquini

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=20200507185046.GY11244@42.do-not-panic.com \
    --to=mcgrof@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=aquini@redhat.com \
    --cc=bhe@redhat.com \
    --cc=cai@lca.pw \
    --cc=corbet@lwn.net \
    --cc=dyoung@redhat.com \
    --cc=keescook@chromium.org \
    --cc=kexec@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rdunlap@infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.