From owner-freebsd-current Thu Nov 7 19:17:42 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8B1937B401 for ; Thu, 7 Nov 2002 19:17:40 -0800 (PST) Received: from hotmail.com (f28.pav0.hotmail.com [64.4.32.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DD7A43E6E for ; Thu, 7 Nov 2002 19:17:40 -0800 (PST) (envelope-from oykai@msn.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 7 Nov 2002 19:17:40 -0800 Received: from 210.74.136.33 by pv0fd.pav0.hotmail.msn.com with HTTP; Fri, 08 Nov 2002 03:17:39 GMT X-Originating-IP: [210.74.136.33] From: "kai ouyang" To: Current@FreeBSD.org Subject: a queston about ACL acl_type_t Date: Fri, 08 Nov 2002 11:17:39 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 08 Nov 2002 03:17:40.0289 (UTC) FILETIME=[65253B10:01C286D5] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I am trying to understand the ACL implementation in FreeBSD-Current. I have a question about ACL. in "acl.h", there are some acl_type_t value macro: /* * Possible valid values for acl_type_t arguments. */ #define ACL_TYPE_ACCESS 0x00000000 #define ACL_TYPE_DEFAULT 0x00000001 #define ACL_TYPE_AFS 0x00000002 #define ACL_TYPE_CODA 0x00000003 #define ACL_TYPE_NTFS 0x00000004 #define ACL_TYPE_NWFS 0x00000005 But I am not sure what's means. in the 'setfacl' source, I found the usage: If we want to control a directory, acl[ACL_TYPE_DEFAULT] = acl_get_file(filename, ACL_TYPE_DEFAULT); if we want to sontrol a file, acl[DEFAULT_ACL] = NULL; Why? What's the difference among those macros? Why must a directory object reserve two acl_t_structs, and a file only need one? Thank you! Best Regards Ouyang Kai _________________________________________________________________ Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message