All of lore.kernel.org
 help / color / mirror / Atom feed
* User home directory creation with useradd (rhbz#217441)
@ 2006-12-01 20:08 James Antill
  2006-12-01 20:22 ` Karl MacMillan
  2006-12-01 20:47 ` Linda Knippers
  0 siblings, 2 replies; 17+ messages in thread
From: James Antill @ 2006-12-01 20:08 UTC (permalink / raw)
  To: selinux

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


 As some of you know, there's an open BZ about the fact that in a
strict/MLS environment useradd doesn't create the user's homedir with
the correct context[1].
 The problem is that matchpathcon() needs semanage to have run, so we
know what SELinux user the unix user is associated with, but that runs
separately and after useradd. The four obvious solutions are:

1. Have an option for useradd to call semanage to add the selinux user,
and then do the restorecon.

2. Have semanage do the equivalent of a restorecon when doing an
add/modify (or just add) of SELinux user information.

3. Have some kind of wrapper that does:
	i. useradd
	ii. semanage
	iii. restorecon

4. Document that you need to call the list of programs in #3.

 Does anyone have comments on which of the above they like/hate?


[1] http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=217441

-- 
James Antill <jantill@redhat.com>

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

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

end of thread, other threads:[~2006-12-05 15:53 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-01 20:08 User home directory creation with useradd (rhbz#217441) James Antill
2006-12-01 20:22 ` Karl MacMillan
2006-12-04  2:39   ` David O'Brien
2006-12-04 13:49     ` Karl MacMillan
2006-12-04 23:38       ` David O'Brien
2006-12-01 20:47 ` Linda Knippers
2006-12-02  0:21   ` Russell Coker
2006-12-02  3:20     ` Joshua Brindle
2006-12-02  4:27       ` Russell Coker
2006-12-02  5:00         ` Joshua Brindle
2006-12-02 19:21           ` Linda Knippers
2006-12-02 19:29             ` Joshua Brindle
2006-12-05  8:42               ` Russell Coker
2006-12-02 23:08             ` Russell Coker
2006-12-04 17:43             ` Casey Schaufler
2006-12-04 18:10               ` Karl MacMillan
2006-12-04 19:34                 ` Casey Schaufler

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.