All of lore.kernel.org
 help / color / mirror / Atom feed
* getfilecon() and friends in libselinux
@ 2004-12-08 17:13 Joshua Brindle
  2004-12-08 17:20 ` Stephen Smalley
  0 siblings, 1 reply; 4+ messages in thread
From: Joshua Brindle @ 2004-12-08 17:13 UTC (permalink / raw)
  To: selinux

Some applications in setools, namely findcon, replcon and indexcon walk 
the filesystem and get the file context off files. Previously it was 
fairly known what filesystems supported labeling so they were defined 
during the build process but now that other filesystems (reiser, jfs and 
tmpfs) support labeling but aren't necessarilly widespread we can't 
reliably define the supported filesystems during the build process and 
expect it to work across systems.

The idea is to iterate the filesystem mount points and do a getfilecon() 
or similar on a file in it, then examine the error code returned to 
decide if the filesystem supports xattr and also supports the security 
namespace. Is this a stable API to rely on for this? Will the error 
codes remain stable?

Further, if there is ever support for contexts via psids or something 
that isn't xattr will getfilecon() also be a supported method for 
accessing those?

Joshua Brindle
Tresys Technology

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-12-08 20:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-08 17:13 getfilecon() and friends in libselinux Joshua Brindle
2004-12-08 17:20 ` Stephen Smalley
2004-12-08 19:36   ` Casey Schaufler
2004-12-08 20:17     ` Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.