PERFORCE change 108132 for review

Robert Watson rwatson at FreeBSD.org
Thu Oct 19 16:32:06 PDT 2006


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

Change 108132 by rwatson at rwatson_zoo on 2006/10/19 23:29:16

	Merge from priv branch:
	
	This is a silly suser() call, so replace it with a silly
	priv_check() call.

Affected files ...

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

Differences ...

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

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


More information about the trustedbsd-cvs mailing list