Skip to contentSkip to conversation

Posix ACL support for ext 2/3 filesystems

PATCH New [email protected] 1 participant 1 message Oct 17, 2002 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 Posix ACL support for ext 2/3 filesystems

Linus, please apply. I've addressed Christoph's concerns regarding the set/get_posix_acl methods in the inode structure by ripping them out entirely. We'll just deal with using xattr interface (regardless of the extra parsing and unparsing costs) for the NFS server patches later; I doubt those will be ported in time before the feature freeze anyway, and getting the NFS server code to respect ACL's is not strictly necessary in any case.

This patch (as well as the following two) implements core ACL support. This set of convenience functions is used by the ext2/3 filesystem, and may be useful to other filesystems that wish to use "struct posix_acl" as their internal representation of acl's. User mode tools which support this interface may be found at http://acl.bestbits.at

These patches require that the extended attribute patches be applied first.

- Ted

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:

#	           ChangeSet	1.797   -> 1.798  
#	         fs/Makefile	1.42    -> 1.43   
#	        fs/Config.in	1.42    -> 1.43   
#	               (new)	        -> 1.1     fs/posix_acl.c 
#	               (new)	        -> 1.1     include/linux/posix_acl.h

#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/10/16 [email protected] 1.798
# Port of 0.8.50 acl patch to 2.5
#
# This patch (as well as the following two) implements core ACL support. # This set of convenience functions is used by the ext2/3 filesystem,

# and may be useful to other filesystems that wish to use "struct posix_acl"
# as their internal representation of acl's.  User mode tools which
# support this interface may be found at http://acl.bestbits.at
# --------------------------------------------
#
diff -Nru a/fs/Config.in b/fs/Config.in
--- a/fs/Config.in	Wed Oct 16 22:54:22 2002
+++ b/fs/Config.in	Wed Oct 16 22:54:22 2002
@@ -193,6 +193,11 @@
    fi
 fi

+# Posix ACL utility routines (for now, only ext2/ext3)
+if [ "$CONFIG_EXT2_FS_POSIX_ACL" = "y" -o "$CONFIG_EXT3_FS_POSIX_ACL" = "y" ]; then
+ define_bool CONFIG_FS_POSIX_ACL y
+fi
+
mainmenu_option next_comment
comment 'Partition Types'
source fs/partitions/Config.in

fs/Makefile +1 -0
diff -Nru a/fs/Makefile b/fs/Makefile
@@ -31,6 +31,7 @@
 obj-$(CONFIG_BINFMT_ELF)	+= binfmt_elf.o
 
 obj-$(CONFIG_FS_MBCACHE)	+= mbcache.o
+obj-$(CONFIG_FS_POSIX_ACL)	+= posix_acl.o
 
 obj-$(CONFIG_QUOTA)		+= dquot.o
 obj-$(CONFIG_QFMT_V1)		+= quota_v1.o
fs/posix_acl.c new file +412 -0

412 lines not on this page · raw message

include/linux/posix_acl.h new file +87 -0

87 lines not on this page · raw message