Support protected directories

by setting the sticky bit to all explicitly requested directories.
This commit is contained in:
Maximilian Paß
2022-10-25 11:38:16 +01:00
committed by Sebastian Serth
parent b1de6faa03
commit b3eee17846
3 changed files with 96 additions and 2 deletions

View File

@ -404,7 +404,7 @@ paths:
type: object
properties:
path:
description: Location where the file should be placed. Can be absolute (starting with /) or relative to the workspace directory. Missing parent directories are created. If this ends with a /, the path is interpreted as a directory and content is ignored
description: Location where the file should be placed. Can be absolute (starting with /) or relative to the workspace directory. Missing parent directories are created. If this ends with a /, the path is interpreted as a directory and content is ignored. Currently, every file/directory is owned by root but the directories have the sticky bit set to allow unprivileged file creation.
type: string
example: /etc/passwd
content: