Subversion changes SELinux Context Type

All general questions related to SELinux

Moderator: xeont

Subversion changes SELinux Context Type

Postby DonJuan » Tue Aug 08, 2017 2:50 pm

Checking out a new file from a subversion repository (via svn up) changes the context type to unlabeled_t

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.
DonJuan
 
Posts: 1
Joined: Tue Aug 08, 2017 2:26 pm

Return to General Questions

Who is online

Users browsing this forum: No registered users and 1 guest
cron