[reprotest] 01/01: main: When dropping privs, make sure the user can still move in the root

Ximin Luo infinity0 at debian.org
Fri Oct 27 14:51:59 UTC 2017


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository reprotest.

commit ade36001f65ae633d108e3c768b7dbf7d31136de
Author: Ximin Luo <infinity0 at debian.org>
Date:   Fri Oct 27 16:51:23 2017 +0200

    main: When dropping privs, make sure the user can still move in the root
---
 reprotest/__init__.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/reprotest/__init__.py b/reprotest/__init__.py
index 24808cb..b6349c6 100644
--- a/reprotest/__init__.py
+++ b/reprotest/__init__.py
@@ -203,6 +203,7 @@ class BuildContext(collections.namedtuple('_BuildContext',
         logger.debug("#### END REPROTEST BUILD SCRIPT ################################################")
 
         if 'root-on-testbed' in testbed.caps:
+            testbed.check_exec2(['chown', testbed.user + ':', self.testbed_root])
             fix_path = 'export PATH=%s; ' % shlex.quote(build.env['PATH']) if 'PATH' in build.env else ''
             build_argv = ['su', '-p', '-s', '/bin/sh', testbed.user,
                 '-c', 'set -e; ' + fix_path + build_script]

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/reprotest.git



More information about the Reproducible-commits mailing list