TCP: Fixed RTO update and dup ACKs generation.
[haiku.git] / src / libs / compat / freebsd_network / priv.cpp
blob61525ba7e7cd94a412ed47a32c10c982536c6b57
1 /*
2 * Copyright 2009, Colin Günther, coling@gmx.de.
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
7 #include <thread.h>
9 #include <sys/param.h>
10 #include <sys/priv.h>
14 * FreeBSD has a more sophisticated privilege checking system.
15 * We only check for superuser rights.
17 int
18 priv_check(struct thread *thread, int privilegeLevel)
20 // Note: The thread parameter is ignored intentionally (cf. the comment in
21 // pcpu.h). Currently calling this function is only valid for the current
22 // thread.
23 if (thread_get_current_thread()->team->effective_uid == 0)
24 return ENOERR;
26 return EPERM;