From owner-freebsd-fs@FreeBSD.ORG Fri Oct 21 08:33:45 2005 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F51616A41F for ; Fri, 21 Oct 2005 08:33:45 +0000 (GMT) (envelope-from rebehn@ant.uni-bremen.de) Received: from antsrv1.ant.uni-bremen.de (antsrv1.ant.uni-bremen.de [134.102.176.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB23343D46 for ; Fri, 21 Oct 2005 08:33:44 +0000 (GMT) (envelope-from rebehn@ant.uni-bremen.de) Received: from bremerhaven.ant.uni-bremen.de ([134.102.176.10]) by antsrv1.ant.uni-bremen.de with esmtp (Exim 4.54 (FreeBSD)) id 1ESsLO-000P0Q-Tm; Fri, 21 Oct 2005 10:33:42 +0200 Message-ID: <4358A7E6.2080708@ant.uni-bremen.de> Date: Fri, 21 Oct 2005 10:33:42 +0200 From: Heinrich Rebehn User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050831 Debian/1.7.8-1sarge2 X-Accept-Language: en MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Help needed for hacking the acl mask X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2005 08:33:45 -0000 Hi all, Since we do need usable acls here at work, i decided to go for a quick and dirty hack. Can someone point me to the code location(s) where the acl mask is overwritten? I already found sys/kern/kern_acl.c and changed it so that the mask is ORed with the create mode. This works for newly created files,regardless of the umask setting. However, chmod g-w still resets the write bit of the acl mask. I thought this was handled in lib/libc/posix1e/acl_calc_mask.c, but it does not seem to be called by chmod(1). Some questions: - Where do i have to look further? - If i make changes to libc, do i have to do a "make installworld" or will a "make install" in lib/libc be enough? - Is there a tutorial on debugging/walking through libc? Thanks for any hints, Heinrich -- Heinrich Rebehn University of Bremen Physics / Electrical and Electronics Engineering - Department of Telecommunications - Phone : +49/421/218-4664 Fax : -3341