Skip to contentSkip to conversation

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

PATCH New [email protected] 1 participant 1 message Oct 29, 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/Config.in              |    5 
fs/Makefile               |    3 
fs/posix_acl.c            |  423 ++++++++++++++++++++++++++++++++++++++++++++++
include/linux/posix_acl.h |   87 +++++++++
4 files changed, 517 insertions(+), 1 deletion(-)
fs/Config.in +5 -0
diff -Nru a/fs/Config.in b/fs/Config.in
@@ -198,6 +198,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 +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 mbcache.o
+                fcntl.o read_write.o dcookies.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