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

Re: [libvirt] [PATCH] Fix build when using polkit0



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



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