Skip to content

Commit

Permalink
mrepo: add default level to the SELinux security context
Browse files Browse the repository at this point in the history
In RHEL6 mount became more strict about the mount options and no longer
accepts security contexts without MLS/MCS level specified.

This change is, however, backwards compatible and mrepo would still
continue to work on RHEL5 and earlier.
  • Loading branch information
zyv committed Jul 27, 2011
1 parent 66f63e0 commit b838e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrepo
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ class Dist:
extra_opts = ''
mount_cmd = cf.cmd['mount']
if readfile('/selinux/enforce') == '1':
opts = opts + ',context=system_u:object_r:httpd_sys_content_t'
opts = opts + ',context=system_u:object_r:httpd_sys_content_t:s0'
for iso in self.isos:
if cf.shareiso:
symlink(iso, os.path.join(self.dir, 'iso'))
Expand Down

0 comments on commit b838e12

Please sign in to comment.