diff options
author | Stanisław Pitucha <viraptor@gmail.com> | 2018-07-08 21:01:34 +1000 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2019-08-28 14:36:03 -0700 |
commit | ec34cb718b64dccb91ba440846eafa97aa5ca5db (patch) | |
tree | 4108c0b7d2689294bf0dff421a36c9b512e418a4 /solaris_priv.c | |
parent | 05693047c81a7ace8111d5e541d47f74b1d884a7 (diff) | |
download | memcached-ec34cb718b64dccb91ba440846eafa97aa5ca5db.tar.gz |
Add a handler for seccomp crashes
When seccomp causes a crash, use a SIGSYS action and handle it to print
out an error. Most functions are not allowed at that point (no buffered
output, no ?printf functions, no abort, ...), so the implementation is
as minimal as possible.
Print out a message with the syscall number and exit the process (all
threads).
Diffstat (limited to 'solaris_priv.c')
-rw-r--r-- | solaris_priv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/solaris_priv.c b/solaris_priv.c index 349334e..160fee5 100644 --- a/solaris_priv.c +++ b/solaris_priv.c @@ -42,3 +42,7 @@ void drop_privileges(void) { priv_freeset(privs); } + +void setup_privilege_violations_handler(void) { + // not needed +} |