summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_misc.h
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2011-03-26 11:05:53 +0000
committeravg <avg@FreeBSD.org>2011-03-26 11:05:53 +0000
commita92365858357b636caacb1f576fcb0c622aebbec (patch)
treedaedfe407e038d5ae066e6a7e69e93ed5a267423 /sys/compat/linux/linux_misc.h
parentae4ae2c803e333c9798cad1469c5f0cf31c9bb41 (diff)
downloadFreeBSD-src-a92365858357b636caacb1f576fcb0c622aebbec.zip
FreeBSD-src-a92365858357b636caacb1f576fcb0c622aebbec.tar.gz
linux compat: improve and fix sendmsg/recvmsg compatibility
- implement baseic stubs for capget, capset, prctl PR_GET_KEEPCAPS and prctl PR_SET_KEEPCAPS. - add SCM_CREDS support to sendmsg and recvmsg - modify sendmsg to ignore control messages if not using UNIX domain sockets This should allow linux pulse audio daemon and client work on FreeBSD and interoperate with native counter-parts modulo the differences in pulseaudio versions. PR: kern/149168 Submitted by: John Wehle <john@feith.com> Reviewed by: netchild MFC after: 2 weeks
Diffstat (limited to 'sys/compat/linux/linux_misc.h')
-rw-r--r--sys/compat/linux/linux_misc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h
index c7ac5ac..b771825 100644
--- a/sys/compat/linux/linux_misc.h
+++ b/sys/compat/linux/linux_misc.h
@@ -37,6 +37,8 @@
* Second arg is a ptr to return the
* signal.
*/
+#define LINUX_PR_GET_KEEPCAPS 7 /* Get drop capabilities on setuid */
+#define LINUX_PR_SET_KEEPCAPS 8 /* Set drop capabilities on setuid */
#define LINUX_PR_SET_NAME 15 /* Set process name. */
#define LINUX_PR_GET_NAME 16 /* Get process name. */
OpenPOWER on IntegriCloud