Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Oct 2006 16:01:35 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 107314 for review
Message-ID:  <200610051601.k95G1ZoL024972@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=107314

Change 107314 by rwatson@rwatson_zoo on 2006/10/05 16:01:19

	This is a silly suser() call, so replace it with a silly
	priv_check() call.

Affected files ...

.. //depot/projects/trustedbsd/priv/sys/compat/linux/linux_misc.c#4 edit

Differences ...

==== //depot/projects/trustedbsd/priv/sys/compat/linux/linux_misc.c#4 (text+ko) ====

@@ -1334,6 +1334,7 @@
 	switch (args->cmd) {
 	case REBOOT_CAD_ON:
 	case REBOOT_CAD_OFF:
+		return (priv_check(td, PRIV_REBOOT));
 		return suser(td);
 	case REBOOT_HALT:
 		bsd_args.opt = RB_HALT;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610051601.k95G1ZoL024972>