summaryrefslogtreecommitdiffstats
path: root/sys/sys/priv.h
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2008-11-09 10:45:13 +0000
committered <ed@FreeBSD.org>2008-11-09 10:45:13 +0000
commit9d3703b8426a4dbb7eb7244d73de96428caf1532 (patch)
tree54928970669608762abe861909dd03f729e065cb /sys/sys/priv.h
parent43e6672f4c8f60d63328221a5abc0cc13663d14f (diff)
downloadFreeBSD-src-9d3703b8426a4dbb7eb7244d73de96428caf1532.zip
FreeBSD-src-9d3703b8426a4dbb7eb7244d73de96428caf1532.tar.gz
Mark uname(), getdomainname() and setdomainname() with COMPAT_FREEBSD4.
Looking at our source code history, it seems the uname(), getdomainname() and setdomainname() system calls got deprecated somewhere after FreeBSD 1.1, but they have never been phased out properly. Because we don't have a COMPAT_FREEBSD1, just use COMPAT_FREEBSD4. Also fix the Linuxolator to build without the setdomainname() routine by just making it call userland_sysctl on kern.domainname. Also replace the setdomainname()'s implementation to use this approach, because we're duplicating code with sysctl_domainname(). I wasn't able to keep these three routines working in our COMPAT_FREEBSD32, because that would require yet another keyword for syscalls.master (COMPAT4+NOPROTO). Because this routine is probably unused already, this won't be a problem in practice. If it turns out to be a problem, we'll just restore this functionality. Reviewed by: rdivacky, kib
Diffstat (limited to 'sys/sys/priv.h')
-rw-r--r--sys/sys/priv.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/sys/priv.h b/sys/sys/priv.h
index c56c99d..27b6f02 100644
--- a/sys/sys/priv.h
+++ b/sys/sys/priv.h
@@ -84,7 +84,6 @@
#define PRIV_CLOCK_SETTIME 17 /* Can call clock_settime. */
#define PRIV_SETTIMEOFDAY 18 /* Can call settimeofday. */
#define PRIV_SETHOSTID 19 /* Can call sethostid. */
-#define PRIV_SETDOMAINNAME 20 /* Can call setdomainname. */
/*
* Audit subsystem privileges.
OpenPOWER on IntegriCloud