2 * Copyright 2009, Colin Günther, coling@gmx.de.
3 * All rights reserved. Distributed under the terms of the MIT License.
14 * FreeBSD has a more sophisticated privilege checking system.
15 * We only check for superuser rights.
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
23 if (thread_get_current_thread()->team
->effective_uid
== 0)