mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-30 18:52:38 +02:00
podman run with --userns=keep-id to mount volumes
Moving to /dangerzone was failing with insuficient permissions: Invalid JSON returned from container: PermissionError: [Errno 13] Permission denied: '/dangerzone/page-3.rgb' A previous approach was removed in commit 805222. It started with root at first in a wrapper script and then dropped these priviledges which running the script. `--userns=keep-id` solves the mountpoint issues as it maps the user starting the container is mapped in the container [1]. [1]: https://www.redhat.com/sysadmin/user-flag-rootless-containers
This commit is contained in:
parent
21a9a6c98c
commit
345ac8a396
1 changed files with 1 additions and 0 deletions
|
@ -81,6 +81,7 @@ def convert(input_filename, output_filename, ocr_lang, stdout_callback):
|
|||
else:
|
||||
platform_args = []
|
||||
security_args = ["--security-opt", "no-new-privileges"]
|
||||
security_args += ["--userns", "keep-id"]
|
||||
|
||||
# drop all linux kernel capabilities
|
||||
security_args += ["--cap-drop", "all"]
|
||||
|
|
Loading…
Reference in a new issue