]> git.hungrycats.org Git - linux/commit
[PATCH] generic acl support for ->permission
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Oct 2004 01:05:13 +0000 (18:05 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 19 Oct 2004 01:05:13 +0000 (18:05 -0700)
commit42017c2e0ae391565af3c894020379194f668d54
tree95f6ea34cede97cc2170f2dbe075d73987180834
parent98291a7763a8b3db9135b9625de483e2821c6c96
[PATCH] generic acl support for ->permission

Currently we every filesystem with Posix ACLs has it's own reimplemtation
of the generic permission checking code with additonal ACL support.  This
patch

- adds an optional callback to vfs_permission that filesystems can use
  for ACL support (and renames it to generic_permission because the old
  name was wrong - it wasn't like the other vfs_* functions at all)

- uses it in ext2, ext3 and jfs.  XFS will follow a little later as it's
  permission checking is burried under several layers of abstraction.

From: Dave Kleikamp <shaggy@austin.ibm.com>

  jfs doesn't currently set MS_POSIXACL (it doesn't require the acl mount
  option), so this test would fail here.  The patch below will set it.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
14 files changed:
fs/cifs/CHANGES
fs/cifs/cifsfs.c
fs/exec.c
fs/ext2/acl.c
fs/ext3/acl.c
fs/hfs/inode.c
fs/hfsplus/inode.c
fs/hostfs/hostfs_kern.c
fs/jfs/acl.c
fs/jfs/super.c
fs/namei.c
fs/nfs/dir.c
fs/proc/base.c
include/linux/fs.h