Added check for the membarrier
system call. Also added documentation about the new requirement.
This commit is contained in:
parent
80b4261fd3
commit
0c4a4ddcca
9 changed files with 126 additions and 14 deletions
2
rootfs/etc/logmonitor/notifications.d/membarrier/desc
Executable file
2
rootfs/etc/logmonitor/notifications.d/membarrier/desc
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
echo "$APP_NAME is likely to crash because it requires the membarrier system call. See the documentation of this Docker container to find out how this system call can be allowed."
|
16
rootfs/etc/logmonitor/notifications.d/membarrier/filter
Executable file
16
rootfs/etc/logmonitor/notifications.d/membarrier/filter
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e # Exit immediately if a command exits with a non-zero status.
|
||||
set -u # Treat unset variables as an error.
|
||||
|
||||
LINE="$1"
|
||||
|
||||
if [ "$LINE" = "MEMBARRIER_CHECK_FAIL" ]; then
|
||||
echo 'MEMBARRIER_CHECK_ACK' > /tmp/.firefox_membarrier_check
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# No match found.
|
||||
exit 1
|
||||
|
||||
# vim: set ft=sh :
|
1
rootfs/etc/logmonitor/notifications.d/membarrier/level
Normal file
1
rootfs/etc/logmonitor/notifications.d/membarrier/level
Normal file
|
@ -0,0 +1 @@
|
|||
WARNING
|
2
rootfs/etc/logmonitor/notifications.d/membarrier/title
Executable file
2
rootfs/etc/logmonitor/notifications.d/membarrier/title
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
echo "$APP_NAME requires the membarrier system call."
|
Loading…
Add table
Add a link
Reference in a new issue