archive mirror
 help / color / mirror / Atom feed
From: Arno Wagner <>
To: Fourhundred Thecat <>
Subject: Re: mapping with --readonly option
Date: Sun, 6 Nov 2022 23:15:47 +0100	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

You probably should mount it as readonly instead. Because
that gets remounted in the typical boot-process as r/w
so it definitely is possible.

If you want protection against a malicious root, this is
probably not the way to go, I think.


On Sat, Nov 05, 2022 at 11:15:12 CET, Fourhundred Thecat wrote:
> Hello,
> if I use the --readonly option to create a mapping, and mount it as my
> root partition, can the mapping later be changed during runtime to
> read-write ?
> Or, in other words, if mapping was created as readonly, can I be sure
> that it cannot be remapped to read-write while being mounted as my root
> filesystem?
> Ofcourse mapping can be closed and opened again, but I am asking here
> specifically for mapping that is mounted as root filesystem, which
> cannot be unmounted at runtime (as far as I know)
> I am interested whether I can use readonly mapping as sort of security
> feature to enforce read-only filesystem?
> thank you

Arno Wagner,     Dr. sc. techn., Dipl. Inform.,    Email:
GnuPG: ID: CB5D9718  FP: 12D6 C03B 1B30 33BB 13CF  B774 E35C 5FA1 CB5D 9718
A good decision is based on knowledge and not on numbers. -- Plato

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier

  reply	other threads:[~2022-11-06 22:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-05 10:15 mapping with --readonly option Fourhundred Thecat
2022-11-06 22:15 ` Arno Wagner [this message]
2022-11-06 22:29   ` Christoph Anton Mitterer

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* 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).