Use bpf programs as filters for seccomp, the one in the example will block all the write syscalls after it's loaded.
Compile it with just
gcc main.c
<?php | |
// https://gist.github.com/esterTion/c673a5e2547cd54c202f129babaf601d | |
/* | |
This code is now maintained by yojohanshinwataikei solely | |
esterTion has retired from this project | |
*/ | |
chdir(__DIR__); | |
require_once __DIR__ . '/../webpthumb/Workerman-master/Autoloader.php'; |
# This snippet was written by Dimitri Racordon (kyouko.taiga@gmail.com) | |
# | |
# Copyright (c) 2015 Dimitri Racordon | |
# Licensed under the The MIT License (MIT). | |
class lazy(object): | |
# This class is heavily inspired by the werkzeug.utils.cached_property | |
# decorator. It transforms a class method to a lazy property, evaluated | |
# the first time the property is accessed. |