All of lore.kernel.org
 help / color / mirror / Atom feed
* R/O protection for lower level dirs
@ 2024-04-01 16:06 Vitaly Chikunov
  2024-04-02  9:11 ` Mickaël Salaün
  0 siblings, 1 reply; 8+ messages in thread
From: Vitaly Chikunov @ 2024-04-01 16:06 UTC (permalink / raw)
  To: Mickaël Salaün, landlock

Hi, 

I want to ensure that some deeper directory is write protected (as a non
security measure but so that some post-install processing do not
accidentally touch installed files).  Is there a way to achieve this
with Landlock?

For example, if we do R/W access to / (root tree is already protected
enough with DAC) and then R/O access to /home we still get full R/W access
everywhere and /home seems not restricted. Also, Landlock does not warn for
such configuration, silently accepting it as valid.

Practical example:

  ~$ LL_FS_RW=/ LL_FS_RO=/home sandboxer touch a
  Executing the sandboxed command...
  ~$ ls -l a
  -rw-r--r-- 1 vt vt 0 Apr  1 15:53 a

Thanks,


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-11-17 13:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-01 16:06 R/O protection for lower level dirs Vitaly Chikunov
2024-04-02  9:11 ` Mickaël Salaün
2024-04-03 15:20   ` Vitaly Chikunov
2024-04-03 16:57     ` Mickaël Salaün
2024-04-05 16:04       ` Vitaly Chikunov
2024-04-06 17:19         ` Mickaël Salaün
2025-11-17 13:09           ` Justin Suess
2024-04-04  8:03     ` Simon de Vlieger

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.