I'm starting a java program as a non-privileged user that I sudo'd into, then exit the shell. Being root again I try to kill -9 the java process. This causes a "permission denied" error. Then I sudo again to the owning user. Kill works as expected. This behavior is reproducible The environment is a virtual machine on VMWare, SLES 15.2, adopt JDK 17(though that shouldn't matter or that it is java at all).
How does that work ? As root I should be able to kill anything that isn't stuck in kernel mode. Who is to blame for this unexpected behavior ? (What did Poettering use as en excuse to introduce this change - just kidding ;)