From owner-p4-projects@FreeBSD.ORG Thu Oct 5 16:01:38 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id BF6EE16A521; Thu, 5 Oct 2006 16:01:38 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5809216A51C for ; Thu, 5 Oct 2006 16:01:38 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEF2E43D5A for ; Thu, 5 Oct 2006 16:01:35 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k95G1Z0E024982 for ; Thu, 5 Oct 2006 16:01:35 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k95G1ZoL024972 for perforce@freebsd.org; Thu, 5 Oct 2006 16:01:35 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Thu, 5 Oct 2006 16:01:35 GMT Message-Id: <200610051601.k95G1ZoL024972@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 107314 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Oct 2006 16:01:39 -0000 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;