From owner-cvs-all@FreeBSD.ORG Fri May 7 08:33:18 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E19B916A4CE; Fri, 7 May 2004 08:33:18 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2DBC43D58; Fri, 7 May 2004 08:33:18 -0700 (PDT) (envelope-from csjp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i47FXIGe059986; Fri, 7 May 2004 08:33:18 -0700 (PDT) (envelope-from csjp@repoman.freebsd.org) Received: (from csjp@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i47FXIqo059984; Fri, 7 May 2004 08:33:18 -0700 (PDT) (envelope-from csjp) Message-Id: <200405071533.i47FXIqo059984@repoman.freebsd.org> From: "Christian S.J. Peron" Date: Fri, 7 May 2004 08:33:18 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/route route.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 May 2004 15:33:19 -0000 csjp 2004/05/07 08:33:18 PDT FreeBSD src repository Modified files: sbin/route route.c Log: Teach route(8) how to deal with root being in a prison. If prison root is allowed to create raw sockets, then they will be able to create routing sockets, too. However prison-root is not able to manipulate routing tables. So when route(8) attempts to write to a routing socket and recieves EPERM from the kernel, exit rather than moving on with execution. Approved by: bmilekic (mentor) Revision Changes Path 1.75 +4 -0 src/sbin/route/route.c