PolicyKit: Users with UID greater than INT_MAX can execute any systemctl command
gitlab.freedesktop.org
PolicyKit: Users with UID greater than INT_MAX can execute any systemctl command
1–10 of 32 posts
Re: PolicyKit: Users with UID greater than INT_MAX can execute any systemctl command
#2Re: PolicyKit: Users with UID greater than INT_MAX can execute any systemctl command
#3See also https://github.com/systemd/systemd/issues/11026
But this isn’t a systemd bug, this is a bug in software systemd relies on.
Re: PolicyKit: Users with UID greater than INT_MAX can execute any systemctl command
#4And it's very unlikely to happen by accident, right? So can't get too excited about this.
Bit of trivia - one some older Unixes (HP-UX) the uid -1 was special - was always unprivileged 'nobody' and was equal to 65535.
Re: PolicyKit: Users with UID greater than INT_MAX can execute any systemctl command
#5You'd have to be a privileged user to create such high uid user. And it's very unlikely to happen by accident, right? So can't get too excited about this. Bit of trivia - one some older Unixes (HP-UX) the uid -1 was special - was always unprivileged 'nobody' and was equal to 65535.
Re: PolicyKit: Users with UID greater than INT_MAX can execute any systemctl command
#6You'd have to be a privileged user to create such high uid user. And it's very unlikely to happen by accident, right? So can't get too excited about this. Bit of trivia - one some older Unixes (HP-UX) the uid -1 was special - was always unprivileged 'nobody' and was equal to 65535.
Re: PolicyKit: Users with UID greater than INT_MAX can execute any systemctl command
#7You'd have to be a privileged user to create such high uid user. And it's very unlikely to happen by accident, right? So can't get too excited about this. Bit of trivia - one some older Unixes (HP-UX) the uid -1 was special - was always unprivileged 'nobody' and was equal to 65535.
Incorrect; nobody was 65534.
Thanks for the correction.
Re: PolicyKit: Users with UID greater than INT_MAX can execute any systemctl command
#8You'd have to be a privileged user to create such high uid user. And it's very unlikely to happen by accident, right? So can't get too excited about this. Bit of trivia - one some older Unixes (HP-UX) the uid -1 was special - was always unprivileged 'nobody' and was equal to 65535.
Or use a broken / misconfigured AD/LDAP to sync uid/gid across a pool of machines.
Re: PolicyKit: Users with UID greater than INT_MAX can execute any systemctl command
#9You'd have to be a privileged user to create such high uid user. And it's very unlikely to happen by accident, right? So can't get too excited about this. Bit of trivia - one some older Unixes (HP-UX) the uid -1 was special - was always unprivileged 'nobody' and was equal to 65535.
Was the special treatment of -1 intended by the developers, or did somebody mix up signed -1 with unsigned 65535?
I think -2 is just easier to type and stands out more.
Re: PolicyKit: Users with UID greater than INT_MAX can execute any systemctl command
#10Lots of other tools will likely break in similar and unpredictable ways if your UID becomes that high. Likely those ways are also a lot of fun.
Since you'd need to be a privileged user to begin with, this is on the same alarm level as "running sed with sudo allows you to edit /etc/sudoers and gain full sudo privilege".