8 ms·
I've written simple Linux Security Modules, as learning experiences, but also to help tighten up a bunch of virtual machines. The one that I'm most proud of de
by stevekemp 9y ago
I've written simple Linux Security Modules, as learning experiences, but also to help tighten up a bunch of virtual machines.
The one that I'm most proud of delegates decisions on whether executables can be run to .. userspace. Which is simultaneously evil and brilliant.
i.e. User "foo" tries to run "/tmp/exploit" and the kernel executes "/sbin/can-exec foo /tmp/exploit". If the return code of that is zero then the execution is permitted otherwise it is denied.
This gives you ample opportunity to log all executables, perform SHA1-hash checks of contents, or deny executables to staff-members outside business hours. There's a lot of scope for site-specific things, creativity is the limit!
- bincat 9y agoI think it would be much appreciated if this software could be released as open source. How did the user space redirection handle potentially high spikes of execve's? And btw, thanks for all the years of debian-administration.org.