All of lore.kernel.org
 help / color / mirror / Atom feed
* setfiles and /home labeling
@ 2003-10-15 23:01 Michael Reilly
  2003-10-16  1:30 ` Russell Coker
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Michael Reilly @ 2003-10-15 23:01 UTC (permalink / raw)
  To: selinux

I know I am missing something.  These are all of the lines from
file_contexts which reference the /home directories.  Notice the two lines
which reference /home/michaelr.  After running make relabel /home/michaelr
is labeled system_u:object_r:user_home_dir_t instead of
system_u:object_r:staff_home_dir_t and all of the files in /home/michaelr
and below (except the files special cased like .ssh, etc.) are labeled
system_u:object_r:user_home_t.

Why are the two lines for /home/michaelr being ignored?  What am I doing
wrong?

Thanks,

michael
# Ordinary user home directories.
/home				system_u:object_r:home_root_t
/home/[^/]+	-d		system_u:object_r:user_home_dir_t
/home/[^/]+/.+			system_u:object_r:user_home_t
# Other staff home directories, replace "jadmin" with appropriate name
/home/michaelr/(/.*)?		system_u:object_r:staff_home_t
/home/michaelr			system_u:object_r:staff_home_dir_t
/home/\.\.\.security(/.*)?	system_u:object_r:file_labels_t
/home/lost\+found(/.*)?		system_u:object_r:lost_found_t
/home/[^/]+/\.gnupg(/.+)?	system_u:object_r:user_gpg_secret_t
/home/[^/]+/\.netscape(/.*)?	system_u:object_r:user_netscape_rw_t
/home/[^/]+/\.mozilla(/.*)?	system_u:object_r:user_netscape_rw_t
/root/\.ssh(/.*)?		system_u:object_r:staff_home_ssh_t
/home/[^/]+/\.ssh(/.*)?		system_u:object_r:user_home_ssh_t
/home/michaelr/\.ssh(/.*)?	system_u:object_r:staff_home_ssh_t
/home/[^/]+/\.vmware(/.*)?	system_u:object_r:vmware_user_file_t
/home/[^/]+/\vmware(/.*)?       system_u:object_r:vmware_user_file_t
/home/[^/]+/\vmware[^/]*/.*\.cfg    system_u:object_r:vmware_user_conf_t
/home/[^/]+/\.Xauthority.*	system_u:object_r:user_home_xauth_t


-- 
---- ---- ----
Michael Reilly    michaelr@cisco.com
    Cisco Systems, Santa Cruz, CA

--
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] 6+ messages in thread

end of thread, other threads:[~2003-10-16 12:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-15 23:01 setfiles and /home labeling Michael Reilly
2003-10-16  1:30 ` Russell Coker
2003-10-16  1:45   ` Michael Reilly
2003-10-16  2:12 ` Diyab
2003-10-16  5:35   ` Michael Reilly
2003-10-16 12:32 ` 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.