You could make a separate LSM to do these checks instead of limiting
it to SELinux. Your use case, your call, of course.
It's not limited to SELinux. This is hooked via the LSM API and
implementable by any LSM (similar to execmem, execstack etc.)
--
James Morris
[off-list ref]
Thread (48 messages)
48 messages,
10 authors,
last reply 2020-09-01