2022-09-08 21:58:56 +00:00
|
|
|
SELECT p.pid,
|
|
|
|
p.path,
|
|
|
|
p.name,
|
|
|
|
p.cmdline,
|
|
|
|
p.euid,
|
|
|
|
p.parent,
|
|
|
|
pp.path AS parent_path,
|
|
|
|
pp.name AS parent_name,
|
|
|
|
pp.cmdline AS parent_cmdline,
|
|
|
|
pp.euid AS parent_euid
|
|
|
|
FROM processes p
|
|
|
|
JOIN processes pp ON p.parent = pp.pid
|
|
|
|
WHERE p.euid < pp.euid
|
|
|
|
AND p.path NOT IN (
|
|
|
|
'/usr/bin/fusermount',
|
|
|
|
'/usr/bin/fusermount3',
|
|
|
|
'/usr/bin/login',
|
2022-09-09 00:50:15 +00:00
|
|
|
'/usr/bin/sudo',
|
2022-09-09 14:16:28 +00:00
|
|
|
'/usr/bin/doas',
|
2022-09-16 15:22:50 +00:00
|
|
|
'/bin/ps',
|
|
|
|
'/usr/bin/top'
|
2022-09-08 21:58:56 +00:00
|
|
|
)
|
2022-09-09 00:50:15 +00:00
|
|
|
AND p.path NOT LIKE "/nix/store/%/bin/sudo"
|
|
|
|
AND p.path NOT LIKE "/nix/store/%/bin/dhcpcd"
|
2022-09-16 15:22:50 +00:00
|
|
|
AND NOT (
|
|
|
|
p.name = 'polkit-agent-he' AND parent_path='/usr/bin/gnome-shell'
|
|
|
|
)
|
|
|
|
AND NOT (
|
|
|
|
p.name = 'fusermount3' AND parent_path='/usr/lib/xdg-document-portal'
|
|
|
|
)
|