diff options
-rw-r--r-- | doc/CHANGES | 3 | ||||
-rw-r--r-- | man/man5/attr.5 | 8 | ||||
-rw-r--r-- | test/attr.test | 20 |
3 files changed, 19 insertions, 12 deletions
diff --git a/doc/CHANGES b/doc/CHANGES index 19968f0..f1998fe 100644 --- a/doc/CHANGES +++ b/doc/CHANGES @@ -1,5 +1,8 @@ - Fix: the m68k architecture is identified by __mc68000__ rather than by __m68k__. + - Correction in the attr(5) manual page. + - Add test cases for empty EA values, and for a bad + ACL extended attribute name (there were bugs with these). attr-2.0.11 (04 September 2002) - Make the test/run script return a proper status code. diff --git a/man/man5/attr.5 b/man/man5/attr.5 index b9b1603..f1d45d3 100644 --- a/man/man5/attr.5 +++ b/man/man5/attr.5 @@ -76,10 +76,10 @@ The file permissions of symbolic links are not used in access checks. These differences would allow users to consume filesystem resources in a way not controllable by disk quotas for group or world writable special files and directories. .PP -For this reason, extended user attributes -are disallowed for special files, and access to extended user -attributes is restricted to the owner or users with appropriate -capabilities for directories with the sticky bit set (see the +For this reason, extended user attributes are disallowed for symbolic links and +special files, and access to extended user attributes is restricted to the +owner and to users with appropriate capabilities for directories with the +sticky bit set (see the .BR chmod (1) manual page for an explanation of Sticky Directories). .SS Extended system attributes diff --git a/test/attr.test b/test/attr.test index fae2e20..91c6874 100644 --- a/test/attr.test +++ b/test/attr.test @@ -15,6 +15,11 @@ $ setfattr -n user -v value f setfattr: f: Operation not supported $ setfattr -n user. -v value f setfattr: f: Invalid argument +$ setfattr -n user.name f +$ getfattr -d f +# file: f +user.name + $ setfattr -n user.n -v value f $ rm f ! === size checks, for an ext2/ext3 file system with a block size of 1K @@ -182,19 +187,18 @@ $ rm f g h $ touch f $ ln -s f l $ setfattr -n user.filename -v f l +$ setfattr -n user.filename -v l l $ setfattr -h -n user.filename -v l l +setfattr: l: Operation not permitted $ getfattr -d f l # file: f -user.filename="f" - -# file: l -user.filename="f" - -$ getfattr -h -d f l -# file: f -user.filename="f" +user.filename="l" # file: l user.filename="l" +! Some POSIX ACL tests... +$ setfattr -n system.posix_acl_access -v 0sAgAAAAEABgD/////AgAGAAEAAAAEAAQA/////xAABgD/////IAAEAP////8= f +$ setfattr -n system.posix_acl_accessFOO -v 0sAgAAAAEABgD/////AgAGAAEAAAAEAAQA/////xAABgD/////IAAEAP////8= f +setfattr: f: Invalid argument $ rm f l |