The following commands illustrate the behaviour:
- Code: Select all
/srv/_init> chcon -t samba_share_t .
/srv/_init> touch foo bar
/srv/_init> chcon -t httpd_sys_rw_content_t foo
/srv/_init> getfattr -dm - foo bar
# file: foo
security.selinux="unconfined_u:object_r:httpd_sys_rw_content_t:s0"
# file: bar
security.selinux="unconfined_u:object_r:samba_share_t:s0"
/srv/_init> svn add foo bar
/srv/_init> svn ci -m "Only a Test" foo bar
/srv/_init> rm foo bar
/srv/_init> svn up foo bar
/srv/_init> getfattr -dm - foo bar
# file: foo
security.selinux="unconfined_u:object_r:unlabeled_t:s0"
# file: bar
security.selinux="unconfined_u:object_r:unlabeled_t:s0"
Why is the type changed to unlabeled_t.
What has to be done to get the context type of the directory (samba_share_t)?
Access to the subversion server is done via https.
Apache is running on the subversion server machine.