jibri: fail to start if the SYS_ADMIN cap is missing (#1816)
The container will refuse to start and provide some useful information to the user: ``` docker-jitsi-meet-jibri-1 | cap[cap_sys_admin] not permitted docker-jitsi-meet-jibri-1 | Required capability SYS_ADMIN is missing docker-jitsi-meet-jibri-1 | [cont-init.d] 10-config: exited 1. docker-jitsi-meet-jibri-1 | [cont-finish.d] executing container finish scripts... docker-jitsi-meet-jibri-1 | [cont-finish.d] done. docker-jitsi-meet-jibri-1 | [s6-finish] waiting for services. ```
This commit is contained in:
committed by
GitHub
parent
cacee4ecc8
commit
1d3c0f13a3
@@ -1,5 +1,11 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# Check if the SYS_ADMIN cap is set
|
||||
if ! capsh --has-p=cap_sys_admin; then
|
||||
echo "Required capability SYS_ADMIN is missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if /dev/shm is large enough (2GB at least)
|
||||
if ! shm-check; then
|
||||
echo "/dev/shm must be at least 2GB in size"
|
||||
|
||||
Reference in New Issue
Block a user