Skip to content

Commit 4d9bb5b

Browse files
committed
add service defs for FFMPEG
1 parent 75fab10 commit 4d9bb5b

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

ffmpeg/policy.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
whitelist_paths:
2+
OP_OPEN: ["*"]
3+
OP_ACCESS: ["*"]
4+
OP_EXEC: ["*"]
5+
OP_STAT: ["*"]
6+
OP_CHMOD: ["/home/work/*", "/tmp/*"]
7+
exec_allowance: -1
8+
fork_allowance: -1
9+
max_child_procs: 32
10+
extra_envs: []
11+
preserved_env_keys: [
12+
"HOME", "PATH", "LANG",
13+
"USER", "SHELL", "TERM",
14+
"LD_LIBRARY_PATH",
15+
"LD_PRELOAD",
16+
# Python-specific
17+
"PYTHONPATH",
18+
"PYTHONUNBUFFERED",
19+
"MPLCONFIGDIR",
20+
"OPENBLAS_NUM_THREADS",
21+
]
22+
23+
diff_to_default: true
24+
25+
# Following syscalls are blindly allowed.
26+
# IMPORTANT: ptrace MUST NOT be included!
27+
allowed_syscalls:

ffmpeg/service-defs/ffmpeg.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
22
"command": [
3-
"{runtime_path}", "-m", "ffmpeg",
3+
"/usr/local/bin/ffmpeg",
44
"-stats",
5-
"-i", "{[0]}",
6-
"-vcodec hevc_nvenc"
7-
"{[0]}
5+
"-vcodec","hevc_nvenc"
86
]
97
}

0 commit comments

Comments
 (0)