8307977: Fix dynamic attach to processes with elevated capabilities on Linux
------------- Commit messages: - 8307977: Fix dynamic attach to processes with elevated capabilities on Linux Changes: https://git.openjdk.org/jdk/pull/17628/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17628&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8307977 Stats: 36 lines in 1 file changed: 21 ins; 11 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/17628.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17628/head:pull/17628 PR: https://git.openjdk.org/jdk/pull/17628