diff options
author | Nathan Scott <nathans@sgi.com> | 2002-04-10 01:05:49 +0000 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2002-04-10 01:05:49 +0000 |
commit | 4aeed15c7d519b9e00d5289379ce2cbaf84194e8 (patch) | |
tree | 923e2e13b899c8b4ec44b7f5ddb1ad5691e7fe74 /man | |
parent | f1e8855ace15f00078c11498ae8f221b840b281b (diff) | |
download | attr-4aeed15c7d519b9e00d5289379ce2cbaf84194e8.tar.gz |
man page updates from Andreas.
Diffstat (limited to 'man')
-rw-r--r-- | man/man2/listxattr.2 | 6 | ||||
-rw-r--r-- | man/man5/attr.5 | 62 |
2 files changed, 38 insertions, 30 deletions
diff --git a/man/man2/listxattr.2 b/man/man2/listxattr.2 index 3946833..7b70a01 100644 --- a/man/man2/listxattr.2 +++ b/man/man2/listxattr.2 @@ -38,6 +38,8 @@ of extended attribute names associated with the given .I path in the filesystem. The list is the set of (NULL-terminated) names, one after the other. +Names of extended attributes to which the calling process does not +have access will be omitted from the list. The length of the attribute name .I list is returned. @@ -70,10 +72,6 @@ An empty buffer of zero can be passed into these calls to return the current size of the list of extended attribute names, which can be used to estimate the size of a buffer which is sufficiently large to hold the list of names. -.PP -The interface is designed to allow guessing of initial buffer -sizes, and to enlarge buffers when the return value indicates -that the buffer provided was too small. .SH EXAMPLES The .I list diff --git a/man/man5/attr.5 b/man/man5/attr.5 index 501addb..b9b1603 100644 --- a/man/man5/attr.5 +++ b/man/man5/attr.5 @@ -29,6 +29,9 @@ Extended attributes are accessed as atomic objects. Reading retrieves the whole value of an attribute and stores it in a buffer. Writing replaces any previous value with the new value. .PP +Space consumed for extended attributes is counted towards the disk quotas +of the file owner and file group. +.PP Currently, support for extended attributes is implemented on Linux by the ext2, ext3 and XFS filesystem patches, which can be downloaded from .B http://acl.bestbits.at/ @@ -36,9 +39,8 @@ and .B http://oss.sgi.com/projects/xfs/ respectively. .SH EXTENDED ATTRIBUTE NAMESPACES -Attribute names are zero-terminated strings and typically have a short -(filesystem dependent) length. -The attribute name is always specified in the full +Attribute names are zero-terminated strings. +The attribute name is always specified in the fully qualified .IR namespace.attribute form, eg. .I user.mime_type @@ -50,33 +52,41 @@ attributes. These different classes exist for several reasons, e.g. the permissions and capabilities required for manipulating extended attributes of one namespace may differ to another. -They have also been used to distinguish filesystem-specific attribute -names from canonical, filesystem-independent attribute names. -.PP -The extended attribute namespace is always specified as the first -component of the name. -This greatly simplifies certain operations, and provides a consistent, -explicit interface for all operations. .PP -Extended +Currently the .I user -attributes may be assigned to files and directories for storing arbitrary -additional information such as the mime type, character set or encoding -of a file. -User attributes are subject to the same permissions as the contents of a file. -The file owner can decide who is allowed to read and/or set these attributes. -.PP -Extended +and .I system -attributes are used by the kernel to store system objects such as -Access Control Lists and Capabilities. -Read and write access permissions to system attributes -depend on the policy implemented for each system attribute implemented -in the kernel. +extended attribute classes are defined as described below. Additional +classes, such as attributes that are +accessible only to processes trusted by the kernel, may be added in the +future. +.SS Extended user attributes +Extended user attributes may be assigned to files and directories for +storing arbitrary additional information such as the mime type, +character set or encoding of a file. The access permissions for user +attributes are defined by the file permission bits. +.PP +The file permission bits of regular files and directories are +interpreted differently from the file permission bits of special files +and symbolic links. For regular files and directories the file +permission bits define access to the file's contents, while for special +files they define access to the device described by the special file. +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 -Additional types of extended attributes with different access permissions, -such as attributes that are accessible only to processes trusted by the -kernel, may be added in the future. +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 +.BR chmod (1) +manual page for an explanation of Sticky Directories). +.SS Extended system attributes +Extended system attributes are used by the kernel to store system +objects such as Access Control Lists and Capabilities. Read and write +access permissions to system attributes depend on the policy implemented +for each system attribute implemented in the kernel. .SH FILESYSTEM DIFFERENCES The kernel and the filesystem may place limits on the maximum number and size of extended attributes that can be associated with a file. |