Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Linux Magazine: The source for advanced Linux know-how

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 241 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

attr



DESCRIPTION

       Extended attributes are name:value pairs associated perma­
       nently with files and directories, similar to the environ­
       ment  strings associated with a process.  An attribute may
       be defined or undefined.  If it is defined, its value  may
       be empty or non-empty.

       Extended   attributes   are   extensions   to  the  normal
       attributes which are associated with  all  inodes  in  the
       system  (i.e.  the  stat(2) data).  They are often used to
       provide additional functionality to  a  filesystem  -  for
       example,  additional security features such as Access Con­
       trol  Lists  (ACLs)  may  be  implemented  using  extended
       attributes.

       Users  with  search  access  to  a  file  or directory may
       retrieve a list of attribute names defined for  that  file
       or directory.

       Extended attributes are accessed as atomic objects.  Read­
       ing retrieves the whole value of an attribute  and  stores
       it  in a buffer.  Writing replaces any previous value with
       the new value.

       Space consumed for extended attributes is counted  towards
       the disk quotas of the file owner and file group.

       Currently,  support for extended attributes is implemented
       on Linux by the ext2, ext3  and  XFS  filesystem  patches,
       which  can  be downloaded from http://acl.bestbits.at/ and
       http://oss.sgi.com/projects/xfs/ respectively.


EXTENDED ATTRIBUTE NAMESPACES

       Attribute  names   are   zero-terminated   strings.    The
       attribute  name is always specified in the fully qualified
       namespace.attribute     form,     eg.      user.mime_type,
       trusted.md5sum, or system.posix_acl_access.

       The  namespace  mechanism  is  used  to  define  different
       classes of extended attributes.  These  different  classes
       exist  for several reasons, e.g. the permissions and capa­
       bilities required for manipulating extended attributes  of
       one namespace may differ to another.

       Currently the user, trusted, and system extended attribute
       classes are defined as described below. Additional classes
       may be added in the future.

   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

       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 chmod(1) manual page for an
       explanation of Sticky Directories).

   Trusted extended attributes
       Trusted extended attributes  are  visible  and  accessible
       only  to  processes that have the CAP_SYS_ADMIN capability
       (the super user usually has this capability).   Attributes
       in  this  class  are  used to implement mechanisms in user
       space (i.e., outside the kernel) which keep information in
       extended attributes to which ordinary processes should not
       have access.

   Extended system attributes
       Extended system attributes are used by the kernel to store
       system  objects such as Access Control Lists and Capabili­
       ties.   Read  and  write  access  permissions  to   system
       attributes  depend on the policy implemented for each sys­
       tem attribute implemented in the kernel.


FILESYSTEM DIFFERENCES

       The kernel and the filesystem may place limits on the max­
       imum  number  and  size of extended attributes that can be
       associated with a file.

       In the current ext2 and ext3  filesystem  implementations,
       all  extended  attributes  must fit on a single filesystem
       block (1024, 2048 or 4096 bytes, depending  on  the  block
       size  specified  when  the  filesystem  was created). This
       limit may be removed in a future version.

       In the XFS filesystem implementation, there is no  practi­
       cal  limit on the number of extended attributes associated
       with a file, and the algorithms  used  to  store  extended
       attribute  information on disk are scalable (stored either
       inline in the inode, as an extent, or in a B+ tree).


ADDITIONAL NOTES

       Since the filesystems on  which  extended  attributes  are
       stored  might also be used on architectures with a differ­
       ent byte order and machine word size, care should be taken
       to  store  attribute values in an architecture independent
       format.


AUTHORS

       Andreas Gruenbacher, <a.gruenbacher@computer.org> and  the
       SGI XFS development team, <linux-xfs@oss.sgi.com>.

  
Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.


Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
You can help in many different ways.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds