caps: Remove the FreeBSD implementation of pa_drop_caps()
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Fri, 3 Jan 2014 11:31:29 +0000 (13:31 +0200)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Fri, 3 Jan 2014 11:31:29 +0000 (13:31 +0200)
commit11e71e3990c5880ff5e52cc33741d71a0ba21d6c
treed0bee4f110077d24c075f166587e9ac07bd88ccb
parentc307093cf07d66df9e0805df0d106e6538f67c14
caps: Remove the FreeBSD implementation of pa_drop_caps()

Quoting Ryan Lortie from [1]:

I assumed from my reading of the Linux code ("cap_clear()...") that it
was clearing all capabilities of the process when in fact it is only
clearing the "special to root" capabilities.

The FreeBSD version of the code indeed clears _all_ capabilities beyond
ones that the process already has (ie: cannot open any new files, create
sockets, etc.)

This has a pretty obvious adverse effect on pulseaudio's ability to do
what it needs to do -- indeed, it bombs out pretty quickly due to an
inability to read its own config file.

[1] https://bugs.freedesktop.org/show_bug.cgi?id=72580#c11
src/daemon/caps.c