From owner-cvs-src@FreeBSD.ORG Sat Sep 23 10:36:58 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E53816A415; Sat, 23 Sep 2006 10:36:58 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A38C43D53; Sat, 23 Sep 2006 10:36:58 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8NAavlO047544; Sat, 23 Sep 2006 10:36:57 GMT (envelope-from netchild@repoman.freebsd.org) Received: (from netchild@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8NAavMc047543; Sat, 23 Sep 2006 10:36:57 GMT (envelope-from netchild) Message-Id: <200609231036.k8NAavMc047543@repoman.freebsd.org> From: Alexander Leidinger Date: Sat, 23 Sep 2006 10:36:57 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/compat/linux linux_misc.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Sep 2006 10:36:58 -0000 netchild 2006-09-23 10:36:57 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/compat/linux linux_misc.c Log: MFC rev. 1.187: - don't reboot() when feed with wrong parameters (and enough permissions) [1] - add support to power off the system [2] - check the linux magic values [3] Submitted by: Marcin Cieslak [1,2] Modelled after: linux man page of the reboot() syscall [3] Found by: LTP testcase "reboot02" [1] Tested with: LTP testcase "reboot02" [1,3] Approved by: re (hrs) Revision Changes Path 1.170.2.2 +38 -4 src/sys/compat/linux/linux_misc.c