PERFORCE change 107314 for review

Robert Watson rwatson at FreeBSD.org
Thu Oct 5 09:04:21 PDT 2006


http://perforce.freebsd.org/chv.cgi?CH=107314

Change 107314 by rwatson at 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;


More information about the trustedbsd-cvs mailing list