mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 10:12:38 +02:00
drop all linux kernel capabilities from containers
These are not needed in order to convert documents in the dangerzone containers.
This commit is contained in:
parent
a02801cc2d
commit
2d4bad680e
1 changed files with 2 additions and 0 deletions
|
@ -82,6 +82,8 @@ def convert(input_filename, output_filename, ocr_lang, stdout_callback):
|
|||
platform_args = []
|
||||
security_args = ["--security-opt", "no-new-privileges"]
|
||||
|
||||
# drop all linux kernel capabilities
|
||||
security_args += ["--cap-drop", "all"]
|
||||
|
||||
|
||||
# Convert document to pixels
|
||||
|
|
Loading…
Reference in a new issue