Skip to contentSkip to conversation

7/11 Ext2/3 Updates: Extended attributes, ACL, etc.

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 7/11 Ext2/3 Updates: Extended attributes, ACL, etc.

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

 fs/Kconfig                |    6 
 fs/Makefile               |    3 
 fs/posix_acl.c            |  423 ++++++++++++++++++++++++++++++++++++++++++++++
 include/linux/posix_acl.h |   87 +++++++++
 4 files changed, 518 insertions(+), 1 deletion(-)
fs/Kconfig +6 -0
diff -Nru a/fs/Kconfig b/fs/Kconfig
@@ -1434,6 +1434,12 @@
 	default m if EXT2_FS=m || EXT3_FS=m
 	default y if EXT2_FS=y || EXT3_FS=y
 
+# Posix ACL utility routines (for now, only ext2/ext3)
+config FS_POSIX_ACL
+	bool
+	depends on EXT2_FS_POSIX_ACL || EXT3_FS_POSIX_ACL
+	default y
+
 menu "Partition Types"
 
 source "fs/partitions/Kconfig"
fs/Makefile +2 -1
diff -Nru a/fs/Makefile b/fs/Makefile
@@ -6,7 +6,7 @@
 # 
 
 export-objs :=	open.o dcache.o buffer.o bio.o inode.o dquot.o mpage.o aio.o \
-                fcntl.o read_write.o dcookies.o fcblist.o mbcache.o
+                fcntl.o read_write.o dcookies.o fcblist.o mbcache.o posix_acl.o
 
 obj-y :=	open.o read_write.o devices.o file_table.o buffer.o \
 		bio.o super.o block_dev.o char_dev.o stat.o exec.o pipe.o \
@@ -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 +423 -0

423 lines not on this page · raw message

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

87 lines not on this page · raw message