2013-11-29 16:23:42 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<body>
|
|
|
|
<h1>Audit log</h1>
|
|
|
|
|
|
|
|
<ul id="toc"></ul>
|
|
|
|
|
|
|
|
<h2><a name="intro">Introduction</a></h2>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
A number of the libvirt virtualization drivers (QEMU/KVM and LXC) include
|
|
|
|
support for logging details of important operations to the host's audit
|
|
|
|
subsystem. This provides administrators / auditors with a canonical historical
|
|
|
|
record of changes to virtual machines' / containers' lifecycle states and
|
|
|
|
their configuration. On hosts which are running the Linux audit daemon,
|
|
|
|
the logs will usually end up in <code>/var/log/audit/audit.log</code>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<h2><a name="config">Configuration</a></h2>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
The libvirt audit integration is enabled by default on any host which has
|
|
|
|
the Linux audit subsystem active, and disabled otherwise. It is possible
|
|
|
|
to alter this behaviour in the <code>/etc/libvirt/libvirtd.conf</code>
|
|
|
|
configuration file, via the <code>audit_level</code> parameter
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li><code>audit_level=0</code> - libvirt auditing is disabled regardless
|
|
|
|
of host audit subsystem enablement.</li>
|
|
|
|
<li><code>audit_level=1</code> - libvirt auditing is enabled if the host
|
|
|
|
audit subsystem is enabled, otherwise it is disabled. This is the
|
|
|
|
default behaviour.</li>
|
|
|
|
<li><code>audit_level=2</code> - libvirt auditing is enabled regardless
|
|
|
|
of host audit subsystem enablement. If the host audit subsystem is
|
|
|
|
disabled, then libvirtd will refuse to complete startup and exit with
|
|
|
|
an error.</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
In addition to have formal messages sent to the audit subsystem it is
|
|
|
|
possible to tell libvirt to inject messages into its own logging
|
|
|
|
layer. This will result in messages ending up in the systemd journal
|
|
|
|
or <code>/var/log/libvirt/libivrtd.log</code> on non-systemd hosts.
|
|
|
|
This is disabled by default, but can be requested by setting the
|
|
|
|
<code>audit_logging=1</code> configuration parameter in the same file
|
|
|
|
mentioned above.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<h2><a name="types">Message types</a></h2>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Libvirt defines three core audit message types each of which will
|
|
|
|
be described below. There are a number of common fields that will
|
|
|
|
be reported for all message types.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>pid</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Process ID of the libvirtd daemon generating the audit record.</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>uid</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>User ID of the libvirtd daemon process generating the audit record.</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>subj</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Security context of the libvirtd daemon process generating the audit record.</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>msg</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>String containing a list of key=value pairs specific to the type of audit record being reported.</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Some fields in the <code>msg</code> string are common to audit records
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>virt</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Type of virtualization driver used. One of <code>qemu</code> or <code>lxc</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>vm</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Host driver unique name of the guest</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>uuid</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Globally unique identifier for the guest</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>exe</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Path of the libvirtd daemon</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>hostname</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Currently unused</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>addr</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Currently unused</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>terminal</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Currently unused</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>res</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Result of the action, either <code>success</code> or <code>failed</code></dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<h3><a name="typecontrol">VIRT_CONTROL</a></h3>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Reports change in the lifecycle state of a virtual machine. The <code>msg</code>
|
|
|
|
field will include the following sub-fields
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>op</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Type of operation performed. One of <code>start</code>, <code>stop</code> or <code>init</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>reason</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The reason which caused the operation to happen</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>vm-pid</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>ID of the primary/leading process associated with the guest</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>init-pid</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>ID of the <code>init</code> process in a container. Only if <code>op=init</code> and <code>virt=lxc</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>pid-ns</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Namespace ID of the <code>init</code> process in a container. Only if <code>op=init</code> and <code>virt=lxc</code></dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<h3><a name="typemachine">VIRT_MACHINE_ID</a></h3>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Reports the association of a security context with a guest. The <code>msg</code>
|
|
|
|
field will include the following sub-fields
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>model</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The security driver type. One of <code>selinux</code> or <code>apparmor</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>vm-ctx</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Security context for the guest process</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>img-ctx</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Security context for the guest disk images and other assigned host resources</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<h3><a name="typeresource">VIRT_RESOURCE</a></h3>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Reports the usage of a host resource by a guest. The fields include will
|
|
|
|
vary according to the type of device being reported. When the guest is
|
|
|
|
initially booted records will be generated for all assigned resources.
|
|
|
|
If any changes are made to the running guest configuration, for example
|
|
|
|
hotplug devices, or adjust resources allocation, further records will
|
|
|
|
be generated.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<h4><a name="typeresourcevcpu">Virtual CPU</a></h4>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
The <code>msg</code> field will include the following sub-fields
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>reason</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The reason which caused the resource to be assigned to happen</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>resrc</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The type of resource assigned. Set to <code>vcpu</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>old-vcpu</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Original vCPU count, or 0</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>new-vcpu</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Updated vCPU count</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
<h4><a name="typeresourcemem">Memory</a></h4>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
The <code>msg</code> field will include the following sub-fields
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>reason</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The reason which caused the resource to be assigned to happen</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>resrc</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The type of resource assigned. Set to <code>mem</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>old-mem</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Original memory size in bytes, or 0</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>new-mem</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Updated memory size in bytes</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<h4><a name="typeresourcedisk">Disk</a></h4>
|
|
|
|
<p>
|
|
|
|
The <code>msg</code> field will include the following sub-fields
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>reason</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The reason which caused the resource to be assigned to happen</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>resrc</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The type of resource assigned. Set to <code>disk</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>old-disk</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Original host file or device path acting as the disk backing file</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>new-disk</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Updated host file or device path acting as the disk backing file</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<h4><a name="typeresourcenic">Network interface</a></h4>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
The <code>msg</code> field will include the following sub-fields
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>reason</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The reason which caused the resource to be assigned to happen</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>resrc</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The type of resource assigned. Set to <code>net</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>old-net</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Original MAC address of the guest network interface</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>new-net</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Updated MAC address of the guest network interface</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<p>
|
2013-12-02 18:59:18 +00:00
|
|
|
If there is a host network interface associated with the guest NIC then
|
2013-11-29 16:23:42 +00:00
|
|
|
further records may be generated
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>reason</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The reason which caused the resource to be assigned to happen</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>resrc</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The type of resource assigned. Set to <code>net</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>net</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>MAC address of the host network interface</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>rdev</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Name of the host network interface</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<h4><a name="typeresourcefs">Filesystem</a></h4>
|
|
|
|
<p>
|
|
|
|
The <code>msg</code> field will include the following sub-fields
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>reason</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The reason which caused the resource to be assigned to happen</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>resrc</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The type of resource assigned. Set to <code>fs</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>old-fs</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Original host directory, file or device path backing the filesystem </dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>new-fs</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Updated host directory, file or device path backing the filesystem</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<h4><a name="typeresourcehost">Host device</a></h4>
|
|
|
|
<p>
|
|
|
|
The <code>msg</code> field will include the following sub-fields
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>reason</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The reason which caused the resource to be assigned to happen</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>resrc</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The type of resource assigned. Set to <code>hostdev</code> or <code>dev</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>dev</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The unique bus identifier of the USB, PCI or SCSI device, if <code>resrc=dev</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>disk</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The path of the block device assigned to the guest, if <code>resrc=hostdev</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>chardev</code></dt>
|
2013-12-02 18:59:18 +00:00
|
|
|
<dd>The path of the character device assigned to the guest, if <code>resrc=hostdev</code></dd>
|
2013-11-29 16:23:42 +00:00
|
|
|
</dl>
|
|
|
|
|
|
|
|
<h4><a name="typeresourcetpm">TPM</a></h4>
|
|
|
|
<p>
|
|
|
|
The <code>msg</code> field will include the following sub-fields
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>reason</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The reason which caused the resource to be assigned to happen</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>resrc</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The type of resource assigned. Set to <code>tpm</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>device</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The path of the host TPM device assigned to the guest</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<h4><a name="typeresourcerng">RNG</a></h4>
|
|
|
|
<p>
|
|
|
|
The <code>msg</code> field will include the following sub-fields
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>reason</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The reason which caused the resource to be assigned to happen</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>resrc</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The type of resource assigned. Set to <code>rng</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>old-rng</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Original path of the host entropy source for the RNG</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>new-rng</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>Updated path of the host entropy source for the RNG</dd>
|
|
|
|
</dl>
|
|
|
|
|
2014-07-03 08:59:58 +00:00
|
|
|
<h4><a name="typeresourcechardev">console/serial/parallel/channel</a></h4>
|
|
|
|
<p>
|
|
|
|
The <code>msg</code> field will include the following sub-fields
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>reason</code></dt>
|
2014-07-03 08:59:58 +00:00
|
|
|
<dd>The reason which caused the resource to be assigned to happen</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>resrc</code></dt>
|
2014-07-03 08:59:58 +00:00
|
|
|
<dd>The type of resource assigned. Set to <code>chardev</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>old-chardev</code></dt>
|
2014-07-03 08:59:58 +00:00
|
|
|
<dd>Original path of the backing character device for given emulated device</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>new-chardev</code></dt>
|
2014-07-03 08:59:58 +00:00
|
|
|
<dd>Updated path of the backing character device for given emulated device</dd>
|
|
|
|
</dl>
|
2013-11-29 16:23:42 +00:00
|
|
|
|
2014-07-03 10:03:41 +00:00
|
|
|
<h4><a name="typeresourcesmartcard">smartcard</a></h4>
|
|
|
|
<p>
|
|
|
|
The <code>msg</code> field will include the following sub-fields
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>reason</code></dt>
|
2014-07-03 10:03:41 +00:00
|
|
|
<dd>The reason which caused the resource to be assigned to happen</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>resrc</code></dt>
|
2014-07-03 10:03:41 +00:00
|
|
|
<dd>The type of resource assigned. Set to <code>smartcard</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>old-smartcard</code></dt>
|
2014-07-03 10:03:41 +00:00
|
|
|
<dd>Original path of the backing character device, certificate store or
|
|
|
|
"nss-smartcard-device" for host smartcard passthrough.
|
|
|
|
</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>new-smartcard</code></dt>
|
2014-07-03 10:03:41 +00:00
|
|
|
<dd>Updated path of the backing character device, certificate store or
|
|
|
|
"nss-smartcard-device" for host smartcard passthrough.
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
2013-11-29 16:23:42 +00:00
|
|
|
<h4><a name="typeresourceredir">Redirected device</a></h4>
|
|
|
|
<p>
|
|
|
|
The <code>msg</code> field will include the following sub-fields
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>reason</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The reason which caused the resource to be assigned to happen</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>resrc</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The type of resource assigned. Set to <code>redir</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>bus</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The bus type, only <code>usb</code> allowed</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>device</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The device type, only <code>USB redir</code> allowed</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<h4><a name="typeresourcecgroup">Control group</a></h4>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
The <code>msg</code> field will include the following sub-fields
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>reason</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The reason which caused the resource to be assigned to happen</dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>resrc</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The type of resource assigned. Set to <code>cgroup</code></dd>
|
2016-04-21 13:23:56 +00:00
|
|
|
<dt><code>cgroup</code></dt>
|
2013-11-29 16:23:42 +00:00
|
|
|
<dd>The name of the cgroup controller</dd>
|
|
|
|
</dl>
|
|
|
|
|
2016-08-11 09:40:18 +00:00
|
|
|
|
|
|
|
<h4><a name="typeresourceshmem">Shared memory</a></h4>
|
|
|
|
<p>
|
|
|
|
The <code>msg</code> field will include the following sub-fields
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl>
|
|
|
|
<dt><code>resrc</code></dt>
|
|
|
|
<dd>The type of resource assigned. Set to <code>shmem</code></dd>
|
|
|
|
<dt><code>reason</code></dt>
|
|
|
|
<dd>The reason which caused the resource to be assigned to happen</dd>
|
|
|
|
<dt><code>size</code></dt>
|
|
|
|
<dd>The size of the shared memory region</dd>
|
|
|
|
<dt><code>shmem</code></dt>
|
|
|
|
<dd>Name of the shared memory region</dd>
|
|
|
|
<dt><code>source</code></dt>
|
|
|
|
<dd>Path of the backing character device for given emulated device</dd>
|
|
|
|
</dl>
|
|
|
|
|
2013-11-29 16:23:42 +00:00
|
|
|
</body>
|
|
|
|
</html>
|