All of lore.kernel.org
 help / color / mirror / Atom feed
* preserving user-set contexts
@ 2004-04-23 20:37 Colin Walters
  2004-04-26 14:30 ` Stephen Smalley
  0 siblings, 1 reply; 8+ messages in thread
From: Colin Walters @ 2004-04-23 20:37 UTC (permalink / raw)
  To: SELinux; +Cc: sds

[-- Attachment #1: Type: text/plain, Size: 1036 bytes --]

Hi,

Often I manually change file contexts; for example, I create a toplevel
/build directory where I store random binary builds I create.  Right now
I just use staff_home_t so my regular user can access it.  However, if I
was ever to do a 'make relabel', all of those contexts would get blown
away and reset to default_t.

What I think would be nice is if we had chcon set another extended
attribute that marked the file as having its context manually set.  Then
we modify setfiles to ignore files which have this extended attribute by
default.  That way I could use 'make relabel' to fix system contexts,
and leave my customizations intact.

Probably this would involve a libselinux API addition for setfilecon,
perhaps setfilecon_user.

Is this desirable?  Does it seem like the right approahc?  One question
is - which namespace to put it in?  user.?  system.?  If we allow
regular users to relabel (as we already do for files like
httpd_user_script_exec_t) then we can only put it in the user.
namespace.



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2004-05-03  6:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-23 20:37 preserving user-set contexts Colin Walters
2004-04-26 14:30 ` Stephen Smalley
2004-04-28  1:44   ` Colin Walters
2004-04-28  4:05     ` Joshua Brindle
2004-04-28 12:09       ` Stephen Smalley
2004-04-28 11:49     ` Stephen Smalley
2004-04-28 13:13       ` Colin Walters
2004-05-03  6:32         ` kris-selinux

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.