Skip to contentSkip to conversation

Is SIDs no longer used?

DISCUSSION Park Lee 2 participants 2 messages Jun 8, 2004 SELinux security module

lore
Share & tools
lore

Park Lee

author
#0 lore raw

Dear sir,

In <<Configuring the SELinux Policy>>, there was something about SIDs:

"In order to better encapsulate security contexts and to provide greater
efficiency, the policy enforcement code of SELinux typically handles security identifiers (SIDs) rather than security contexts."

But in <<Getting Started with SE Linux HOWTO: the new SE Linux>>, I saw the following:

"SIDs and PSIDs no longer used
SIDs (Security Identifiers) were used in the old SE Linux in the interface to the kernel (from userspace). PSIDs (Persistent SIDs) were used in the kernel code for mapping files to contexts for files and directories on disk. In the new SE Linux, the extended attributes contain the context so SIDs and PSIDs are no longer necessary."

Then, I want to ask: Is SIDs really no longer used? If it's true, What does the policy enforcement code of SELinux typically handle?

Thank you!

Respectfully yours,
Park Lee
2004-06-08

---------------------------------
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger

#1 lore raw
Quoted 3 lines · Park Lee

Then, I want to ask: Is SIDs really no longer used? If it's
true, What does the policy enforcement code of SELinux typically handle?

The kernel still uses SIDs internally, but it no longer exports its SIDs to userspace. Only security contexts are exported to userspace. However, the userspace AVC (in libselinux) provides its own SID mapping for userspace policy enforcers such as security-enhanced X and security-enhanced dbus. That SID mapping is private to each policy enforcer.

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.