Revision 3b38b32b45e7aac29c52a27b7c0de70c536cd62c authored by Edward Tomasz Napierala on 22 January 2010, 11:42:44 UTC, committed by Edward Tomasz Napierala on 22 January 2010, 11:42:44 UTC
Fix permission handling for extended attributes in ZFS. Without this change, ZFS uses SunOS Alternate Data Streams semantics - each EA has its own permissions, which are set at EA creation time and - unlike SunOS - invisible to the user and impossible to change. From the user point of view, it's just broken: sometimes access is granted when it shouldn't be, sometimes it's denied when it shouldn't be. This patch makes it behave just like UFS, i.e. depend on current file permissions. Also, it fixes returned error codes (ENOATTR instead of ENOENT) and makes listextattr(2) return 0 instead of EPERM where there is no EA directory (i.e. the file never had any EA). Tested by: cperciva
1 parent 27b85a8
File | Mode | Size |
---|---|---|
Makefile | -rw-r--r-- | 729 bytes |
blocks.c | -rw-r--r-- | 1.2 KB |
change.c | -rw-r--r-- | 2.6 KB |
chunk.c | -rw-r--r-- | 12.3 KB |
create_chunk.c | -rw-r--r-- | 6.2 KB |
disk.c | -rw-r--r-- | 8.7 KB |
libdisk.3 | -rw-r--r-- | 8.3 KB |
libdisk.h | -rw-r--r-- | 9.1 KB |
open_disk.c | -rw-r--r-- | 7.5 KB |
open_ia64_disk.c | -rw-r--r-- | 7.1 KB |
rules.c | -rw-r--r-- | 5.8 KB |
tst01.c | -rw-r--r-- | 8.6 KB |
write_amd64_disk.c | -rw-r--r-- | 4.6 KB |
write_arm_disk.c | -rw-r--r-- | 1.7 KB |
write_disk.c | -rw-r--r-- | 2.0 KB |
write_i386_disk.c | -rw-r--r-- | 4.7 KB |
write_ia64_disk.c | -rw-r--r-- | 12.5 KB |
write_pc98_disk.c | -rw-r--r-- | 4.2 KB |
write_powerpc_disk.c | -rw-r--r-- | 1.9 KB |
write_sparc64_disk.c | -rw-r--r-- | 2.7 KB |
Computing file changes ...