- include kauth.h for kauth_authorize_generic.
- wrap a long line.
This commit is contained in:
parent
6c89e74b38
commit
17e8de7630
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sunos_misc.c,v 1.137 2006/05/14 21:25:21 elad Exp $ */
|
||||
/* $NetBSD: sunos_misc.c,v 1.138 2006/05/15 09:19:31 yamt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -50,7 +50,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.137 2006/05/14 21:25:21 elad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.138 2006/05/15 09:19:31 yamt Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_nfsserver.h"
|
||||
|
@ -90,6 +90,7 @@ __KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.137 2006/05/14 21:25:21 elad Exp $"
|
|||
#include <sys/socketvar.h>
|
||||
#include <sys/exec.h>
|
||||
#include <sys/swap.h>
|
||||
#include <sys/kauth.h>
|
||||
|
||||
#include <compat/sys/signal.h>
|
||||
|
||||
|
@ -1259,7 +1260,8 @@ sunos_sys_reboot(l, v, retval)
|
|||
int error, bsd_howto, sun_howto;
|
||||
char *bootstr;
|
||||
|
||||
if ((error = kauth_authorize_generic(p->p_cred, KAUTH_GENERIC_ISSUSER, &p->p_acflag)) != 0)
|
||||
if ((error = kauth_authorize_generic(p->p_cred, KAUTH_GENERIC_ISSUSER,
|
||||
&p->p_acflag)) != 0)
|
||||
return (error);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue