summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linux/linux_sysctl.c')
-rw-r--r--sys/compat/linux/linux_sysctl.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/sys/compat/linux/linux_sysctl.c b/sys/compat/linux/linux_sysctl.c
index 153e0ac..86a8758 100644
--- a/sys/compat/linux/linux_sysctl.c
+++ b/sys/compat/linux/linux_sysctl.c
@@ -121,20 +121,3 @@ linux_sysctl(struct thread *td, struct linux_sysctl_args *args)
free(mib, M_TEMP);
return (ENOTDIR);
}
-
-int
-linux_sethostname(struct thread *td, struct linux_sethostname_args *uap)
-{
- int name[2];
- int error;
-
- name[0] = CTL_KERN;
- name[1] = KERN_HOSTNAME;
- mtx_lock(&Giant);
- if ((error = suser_cred(td->td_ucred, PRISON_ROOT)) == 0) {
- error = userland_sysctl(td, name, 2, 0, 0, 0,
- uap->hostname, uap->len, 0);
- }
- mtx_unlock(&Giant);
- return (error);
-}
OpenPOWER on IntegriCloud