Closed Zopolis4 closed 1 month ago
unshare(CLONE_NEWUSER)
fails with EPERM
.
This is basically a duplicate of https://github.com/thom311/libnl/issues/361 , although, on 361 unshare()
fails with EINVAL
.
The verdict is still the same:
https://github.com/thom311/libnl/issues/361#issuecomment-1835763010
Closing with ^^ reasons.
(Patch welcome).
Tested on 3.9.0 and main, the log here is from main:
Configured with
CFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto" CXXFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto" FCFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto" FFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto" LD_LIBRARY_PATH="/usr/local/lib64" LDFLAGS="-flto=auto " ./configure --prefix=/usr/local --libdir=/usr/local/lib64 --mandir=/usr/local/share/man --disable-dependency-tracking --build=x86_64-cros-linux-gnu --host=x86_64-cros-linux-gnu --target=x86_64-cros-linux-gnu --program-prefix='' --program-suffix='' --disable-debug