From: Michael Reilly <michaelr@cisco.com>
To: selinux@tycho.nsa.gov
Subject: setfiles and /home labeling
Date: Wed, 15 Oct 2003 16:01:09 -0700 [thread overview]
Message-ID: <20031015160109.7fbdbb12.michaelr@cisco.com> (raw)
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.
next reply other threads:[~2003-10-15 23:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-15 23:01 Michael Reilly [this message]
2003-10-16 1:30 ` setfiles and /home labeling 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031015160109.7fbdbb12.michaelr@cisco.com \
--to=michaelr@cisco.com \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.