diff options
Diffstat (limited to 'src/py-libs/backend.py')
-rw-r--r-- | src/py-libs/backend.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/py-libs/backend.py b/src/py-libs/backend.py index 192104c..b0e7f1a 100644 --- a/src/py-libs/backend.py +++ b/src/py-libs/backend.py @@ -139,9 +139,6 @@ class Root(object): # --> /etc/ is no longer 02775 (new privs model) # --> no /etc/yum.conf symlink (F7 and above) - self.root_log.debug("elevating privs") - self.uidManager.becomeUser(0) - # create our base directory heirarchy mock.util.mkdirIfAbsent(self.cachedir) mock.util.mkdirIfAbsent(self.basedir) @@ -447,6 +444,7 @@ class Root(object): self.doChroot('/usr/sbin/userdel -r %s' % self.chrootuser, raiseExc=False) self.doChroot('/usr/sbin/groupdel %s' % self.chrootgroup, raiseExc=False) self.doChroot('/usr/sbin/useradd -m -u %s -d %s %s' % (self.chrootuid, self.homedir, self.chrootuser), raiseExc=True) + self.doChroot("perl -p -i -e 's/^(%s:)!!/$1/;' /etc/passwd" % (self.chrootuser), raiseExc=True) @traceLog(moduleLog) def _resetLogging(self): |