<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:Thomas.Blume@suse.com" title="Thomas Blume <Thomas.Blume@suse.com>"> <span class="fn">Thomas Blume</span></a>
</span> changed
<a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - systemd-detect-virt and directive ConditionVirtualization wrongly return vm for xen dom0"
href="https://bugs.freedesktop.org/show_bug.cgi?id=77271">bug 77271</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>RESOLVED
</td>
<td>REOPENED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>FIXED
</td>
<td>---
</td>
</tr>
<tr>
<td style="text-align:right;">Assignee</td>
<td>systemd-bugs@lists.freedesktop.org
</td>
<td>Thomas.Blume@suse.com
</td>
</tr>
<tr>
<td style="text-align:right;">Attachment #100789 is obsolete</td>
<td>
</td>
<td>1
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - systemd-detect-virt and directive ConditionVirtualization wrongly return vm for xen dom0"
href="https://bugs.freedesktop.org/show_bug.cgi?id=77271#c22">Comment # 22</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - systemd-detect-virt and directive ConditionVirtualization wrongly return vm for xen dom0"
href="https://bugs.freedesktop.org/show_bug.cgi?id=77271">bug 77271</a>
from <span class="vcard"><a class="email" href="mailto:Thomas.Blume@suse.com" title="Thomas Blume <Thomas.Blume@suse.com>"> <span class="fn">Thomas Blume</span></a>
</span></b>
<pre>Created <span class=""><a href="attachment.cgi?id=102974" name="attach_102974" title="fix 0004-systemd-detect-virt-only-discover-Xen-domU.patch">attachment 102974</a> <a href="attachment.cgi?id=102974&action=edit" title="fix 0004-systemd-detect-virt-only-discover-Xen-domU.patch">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=77271&attachment=102974'>[review]</a>
fix 0004-systemd-detect-virt-only-discover-Xen-domU.patch
The conditional for detection xen virtualization contained a little mistake.
It is checking for i to be empty: 'if (!i) {', but it must check for cap
instead,
because: 'cap = strsep(&i, ",")' will set cap to the discovered value and i to
the next value after the separator.
Hence, i would be empty, if there is only control_d in domcap, leading to a
wrong
domU detection.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>