Open petersilva opened 1 week ago
One of the main reasons that caused me to give up on making the generate_syscall_code.py script compatible with Ubuntu is that I couldn't find the syscall_64.tbl file.
I tried again this morning and still couldn't find it in any packages.
But it is available in the Ubuntu kernel git repos: https://wiki.ubuntu.com/Kernel/Dev/KernelGitGuide
I think this is just a placeholder for when we are looking... it's not worth a real effort at the moment. maybe I should put wishlist on it?
I made some small changes to get the generate_syscall_code script working on Ubuntu.
It would be nice if it could compare what it generates with the code in libsr3shim.c, or just automatically insert the generated code at compile time. Automatically modifying the code shouldn't be too hard, it just has to replace everything between // start of auto-generated code
and // end of auto generated code
.
The initial implementation has been fairly thoroughly investigated on redhat 8. We initially were only expecting to have the syscall() implementation active on redhat 8 and ubuntu 18, where there is a known very common case of syscall usage by a very common package (file-utils... aka mv.)
There should be some kind of audit script to warn that there is a syscall defined on the current system that isn't covered by what we do in libsr3shim.