From 2c9422595f41635e2f4f7ef1afb7eece9001feae Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Tue, 26 Nov 2013 17:33:05 +0100 Subject: proc: store the privileged host port in _hurd_host_priv Store the privileged host port in _hurd_host_priv like it is done in the root filesystem. This fixes the thread priority adjustment in the proc server. Prior to this fix, a warning message "unable to adjust libports thread priority" sometimes appeared early in the boot process. * proc/host.c (S_proc_getprivports): Adapt accordingly. (S_proc_register_version): Likewise. * proc/mgt.c (add_tasks): Likewise. * proc/msg.c (tickle_init): Likewise. * proc/main.c (main): Store the privileged host port in _hurd_host_priv. * proc/proc.h: Remove unused variable master_host_port. fixup_store_priv_port --- proc/host.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proc/host.c') diff --git a/proc/host.c b/proc/host.c index 488863bb..b5c93b47 100644 --- a/proc/host.c +++ b/proc/host.c @@ -70,7 +70,7 @@ S_proc_getprivports (struct proc *p, if (! check_uid (p, 0)) return EPERM; - *hostpriv = master_host_port; + *hostpriv = _hurd_host_priv; *devpriv = master_device_port; return 0; } @@ -419,7 +419,7 @@ S_proc_register_version (pstruct_t server, /* No need to check SERVER here; we don't use it. */ - if (credential != master_host_port) + if (credential != _hurd_host_priv) /* Must be privileged to register for uname. */ return EPERM; -- cgit v1.2.3