All of lore.kernel.org
 help / color / mirror / Atom feed
* Read-only `slaves` with shared subtrees?
@ 2017-09-15 17:57 Dawid Ciezarkiewicz
  2017-09-18 20:47 ` Ram Pai
  0 siblings, 1 reply; 16+ messages in thread
From: Dawid Ciezarkiewicz @ 2017-09-15 17:57 UTC (permalink / raw)
  To: linux-kernel; +Cc: Dawid Ciezarkiewicz, linuxram

Hi,

(Please keep me in CC me when responding.)

I have an use-case for shared subtrees that is not covered by:

https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt

and I wasn't able to figure out any working solution - it might not be possible
ATM.

Long story short:
I'd like the `slave` mount (service in a container) to mount propagated events
as RO, no matter how did `master` (host) mount them. Host might need that data
RW, but slave must have it RO only.

I'm using Linux containers to isolate processes. I need the container
to follow part of the host system mount tree, but not have a write-access to it
(for security reasons). It's a trivial setup as long
as everything is static, but as soon as a part of what the container needs
to access is mounted/unmounted at runtime (and thus shared subtrees
are involved),
there seems to be no way to control the flags of the propagated mount events.

I might be able to write a patch implementing this, but before attempting that,
I'd like to confirm:

* Is it even a good idea?
* Is it maybe already possible by some other means?
* Is it an use-case that might potentially be worth supporting in the mainline?
   If so: any hints/ideas about the design and API?

Best Regards,
--
Dawid Ciezarkiewicz
Software Engineer at Rubrik

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

end of thread, other threads:[~2017-10-20  2:23 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-15 17:57 Read-only `slaves` with shared subtrees? Dawid Ciezarkiewicz
2017-09-18 20:47 ` Ram Pai
2017-09-19 23:18   ` Dawid Ciezarkiewicz
2017-09-20 19:39     ` Ram Pai
2017-09-20 19:41       ` Ram Pai
2017-09-20 22:56         ` Eric W. Biederman
2017-09-20 23:06           ` Eric W. Biederman
2017-09-21  0:39             ` Ram Pai
2017-09-21  3:00               ` Dawid Ciezarkiewicz
2017-09-21 19:14                 ` Ram Pai
2017-09-22 18:43                   ` Dawid Ciezarkiewicz
2017-09-29 23:02                     ` Dawid Ciezarkiewicz
2017-10-09  0:15                       ` Ram Pai
2017-10-09 21:39                         ` Dawid Ciezarkiewicz
2017-10-19 18:13                           ` Ram Pai
2017-10-20  2:23                             ` Eric W. Biederman

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.