File: exec-readonlypaths-with-bindpaths.service

package info (click to toggle)
systemd 241-7~deb10u8
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 59,140 kB
  • sloc: ansic: 355,293; xml: 59,096; python: 21,623; sh: 6,686; perl: 1,649; makefile: 265; awk: 90; lisp: 13; sed: 1
file content (9 lines) | stat: -rw-r--r-- 316 bytes parent folder | download
1
2
3
4
5
6
7
8
9
[Unit]
Description=Test for ReadOnlyPaths=

[Service]
ReadOnlyPaths=/etc -/i-dont-exist /usr
# From 6c47cd7d3bf35c8158a0737f34fe2c5dc95e72d6, RuntimeDirectory= implies BindPaths=.
RuntimeDirectory=foo
ExecStart=/bin/sh -x -c 'test ! -w /etc && test ! -w /usr && test ! -e /i-dont-exist && test -w /var'
Type=oneshot