From owner-cvs-src@FreeBSD.ORG Sun Aug 3 19:13:06 2003 Return-Path: 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 F385837B401; Sun, 3 Aug 2003 19:13:05 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A240E43F85; Sun, 3 Aug 2003 19:13:05 -0700 (PDT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h742D50U064203; Sun, 3 Aug 2003 19:13:05 -0700 (PDT) (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h742D5dc064202; Sun, 3 Aug 2003 19:13:05 -0700 (PDT) Message-Id: <200308040213.h742D5dc064202@repoman.freebsd.org> From: Robert Watson Date: Sun, 3 Aug 2003 19:13:05 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/sys acl.h src/sys/kern kern_acl.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 04 Aug 2003 02:13:06 -0000 rwatson 2003/08/03 19:13:05 PDT FreeBSD src repository Modified files: sys/sys acl.h sys/kern kern_acl.c Log: Move more ACL logic from the UFS code (ufs_acl.c) to the central POSIX.1e support routines in kern_acl.c: - Define ACL_OVERRIDE_MASK and ACL_PRESERVE_MASK centrally in acl.h: the mode bits that are (and aren't) stored in the ACL. - Add acl_posix1e_acl_to_mode(): given a POSIX.1e extended ACL, generate a compatibility mode (only the bits supported by the POSIX.1e ACL). - acl_posix1e_newfilemode(): Given a requested creation mode and default ACL, calculate the mode for the new file system object (only the bits supported by the POSIX.1e ACL). PR: 50148 Reported by: Ritz, Bruno Obtained from: TrustedBSD Project Revision Changes Path 1.43 +84 -1 src/sys/kern/kern_acl.c 1.26 +27 -5 src/sys/sys/acl.h