From owner-cvs-all@FreeBSD.ORG Thu Feb 14 20:57:38 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 802A416A418; Thu, 14 Feb 2008 20:57:38 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 85C4F13C4D5; Thu, 14 Feb 2008 20:57:38 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1EKvcbP033050; Thu, 14 Feb 2008 20:57:38 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1EKvcNd033049; Thu, 14 Feb 2008 20:57:38 GMT (envelope-from rwatson) Message-Id: <200802142057.m1EKvcNd033049@repoman.freebsd.org> From: Robert Watson Date: Thu, 14 Feb 2008 20:57:38 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/tools/regression/security/open_to_operation Makefile open_to_operation.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 14 Feb 2008 20:57:38 -0000 rwatson 2008-02-14 20:57:38 UTC FreeBSD src repository Added files: tools/regression/security/open_to_operation Makefile open_to_operation.c Log: Add open_to_operation, a security regression test that opens files with various open flags and then tests various operations to make sure that they are properly constrained by open flags. Various I/O mechansms are tried, including aio if compiled into the kernel or loaded as a module. There's more to be done here but it's a useful start, running about 220 individual tests. This is in support of FreeBSD-SA-08:03.sendfile. Revision Changes Path 1.1 +7 -0 src/tools/regression/security/open_to_operation/Makefile (new) 1.1 +1256 -0 src/tools/regression/security/open_to_operation/open_to_operation.c (new)