Skip to contentSkip to conversation

Questions about extended attributes

DISCUSSION Park Lee 2 participants 2 messages Feb 14, 2004 – Feb 17, 2004 SELinux security module

lore
Share & tools
lore

Park Lee

author
#0 lore raw

Dear sir,
What's the difference between extended attributes for file system and the old method of using persistent labeling mapping for persistent files and directories? Is it still using persistent security identifiers (PSIDs) in
extended attributes?
Where can I get more information about extended attributes for file system?
Thank you

     Yours,
     Park Lee
     2004-2-15 

---------------------------------
Do You Yahoo!?
完全免费的雅虎电邮,马上注册获赠额外60兆网络存储空间

#1 lore raw
Quoted 8 lines · Park Lee

Dear sir,
What's the difference between extended attributes for file system and
the old method of using persistent labeling mapping for persistent files and directories?
Is it still using persistent security identifiers (PSIDs) in
extended attributes?
Where can I get more information about extended attributes for file
system?

SELinux has gone through three phases in its approach to labeling files:
1) original SELinux kernel patch - SELinux stored an integer PSID in a spare field of the on-disk ext2 inode and maintained a mapping from PSIDs to contexts in regular files stored under a /...security directory on each filesystem.
2) initial LSM-based SELinux - Since LSM did not provide any filesystem-specific hooks, the SELinux persistent label mapping was changed to maintain the inode-to-PSID mapping as a regular file under the /...security directory rather than using a spare field in the on-disk inode. This allowed SELinux to support most filesystem types but at a cost in performance and consistency.
3) Current SELinux - As part of preparing SELinux for mainline integration, SELinux was reworked to use the native Linux extended attribute mechanism for storing file security contexts. PSIDs are no longer used at all, nor are there any /...security mapping files. See
http://acl.bestbits.at for information about Linux extended attributes. Extended attribute support is included in 2.6, and patches exist for the 2.4 series.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.