|
|
|
|
|
by JdeBP
2754 days ago
|
|
This is not an overflow problem. PolicyKit is deciding to exclude negative numbers from the allowable range of user IDs, causing pkttyagent to abend with an assertion failure, and then the authorization mechanism fails open. The proposed patch from the systemd developers, somewhat worryingly, apparently does not address the failing open. It simply stops PolicyKit from excluding negative numbers as UIDs, and thus the assertion from failing. The worry is that some other assertion might trigger in the agent, or be introduced, that causes it to fail open in some other way. It should fail closed. * https://gitlab.freedesktop.org/polkit/polkit/merge_requests/... We have been down this road before with assertions. * https://news.ycombinator.com/item?id=12655048 |
|
> unprivileged users with negative UID can successfully execute any systemctl command