Hi,
On Fri, May 21, 2021 at 11:02:14AM -0700, Andi Kleen wrote:
Could something like this help? (not tested)Moreover, I think this solves another problem pointed out by Andi KleenIt looks better now, Thank.
during the v5 review [2] related to the possibility that a supervisor
respawns processes killed by the Brute LSM. He suggested adding some way so
a supervisor can know that a process has been killed by Brute and then
decide to respawn or not. So, now, the supervisor can read the brute xattr
of one executable and know if it is blocked by Brute and why (using the
statistical data).
One potential problem is that the supervisor might see the executable
directly, but run it through some wrapper. In fact I suspect that will be
fairly common with complex daemons. So it couldn't directly look at the
xattr. Might be useful to also pass this information through the wait*
chain, so that the supervisor can directly collect it. That would need some
extension to these system calls.