Another attempt on restricting executable paths.
This commit is contained in:
parent
14f2cdba24
commit
3f8fbc4e12
@ -6,9 +6,12 @@ Type=oneshot
|
|||||||
User=dwupload
|
User=dwupload
|
||||||
Group=dwupload
|
Group=dwupload
|
||||||
ExecStart=/usr/bin/dwelling-upload-clean -conf /etc/dwelling/upload.yaml
|
ExecStart=/usr/bin/dwelling-upload-clean -conf /etc/dwelling/upload.yaml
|
||||||
|
|
||||||
ReadOnlyPaths=/
|
ReadOnlyPaths=/
|
||||||
# Set here path to directory where uploads are stored.
|
# Set here path to directory where uploads are stored.
|
||||||
ReadWritePaths=/srv/upload
|
ReadWritePaths=/srv/upload
|
||||||
|
NoExecPaths=/
|
||||||
|
ExecPaths=/usr/bin/dwelling-upload-clean
|
||||||
|
|
||||||
LogsDirectory=dwelling-upload
|
LogsDirectory=dwelling-upload
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user