<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:desrt@desrt.ca" title="desrt <desrt@desrt.ca>"> <span class="fn">desrt</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW --- - pulseaudio's use of sys/capability.h is non-POSIX"
href="https://bugs.freedesktop.org/show_bug.cgi?id=72580">bug 72580</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;">Attachment #90593 is obsolete</td>
<td>
</td>
<td>1
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - pulseaudio's use of sys/capability.h is non-POSIX"
href="https://bugs.freedesktop.org/show_bug.cgi?id=72580#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - pulseaudio's use of sys/capability.h is non-POSIX"
href="https://bugs.freedesktop.org/show_bug.cgi?id=72580">bug 72580</a>
from <span class="vcard"><a class="email" href="mailto:desrt@desrt.ca" title="desrt <desrt@desrt.ca>"> <span class="fn">desrt</span></a>
</span></b>
<pre>Created <span class=""><a href="attachment.cgi?id=90814" name="attach_90814" title="Add support for FreeBSD <sys/capability.h>">attachment 90814</a> <a href="attachment.cgi?id=90814&action=edit" title="Add support for FreeBSD <sys/capability.h>">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=72580&attachment=90814'>[review]</a>
Add support for FreeBSD <sys/capability.h>
cap_init() and friends are Linux-specific, so only use them if we're on
Linux.
Add support for FreeBSD capabilities if we find <sys/capability.h> to be
available there.
Add an #else (not Linux or FreeBSD) case with an #error requesting
contributions for other platforms.
This patch keeps the cap_init check in configure.ac but removes the
error if it fails. This will ensure we link to -lcap if needed, but
won't fail for the case that capabilities are part of the core system
(as on FreeBSD).
We do however, modify the header check to ensure we fail if there is no
<sys/capability.h> at all and we are on a system where it could be
installed. The logic here is that it is better to give the user the
chance to install it than it is to proceed silently with a disabled
security feature on a system where it could easily be supported.
--without-caps remains an option if the user wants to force it.</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>