Re: [PATCH] Fix build when using polkit0

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

 



Jim Fehlig wrote:
> Here's a hacked attempt at fixing the build on older distros using
> polkit0.  It works and user is authorized or denied depending on
> settings in PolicyKit.conf.
>   
[...]

> diff --git a/daemon/libvirtd.h b/daemon/libvirtd.h
> index 8e1843c..18a10ef 100644
> --- a/daemon/libvirtd.h
> +++ b/daemon/libvirtd.h
> @@ -91,30 +91,4 @@ extern virNetSASLContextPtr saslCtxt;
>  extern virNetServerProgramPtr remoteProgram;
>  extern virNetServerProgramPtr qemuProgram;
>  
> -/* Main server state */
> -struct qemud_server {
> -    int privileged;
> -
> -    int sigread;
> -    int sigwrite;
> -    char *logDir;
> -    pthread_t eventThread;
> -    unsigned int hasEventThread :1;
> -    unsigned int quitEventThread :1;
> -# ifdef HAVE_AVAHI
> -    struct libvirtd_mdns *mdns;
> -# endif
> -# if HAVE_SASL
> -    char **saslUsernameWhitelist;
> -# endif
> -# if HAVE_POLKIT0
> -    DBusConnection *sysbus;
> -# endif
> -};
> -
> -
> -# if HAVE_POLKIT
> -int qemudGetSocketIdentity(int fd, uid_t *uid, pid_t *pid);
> -# endif
> -
>  #endif
>   

This hunk, and another in libvirtd.h, have nothing to do with polkit
build fix and are just removing dead code.  I'll submit those as a
separate patch.

Regards,
Jim


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]