]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
Revert "Try fully preventing network access for rpmbuild."
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 19 Jan 2023 07:47:30 +0000 (08:47 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 19 Jan 2023 07:47:30 +0000 (08:47 +0100)
This reverts commit 70958097c411a9435ba9ea01b1624a2fa2a86121.

From pld-devel-en:

"Unfortunately it appears it's not possible to create user namespaces in
a chroot:

       EPERM (since Linux 3.9)
              CLONE_NEWUSER was specified in flags and the caller is in a chroot environment
              (i.e., the caller's root directory does not match the root  directory  of  the
              mount namespace in which it resides).
"

PLD_Builder/rpm_builder.py

index 7565c699c556cefc00be3c88ff0a9b914ebb42bb..4b1eccf3ac9f2e4db4da0614bb72712e6262718d 100644 (file)
@@ -239,7 +239,7 @@ def build_rpm(r, b):
                 if r.max_jobs > 0:
                     max_jobs = max(min(config.max_jobs, r.max_jobs), 1)
                 cmd = "set -ex; : build-id: %(r_id)s; TMPDIR=%(tmpdir)s exec nice -n %(nice)s " \
-                    "unshare -n -c rpmbuild -bb --define '__jobs %(max_jobs)d' --define '_smp_mflags -j%(max_jobs)d' --define '_make_opts -Otarget' --define '_pld_builder 1' %(rpmdefs)s %(topdir)s/%(spec)s" % {
+                    "rpmbuild -bb --define '__jobs %(max_jobs)d' --define '_smp_mflags -j%(max_jobs)d' --define '_make_opts -Otarget' --define '_pld_builder 1' %(rpmdefs)s %(topdir)s/%(spec)s" % {
                     'r_id' : r.id,
                     'tmpdir': tmpdir,
                     'nice' : config.nice,
This page took 1.366651 seconds and 4 git commands to generate.