From owner-freebsd-fs Mon Feb 25 22: 5:40 2002 Delivered-To: freebsd-fs@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 332F237B420 for ; Mon, 25 Feb 2002 22:05:25 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id B4120AE27F; Mon, 25 Feb 2002 22:05:25 -0800 (PST) Date: Mon, 25 Feb 2002 22:05:25 -0800 From: Alfred Perlstein To: Byron Servies Cc: freebsd-fs@freebsd.org Subject: Re: Retrieving a list of ACLs for a file Message-ID: <20020226060525.GF80761@elvis.mu.org> References: <20020225215526.J13918@pacang.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020225215526.J13918@pacang.com> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Byron Servies [020225 21:55] wrote: > Hi there! > > I am working on adding ACL support to the freebsd port of Legato > NetWorker. Everything appears to be straight forward, with the > exception of retrieving a complete list of the ACLs on a file. > > >From the acl_get manual page, it appears that there is no way > to retrieve a complete list, but that each ACL type must be > retrieved individually. My concern is that if new ACL types > are added, the backup will still succeed though the new ACLs > would not actually be backed up. > > Does anyone have any suggestions on a good way to retrieve > a complete list, or do I just have to hard code it? acl_gen_entry(3) specifically: If the value of entry_id is ACL_FIRST_ENTRY, then the function will return in entry_p a descriptor for the first ACL entry within acl. If a call is made to acl_get_entry() with entry_id set to ACL_NEXT_ENTRY when there has not been either an initial successful call to acl_get_entry(), or a previous successfull call to acl_create_entry(), acl_delete_entry(), acl_dup(), acl_from_text(), acl_get_fd(), acl_get_file(), acl_set_fd(), acl_set_file(), or acl_valid(), then the result is unspecified. Hopefully this helps. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message