Hello.

On Sat, Jun 21, 2025 at 02:20:10AM +0000, Daniel Hast 
<hast.dan...@protonmail.com> wrote:
> run0 --property=ProtectSystem=strict --property=ProtectHome=read-only 
> --property=ReadWritePaths="$DIRECTORY" bash -c "findmnt -nru -o OPTIONS 
> --target=$DIRECTORY"
> 
> If $DIRECTORY is a non-root user's home directory, the above command
> shows that the directory is mounted read-write in the transient
> service unit ("rw" is among the options printed by findmnt). However,
> if $DIRECTORY is /root (the root user's home directory), /root gets
> mounted read-only, as if the ReadWritePaths directive was ignored.

I can see the samge with openSUSE's systemd-257.6.

> Does anyone know what's going on here?

ProtectHome takes precedence over ReadWritePaths? (only guessing)

> Is this a bug or just some complex interaction of these properties
> that I'm not understanding properly?

What would be your expectation for such a command line?

Thanks,
Michal

Attachment: signature.asc
Description: PGP signature

Reply via email to