From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 24 08:40:33 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2AADE1065674 for ; Sun, 24 Jul 2011 08:40:33 +0000 (UTC) (envelope-from exorcistkiller@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id 0A2318FC15 for ; Sun, 24 Jul 2011 08:40:32 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QkuEi-0005ZB-7E for freebsd-hackers@freebsd.org; Sun, 24 Jul 2011 01:40:32 -0700 Date: Sun, 24 Jul 2011 01:40:32 -0700 (PDT) From: exorcistkiller To: freebsd-hackers@freebsd.org Message-ID: <1311496832217-4627557.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Add setacl system call? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jul 2011 08:40:33 -0000 Hi, I'm working on a course project in which I need to add 3 system calls. One of which is setacl(char *name, int type, int idnum, int perms), which set acl for a file specified by name. I used newfs as in ftp://ftp.tw.freebsd.org/pub/FreeBSD/FreeBSD-current/src/sbin/newfs/ to make this new filesystem, named myfs (which really is UFS2) and mounted it. My question is: 1) where to start with? 2) Is this filesystem actually a userland UFS and I can use functions in libufs(3)? 3) What about functions in ufs_acl.c? Should the acls be stored on the extended attributes blocks? Does FreeBSD 8.2 support it? I know I'm asking stupid questions, but a small hint might help me a lot. Thank you so much.. -- View this message in context: http://freebsd.1045724.n5.nabble.com/Add-setacl-system-call-tp4627557p4627557.html Sent from the freebsd-hackers mailing list archive at Nabble.com.