Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Oct 2006 23:30:05 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 108132 for review
Message-ID:  <200610192330.k9JNU5RQ067761@repoman.freebsd.org>

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

Change 108132 by rwatson@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;



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