On 03/10/2014 12:10 PM, Zbigniew Jędrzejewski-Szmek wrote:
> On Mon, Mar 10, 2014 at 11:41:52AM -0300, Gerardo Exequiel Pozzi wrote:
>> On 03/10/2014 06:48 AM, Djalal Harouni wrote:
>>> On Sun, Mar 09, 2014 at 08:00:22PM -0300, Gerardo Exequiel Pozzi wrote:
>>>> Hello
>>>>
>>>> To do tests I made a new Arch Linux (x86_64) base installation running
>>>> in qemu/kvm with systemd-210-3 and polkit-0.112-1 to discard any weird
>>>> thing on my system.
>>>>
>>>> I can reboot/poweroff/suspend/hibernate the system with a normal user
>>>> logged from a local VT or remote SSH does not care. I can not disable
>>>> this even with a set of polkit rules.
>>>> I am sure that this works fine before (maybe systemd-204 age?)
>>> Yes! I did notice that, normally it should return 'challenge' ?!
>>
>> Yes. Except if you change it as I did to "NO" per custom rule.
> 
> Could you check if current git behaves as expected?
> 
> Zbyszek
> 
> 

Perfecto, thanks you. :)
Aplying 055d4066 (logind: fix policykit checks) fixed the issue.


Now works as expected:

(with polkit rule to deny)
[djgera@host322 ~]$ systemctl reboot
Failed to execute operation: Access denied
Failed to start reboot.target: Access denied
[djgera@host322 ~]$

Without polkit installed at all:
[djgera@host322 ~]$ systemctl reboot
Failed to execute operation: The name org.freedesktop.PolicyKit1 was not
provided by any .service files
Must be root.
[djgera@host322 ~]$


-- 
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to