Added myself to AUTHORS

Change-Id: I541d0ecdf6e623210c5ecd89cdb694cb90e199c2
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Add a configure option to disable SSO

We don't support SSO on all systems, therefore we should at least make
it possible to build the guest agent daemon for those systems

Change-Id: Ic00e4c781a47194bbf6eda62fe3b4f1f107bbbbe
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Perform string sanitization on messages

Messages sent via VirtIO are now checked for being presentable
and additionally filtered for invalid characters due to invalid
encodings.

Change-Id: I499a22e1572b55d1a3a4de7ce6f89ebb130861a8
Bug-Url: https://bugzilla.redhat.com/947014
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Include windows files in tar balls

In order to be able providing source tar balls and src zips containing
all possible build targets we're now including all files necessary.
Previously we did not include all files and it was necessary to
checkout the source git repository to be able building windows
targets for the guest agent.
This commit provides the necessary changes to include all necessary
files for building it from source tar balls.

Change-Id: I793b84ac78127593a11ab9894fdbc68fa45d224d
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Windows Guest - ini file lookup

The ini file is now expected to be in the same folder as the service
executable.

Change-Id: I4d1927a429fcb780119f78f8dc05999f3bae9148
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Recommend python 2.7.3 for windows in the README

Change-Id: Ib051c8f8890e70c3382f366f7272c51f9e711162
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: avoid failing to get disk stat when deal with gvfs-fuse

gvfs-fuse filesystem prevents other user from stat it. Even root can not
stat other user's gvfs-fuse fs. Stat on it fails then the whole disk
stat function fails.

This patch skips gvfs-fuse related filesystem when collecting disk stat.
Moreover, this patch try..except in a finner per fs granularity, so that
failing on stat one fs does not fails the whole operation.

Change-Id: I69c674904c2ad9cb508c5294591a8ba0813e4238
Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>
agent: Ignore usbfs filesystems'

Change-Id: Iee799b05f3c700e8e3912305e2984dad6e049f7d
Bug-Url: https://bugzilla.redhat.com/947792
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Send non-blocking uninstalled notification without python

Remove the inline python script to send the non-blocking uninstalled
message and replace it with echo + dd

Change-Id: I8b2f84d56377ba4ba42ee206966b7b68deae7fc9
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Use the locale module to get the preferred encoding

The guest agent used for the string sanitization sys.stdout.encoding
which is set to None when you're running without an allocated console.
This is the case on Windows as a service. The locale module provides
the function getpreferredencoding() which returns the required value.

Resolves: BZ#962667

Change-Id: I9ff6e3c7165599f80d13115e0173eefe0e79e664
Bug-Url: https://bugzilla.redhat.com/962667
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Do not install Windows files on linux

Change-Id: Ic7cdb66b2b154901541010135ddf118893182ec9
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Build and install ovirt guest agent on Ubuntu

Implemented necessary changes for making the oVirt Guest Agent
working on Ubuntu and Fedora.

Change-Id: I7a694bf1f7ff4230bac305dd571899265ef63950
Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: RHEL6 spec file

Adding a RHEL6 specific spec file for the ovirt-guest-agent

Change-Id: Ife545bcfc597a3c0227ec1b17258234b87b2df7a
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Adding --with-dist for packaging ease

Since not all platforms can fullfill the requirements of the
configure script, but tar balls need to be creatable anyway,
add a --with-dist to configure for being able to create the
distribution tarballs anywhere.

--with-dist on configure now disables the requirement checks.
This is needed as for example F19 or RHEL6/CentOS won't be able
to fulfill the requirements for the GDM plugin.

Change-Id: If1daa4438d9037d47ed4e7ee0be35cb1c2755779
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Add possibility to NOT build kdm and/or gdm extensions

Since with GNOME 3.8 it's no longer possible to build extensions for GDM
we're now allowing to disable the build of the extensions for systems
not supporting it.
Additionally we're now allowing a better control via configure what to build.

Change-Id: I87745ea0e49860969d782c35e2e83cec12fff864
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Use python 2.4 syntax in GuestAgentLinux2

Change-Id: I37c570c2cca4a71f15173601aaed27522e01e895
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: condrestart should check also for pidfile size

Change-Id: Ia2dff34095430147116491337ea528594cb6ab04
Bug-Url: https://bugzilla.redhat.com/977943
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Support reboot as optional shutdown parameter

Added optional boolean parameter determining whether to pass the '-r'
parameter to the appropriate shutdown script.

Change-Id: I94929ff49677ee79569117158c53bdaf086b3ae8
Signed-off-by: Martin Betak <mbetak@redhat.com>
agent: Reworking the data filtering for the guest agent

This patchset is oriented on http://gerrit.ovirt.org/#/c/16652

We're now filtering properly invalid unicode characters and invalid
characters. Which would cause VDSM to build invalid XML data.

Change-Id: I3a4347350d791f4df0b26b1cf81d0ca4f9656981
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Default value for configure should be without-dist

Change-Id: Ie1f84f06f7a188e59c181a1190ab5a133873cee7
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>