diff options
author | Jan Vcelak <jvcelak@redhat.com> | 2010-07-30 16:14:55 -0500 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2010-07-30 16:14:55 -0500 |
commit | 0aac2d3d8804271eaca33f93650b04f1bd8b249c (patch) | |
tree | 475c86cc11cbd22d138687fe3136d1c8a6871a9c /etc/mock/fedora-14-sparc.cfg | |
parent | ca78692e0f1b3a0401db6f8e64a9bdd282229568 (diff) | |
download | mock-0aac2d3d8804271eaca33f93650b04f1bd8b249c.tar.gz mock-0aac2d3d8804271eaca33f93650b04f1bd8b249c.tar.xz mock-0aac2d3d8804271eaca33f93650b04f1bd8b249c.zip |
add selinux plugin
This patch adds an selinux plugin that sets up an environment with
selinux turned *off* in the build chroot. How does this work? From the
author's description:
It is done the same as the patch sent by Thomas Liu in bz 614440 does.
Actually, this proceeding was suggested by Dan Walsh in bz 573111.
1.) Fake /proc/filesystems is created in conf["cachedir"]. It includes the
same content as the same file in host environment, except line with selinuxfs.
This file is bind mounted into build environment.
2.) Option '--setopt=tsflags=nocontext' is added to yum commands. This is done
by wrapping mock.util.do with _selinuxDoYum in "preyum" hook. This function
just adds the option and passes the command to original mock.util.do function.
The wrapping is removed in "postyum" hook.
I didn't find cleaner method, without modifying main code.
Signed-off-by: Clark Williams <williams@redhat.com>
Diffstat (limited to 'etc/mock/fedora-14-sparc.cfg')
0 files changed, 0 insertions, 0 deletions