Re: [systemd-devel] Escaping path in run0 option argument

2025-03-13 Thread Daniel Hast
Thanks for the help. I tested it out (using sed to escape backslashes and quotes) and it seems to work perfectly. On Thursday, March 13th, 2025 at 10:26 AM, Andrei Borzenkov wrote: > > > On Thu, Mar 13, 2025 at 4:54 PM Daniel Hast hast.dan...@protonmail.com wrote: > > > Hello, > > > > I

Re: [systemd-devel] Escaping path in run0 option argument

2025-03-13 Thread Andrei Borzenkov
On Thu, Mar 13, 2025 at 4:54 PM Daniel Hast wrote: > > Hello, > > I'm working on a shell script that makes use of run0, and I'm having trouble > figuring out how to escape a file path in the --property option. I want to > use --property="ProtectSystem=strict" and --property="ReadWritePaths=[...]

[systemd-devel] Escaping path in run0 option argument

2025-03-13 Thread Daniel Hast
Hello, I'm working on a shell script that makes use of run0, and I'm having trouble figuring out how to escape a file path in the --property option. I want to use --property="ProtectSystem=strict" and --property="ReadWritePaths=[...]" to limit the transient service unit's write access to only t