Re: f23 mate policykit libvirt problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/15/2016 07:44 PM, Nate Pearlstein wrote:
> I’ve been trying to get policykit to automatically authorize virt-manager.
> 
> This was working fine with fedora 21, but with fedora 23 it doesn’t seem to work.  For both I’ve been using the mate desktop.
> 
> With f21 I had the following in /etc/polkit-1/localauthority/50-local.d/caprica.libvirt.pkla
> 
> [Allow user libvirt management permissions]
> Identity=unix-user:user
> Action=org.libvirt.unix.manage
> ResultAny=yes
> ResultInactive=yes
> ResultActive=yes
> 
> 

That format hasn't worked for quite a while, due to a polkit change.

> I tried the above with f23 and no luck.  I’ve since tried
> 
> /etc/polkit-1/rules.d/80-libvirt.rules
> 
> polkit.addRule(function(action, subject) {
>   if (action.id == "org.libvirt.unix.manage" && subject.local && subject.active && subject.isInGroup("wheel")) {
>       return polkit.Result.YES;
>   }
> });
> 

At a glance that looks like it should work, but I didn't confirm the syntax.
However on fedora 22+ the recommended way to do this is to add yourself to the
'libvirt' group:

http://blog.wikichoon.com/2016/01/polkit-password-less-access-for-libvirt.html

- Cole
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux