From owner-freebsd-fs@FreeBSD.ORG Wed Apr 16 03:48:55 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE8AC106564A for ; Wed, 16 Apr 2008 03:48:55 +0000 (UTC) (envelope-from rtfm.xx@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.179]) by mx1.freebsd.org (Postfix) with ESMTP id B408E8FC19 for ; Wed, 16 Apr 2008 03:48:55 +0000 (UTC) (envelope-from rtfm.xx@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so3243056waf.3 for ; Tue, 15 Apr 2008 20:48:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; bh=7pwMmBuY2k9OoilAWiC3CzeSf7w/eTAkw/IWD6UjY5w=; b=pQdoVX4cYN4RXXbXiGmHtPj93+/er4e0Y4y1JwUDnMlxuMCMRkw5YWD0O0uFDzpdqJKfWN3S/NnhIUIAcAJ8jmccvjnfsOwxu88qF5Qkm9XdfqYYfWitlczhuaTY6AnHJJ35yTcuUTBZ+NoiZhneq6NmqQXqRLL+92NBcgp04fI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=J4tqvZyMcBsMahL6eu/ybXAmydDED1qRUdXm1asxH6pp0SPCkAXCsLwg+FL10d8CDAuK98sjXxLNbyyhTnNJD2LdjxzjJuDu2OJswng4Oe3azCZH82VAtHDVwXVYKXymT4haT0Pq/Jy9eT0NcKee7v6mBHD8KDQhJ+8iHj9eAAE= Received: by 10.114.171.1 with SMTP id t1mr9062841wae.83.1208316052161; Tue, 15 Apr 2008 20:20:52 -0700 (PDT) Received: by 10.114.74.15 with HTTP; Tue, 15 Apr 2008 20:20:52 -0700 (PDT) Message-ID: <15d3bc360804152020y4d14adaay398a52cf52b0be12@mail.gmail.com> Date: Tue, 15 Apr 2008 20:20:52 -0700 From: "Joshua Piccari" Sender: rtfm.xx@gmail.com To: freebsd-fs@freebsd.org MIME-Version: 1.0 X-Google-Sender-Auth: f225fc136e218516 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: A little help understanding UFS 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: Wed, 16 Apr 2008 03:48:55 -0000 Hi all, I have been using FreeBSD since about 8th grade, and have worked my way from the outer edge of shell scripting to now a growing interest in the kernel and kernel modules. I am looking into modifying the sources for the UFS module. I would really like to prevent users from being able to view files that they do not have permission to read. I have been googling as much as I can, but I can't find the info I'm looking for. >From starring at the source for a good two hours, I was able to figure out how to mod ufs_lookup.c to make the OS act like a file doesn't exist... but this isn't the intended result... I have been looking at ufs_readdir() and was wondering if A) this function can help me successfully hide files that a user doesn't have read permissions to, and B) if this is the function to go after, can someone help me understand this function? thanks in advance. -- ~ joshua