SCIENTIFIC-LINUX-USERS Archives

October 2011

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Todd And Margo Chester <[log in to unmask]>
Reply To:
Todd And Margo Chester <[log in to unmask]>
Date:
Sun, 23 Oct 2011 20:35:12 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
Hi All,

Sl 6.1 x64

Is there soemn reason why selinux is only letting me modify
the fcontext on one directory (home/CDs) only?

Many thanks,
-T


# /usr/sbin/semanage fcontext -a -t samba_share_t "/home/OurStuff(/.*)?"
# /usr/sbin/semanage fcontext -a -t samba_share_t "/home/CDs(/.*)?"
# /usr/sbin/semanage fcontext -a -t samba_share_t "/mnt(/.*)?"
# /usr/sbin/semanage fcontext -a -t samba_share_t "/export/netlogon(/.*)?"

# /sbin/restorecon -R -v /home/OurStuff
# /sbin/restorecon -R -v /home/CDs
# /sbin/restorecon -R -v /mnt
# /sbin/restorecon -R -v /export/netlogon

# ls -Zd /home/CDs
drwxrwxrwx+ tony users system_u:object_r:samba_share_t:s0 /home/CDs
# ls -Zd /home/OurStuff
drwxrw-rw-. tony users unconfined_u:object_r:user_home_dir_t:s0 
/home/OurStuff
# ls -Zd /mnt
drwxrwsrwx. tony users system_u:object_r:mnt_t:s0       /mnt
# ls -Zd /export/netlogon
drwxr-xr-x. root root unconfined_u:object_r:default_t:s0 /export/netlogon

ATOM RSS1 RSS2