You are not logged in.

#1 Yesterday 10:59:24

zse
Member
Registered: 2024-05-28
Posts: 58

[Solved] udisksctl loop-setup started requiring authorization

Some recent update must have made polkit changes (or something to that effect) so that a loop setup requires permissions.

Was that an intentional change? If so, I guess the wiki article should be updated.

Before I try to figure this out for myself, maybe someone directly knows what is going on and how to revert that restriction easily?

Last edited by zse (Today 11:43:15)

Offline

#2 Today 10:10:39

zse
Member
Registered: 2024-05-28
Posts: 58

Re: [Solved] udisksctl loop-setup started requiring authorization

Found the cause in upstream udisks: A commit this month added the restriction (0516b64dde8f5797a61ca9c101a01e47773dc3ed)

Personally I don't find this reasonable after all these years, but oh well...

Edit: In case anyone else is annoyed by it and wants to change this behavior back, here is a shell script to allow users in the wheel group to loop-setup again:

#!/usr/bin/env bash

RULEFILE=/etc/polkit-1/rules.d/50-allow-loop-setup.rules

echo 'polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.udisks2.loop-setup" && subject.isInGroup("wheel"))
    {
        return polkit.Result.YES;
    }
});
' > $RULEFILE

chown root:polkitd $RULEFILE
systemctl reload polkit.service

Last edited by zse (Today 11:42:40)

Offline

Board footer

Powered by FluxBB