Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/libcap.spec'], chrootPath='/home/lib/mock/dist-ocs23-loongarch64-build-226391-16870/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=983gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/libcap.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/libcap-2.69-2.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/libcap.spec'], chrootPath='/home/lib/mock/dist-ocs23-loongarch64-build-226391-16870/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=983gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/libcap.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.c40OLK + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libcap-2.69 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/libcap-2.69.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libcap-2.69 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.zVYEQL + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd libcap-2.69 + /usr/bin/make -O -j32 V=1 VERBOSE=1 /usr/bin/make -C libcap all make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' sed -e 's,@prefix@,/usr,' \ -e 's,@exec_prefix@,,' \ -e 's,@libdir@,/lib64,' \ -e 's,@includedir@,/usr/include,' \ -e 's,@VERSION@,2.69,' \ -e 's,@deps@,,' \ libcap.pc.in >libcap.pc make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' /usr/bin/make libpsx.pc make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' => making cap_names.list.h from /builddir/build/BUILD/libcap-2.69/libcap/../libcap/include/uapi/linux/capability.h grep -E '^#define\s+CAP_([^\s]+)\s+[0-9]+\s*$' include/uapi/linux/capability.h | sed -e 's/^#define\s\+/{"/' -e 's/\s*$/},/' -e 's/\s\+/",/' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/' > cap_names.list.h make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' gcc -O2 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include/uapi -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include _makenames.c -o _makenames make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' ./_makenames > cap_names.h make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' make[2]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' sed -e 's,@prefix@,/usr,' \ -e 's,@exec_prefix@,,' \ -e 's,@libdir@,/lib64,' \ -e 's,@includedir@,/usr/include,' \ -e 's,@VERSION@,2.69,' \ -e 's,@deps@,,' \ libpsx.pc.in >libpsx.pc make[2]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include/uapi -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include -c cap_extint.c -o cap_extint.o make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include/uapi -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include -c cap_alloc.c -o cap_alloc.o make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include/uapi -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include -c cap_file.c -o cap_file.o make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include/uapi -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include -c cap_flag.c -o cap_flag.o make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include/uapi -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include -c cap_proc.c -o cap_proc.o make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include/uapi -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include -c cap_text.c -o cap_text.o make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' ar rcs libcap.a cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_file.o ranlib libcap.a make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' /usr/bin/make libcap.so make[2]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' gcc -o empty empty.c make[2]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' make[2]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' objcopy --dump-section .interp=loader.txt empty /dev/null make[2]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' make[2]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include/uapi -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include -DLIBRARY_VERSION=\"libcap-2.69\" -DSHARED_LOADER=\"/lib64/ld-linux-loongarch-lp64d.so.1\" -include ./libcap.h -c execable.c -o cap_magic.o make[2]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' make[2]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' gcc -Wl,-x -shared -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -Wl,-soname,libcap.so.2 -o libcap.so.2.69 cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_file.o cap_magic.o -Wl,-e,__so_start ln -sf libcap.so.2.69 libcap.so.2 ln -sf libcap.so.2 libcap.so make[2]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' /usr/bin/make libpsx.a make[2]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' rm -f include/sys/psx_syscall.h ln -s ../../../psx/psx_syscall.h include/sys/psx_syscall.h make[2]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' make[2]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include/uapi -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include -c ../psx/psx.c -o ../psx/psx.o make[2]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' make[2]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' ar rcs libpsx.a ../psx/psx.o ranlib libpsx.a make[2]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' /usr/bin/make libpsx.so make[2]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include/uapi -I/builddir/build/BUILD/libcap-2.69/libcap/../libcap/include -DLIBRARY_VERSION=\"libpsx-2.69\" -DSHARED_LOADER=\"/lib64/ld-linux-loongarch-lp64d.so.1\" -c psx_exec.c -o psx_magic.o make[2]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' make[2]: Entering directory '/builddir/build/BUILD/libcap-2.69/libcap' gcc -Wl,-x -shared -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -Wl,-soname,libpsx.so.2 -o libpsx.so.2.69 ../psx/psx.o psx_magic.o -Wl,-e,__so_start -lpthread -Wl,-wrap,pthread_create ln -sf libpsx.so.2.69 libpsx.so.2 ln -sf libpsx.so.2 libpsx.so make[2]: Leaving directory '/builddir/build/BUILD/libcap-2.69/libcap' /usr/bin/make -C pam_cap all /usr/bin/make -C ../libcap all make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/pam_cap' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/libcap-2.69/pam_cap/../libcap/include/uapi -I/builddir/build/BUILD/libcap-2.69/pam_cap/../libcap/include -DLIBCAP_VERSION=\"libcap-2.69\" -DSHARED_LOADER=\"/lib64/ld-linux-loongarch-lp64d.so.1\" -c execable.c -o execable.o make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/pam_cap' /usr/bin/make libpsx.pc make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/pam_cap' gcc -Wl,-x -shared -o lazylink.so -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/libcap-2.69/pam_cap/../libcap/include/uapi -I/builddir/build/BUILD/libcap-2.69/pam_cap/../libcap/include -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 lazylink.c -DSHARED_LOADER=\"/lib64/ld-linux-loongarch-lp64d.so.1\" -Wl,-e,__so_start make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/pam_cap' make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/pam_cap' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/libcap-2.69/pam_cap/../libcap/include/uapi -I/builddir/build/BUILD/libcap-2.69/pam_cap/../libcap/include -c -o pam_cap.o pam_cap.c make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/pam_cap' pam_cap.c: In function 'read_capabilities_for_user': pam_cap.c:202:9: warning: '__xx__' is deprecated [-Wdeprecated-declarations] 202 | _pam_overwrite(g); | ^~~~~~~~~~~~~~ In file included from pam_cap.c:31: pam_cap.c:202:9: note: declared here 202 | _pam_overwrite(g); | ^~~~~~~~~~~~~~ pam_cap.c:202:9: warning: '__xx__' is deprecated [-Wdeprecated-declarations] 202 | _pam_overwrite(g); | ^~~~~~~~~~~~~~ pam_cap.c:202:9: note: declared here 202 | _pam_overwrite(g); | ^~~~~~~~~~~~~~ pam_cap.c:202:9: warning: '__xx__' is deprecated [-Wdeprecated-declarations] 202 | _pam_overwrite(g); | ^~~~~~~~~~~~~~ pam_cap.c:202:9: note: declared here 202 | _pam_overwrite(g); | ^~~~~~~~~~~~~~ pam_cap.c: In function 'pam_sm_authenticate': pam_cap.c:443:9: warning: '__xx__' is deprecated [-Wdeprecated-declarations] 443 | _pam_overwrite(conf_caps); | ^~~~~~~~~~~~~~ pam_cap.c:443:9: note: declared here 443 | _pam_overwrite(conf_caps); | ^~~~~~~~~~~~~~ pam_cap.c:443:9: warning: '__xx__' is deprecated [-Wdeprecated-declarations] 443 | _pam_overwrite(conf_caps); | ^~~~~~~~~~~~~~ pam_cap.c:443:9: note: declared here 443 | _pam_overwrite(conf_caps); | ^~~~~~~~~~~~~~ pam_cap.c:443:9: warning: '__xx__' is deprecated [-Wdeprecated-declarations] 443 | _pam_overwrite(conf_caps); | ^~~~~~~~~~~~~~ pam_cap.c:443:9: note: declared here 443 | _pam_overwrite(conf_caps); | ^~~~~~~~~~~~~~ make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/pam_cap' echo "-Wl,-e,__so_start" > pam_cap_linkopts ./lazylink.so || echo "-lpam" >> pam_cap_linkopts make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/pam_cap' ./lazylink.so: symbol lookup error: ./lazylink.so: undefined symbol: nothing_sets_this make[3]: 'libpsx.pc' is up to date. /usr/bin/make libcap.so make[3]: 'libcap.so' is up to date. /usr/bin/make libpsx.a make[3]: 'libpsx.a' is up to date. /usr/bin/make libpsx.so make[3]: 'libpsx.so' is up to date. make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/pam_cap' touch LIBCAP make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/pam_cap' make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/pam_cap' cat pam_cap_linkopts | xargs -e gcc -Wl,-x -shared -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -o pam_cap.so pam_cap.o execable.o -L/builddir/build/BUILD/libcap-2.69/pam_cap/../libcap -lcap make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/pam_cap' /usr/bin/make testlink make[2]: Entering directory '/builddir/build/BUILD/libcap-2.69/pam_cap' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/libcap-2.69/pam_cap/../libcap/include/uapi -I/builddir/build/BUILD/libcap-2.69/pam_cap/../libcap/include -c -o test.o test.c make[2]: Leaving directory '/builddir/build/BUILD/libcap-2.69/pam_cap' make[2]: Entering directory '/builddir/build/BUILD/libcap-2.69/pam_cap' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -o testlink test.o pam_cap.o -lpam -ldl -L/builddir/build/BUILD/libcap-2.69/pam_cap/../libcap -lcap make[2]: Leaving directory '/builddir/build/BUILD/libcap-2.69/pam_cap' /usr/bin/make -C go all make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/go' mkdir -p "vendor/kernel.org/pub/linux/libs/security/libcap" make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/go' make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/go' echo "# kernel.org/pub/linux/libs/security/libcap/psx v1.2.69" > vendor/modules.txt echo "kernel.org/pub/linux/libs/security/libcap/psx" >> vendor/modules.txt echo "# kernel.org/pub/linux/libs/security/libcap/cap v1.2.69" >> vendor/modules.txt echo "kernel.org/pub/linux/libs/security/libcap/cap" >> vendor/modules.txt make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/go' make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/go' ln -sf /builddir/build/BUILD/libcap-2.69/psx vendor/kernel.org/pub/linux/libs/security/libcap touch ../psx make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/go' make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/go' ln -sf /builddir/build/BUILD/libcap-2.69/cap vendor/kernel.org/pub/linux/libs/security/libcap touch ../cap make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/go' make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/go' touch PSXGOPACKAGE make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/go' make[1]: Entering directory '/builddir/build/BUILD/libcap-2.69/go' CC="gcc" go run -mod=vendor mknames.go --header=/builddir/build/BUILD/libcap-2.69/libcap/cap_names.h --textdir=/builddir/build/BUILD/libcap-2.69/doc/values | gofmt > good-names.go || rm -f good-names.go diff -u ../cap/names.go good-names.go --- ../cap/names.go 2023-05-15 10:10:04.000000000 +0800 +++ good-names.go 2024-07-29 17:21:29.493069644 +0800 @@ -1,440 +0,0 @@ -package cap - -/* ** DO NOT EDIT THIS FILE. IT WAS AUTO-GENERATED BY LIBCAP'S GO BUILDER (mknames.go) ** */ - -// NamedCount holds the number of capability values, with official -// names, known at the time this libcap/cap version was released. The -// "../libcap/cap" package is fully able to manipulate higher numbered -// capability values by numerical value. However, if you find -// cap.NamedCount < cap.MaxBits(), it is probably time to upgrade this -// package on your system. -// -// FWIW the userspace tool '/sbin/capsh' also contains a runtime check -// for the condition that libcap is behind the running kernel in this -// way. -const NamedCount = 41 - -// CHOWN etc., are the named capability values of the Linux -// kernel. The canonical source for each name is the -// "uapi/linux/capabilities.h" file. Some values may not be available -// (yet) where the kernel is older. The actual number of capabities -// supported by the running kernel can be obtained using the -// cap.MaxBits() function. -const ( - // CHOWN allows a process to arbitrarily change the user and - // group ownership of a file. - CHOWN Value = iota - - // DAC_OVERRIDE allows a process to override of all Discretionary - // Access Control (DAC) access, including ACL execute - // access. That is read, write or execute files that the - // process would otherwise not have access to. This - // excludes DAC access covered by cap.LINUX_IMMUTABLE. - DAC_OVERRIDE - - // DAC_READ_SEARCH allows a process to override all DAC restrictions - // limiting the read and search of files and - // directories. This excludes DAC access covered by - // cap.LINUX_IMMUTABLE. - DAC_READ_SEARCH - - // FOWNER allows a process to perform operations on files, even - // where file owner ID should otherwise need be equal to - // the UID, except where cap.FSETID is applicable. It - // doesn't override MAC and DAC restrictions. - // - // This capability permits the deletion of a file owned - // by another UID in a directory protected by the sticky - // (t) bit. - FOWNER - - // FSETID allows a process to set the S_ISUID and S_ISUID bits of - // the file permissions, even when the process' effective - // UID or GID/supplementary GIDs do not match that of the - // file. - FSETID - - // KILL allows a process to send a kill(2) signal to any other - // process - overriding the limitation that there be a - // [E]UID match between source and target process. - KILL - - // SETGID allows a process to freely manipulate its own GIDs: - // - arbitrarily set the GID, EGID, REGID, RESGID values - // - arbitrarily set the supplementary GIDs - // - allows the forging of GID credentials passed over a - // socket - SETGID - - // SETUID allows a process to freely manipulate its own UIDs: - // - arbitrarily set the UID, EUID, REUID and RESUID - // values - // - allows the forging of UID credentials passed over a - // socket - SETUID - - // SETPCAP allows a process to freely manipulate its inheritable - // capabilities. - // - // Linux supports the POSIX.1e Inheritable set, the POXIX.1e (X - // vector) known in Linux as the Bounding vector, as well as - // the Linux extension Ambient vector. - // - // This capability permits dropping bits from the Bounding - // vector (ie. raising B bits in the libcap IAB - // representation). It also permits the process to raise - // Ambient vector bits that are both raised in the Permitted - // and Inheritable sets of the process. This capability cannot - // be used to raise Permitted bits, Effective bits beyond those - // already present in the process' permitted set, or - // Inheritable bits beyond those present in the Bounding - // vector. - // - // [Historical note: prior to the advent of file capabilities - // (2008), this capability was suppressed by default, as its - // unsuppressed behavior was not auditable: it could - // asynchronously grant its own Permitted capabilities to and - // remove capabilities from other processes arbitrarily. The - // former leads to undefined behavior, and the latter is better - // served by the kill system call.] - SETPCAP - - // LINUX_IMMUTABLE allows a process to modify the S_IMMUTABLE and - // S_APPEND file attributes. - LINUX_IMMUTABLE - - // NET_BIND_SERVICE allows a process to bind to privileged ports: - // - TCP/UDP sockets below 1024 - // - ATM VCIs below 32 - NET_BIND_SERVICE - - // NET_BROADCAST allows a process to broadcast to the network and to - // listen to multicast. - NET_BROADCAST - - // NET_ADMIN allows a process to perform network configuration - // operations: - // - interface configuration - // - administration of IP firewall, masquerading and - // accounting - // - setting debug options on sockets - // - modification of routing tables - // - setting arbitrary process, and process group - // ownership on sockets - // - binding to any address for transparent proxying - // (this is also allowed via cap.NET_RAW) - // - setting TOS (Type of service) - // - setting promiscuous mode - // - clearing driver statistics - // - multicasing - // - read/write of device-specific registers - // - activation of ATM control sockets - NET_ADMIN - - // NET_RAW allows a process to use raw networking: - // - RAW sockets - // - PACKET sockets - // - binding to any address for transparent proxying - // (also permitted via cap.NET_ADMIN) - NET_RAW - - // IPC_LOCK allows a process to lock shared memory segments for IPC - // purposes. Also enables mlock and mlockall system - // calls. - IPC_LOCK - - // IPC_OWNER allows a process to override IPC ownership checks. - IPC_OWNER - - // SYS_MODULE allows a process to initiate the loading and unloading - // of kernel modules. This capability can effectively - // modify kernel without limit. - SYS_MODULE - - // SYS_RAWIO allows a process to perform raw IO: - // - permit ioper/iopl access - // - permit sending USB messages to any device via - // /dev/bus/usb - SYS_RAWIO - - // SYS_CHROOT allows a process to perform a chroot syscall to change - // the effective root of the process' file system: - // redirect to directory "/" to some other location. - SYS_CHROOT - - // SYS_PTRACE allows a process to perform a ptrace() of any other - // process. - SYS_PTRACE - - // SYS_PACCT allows a process to configure process accounting. - SYS_PACCT - - // SYS_ADMIN allows a process to perform a somewhat arbitrary - // grab-bag of privileged operations. Over time, this - // capability should weaken as specific capabilities are - // created for subsets of cap.SYS_ADMINs functionality: - // - configuration of the secure attention key - // - administration of the random device - // - examination and configuration of disk quotas - // - setting the domainname - // - setting the hostname - // - calling bdflush() - // - mount() and umount(), setting up new SMB connection - // - some autofs root ioctls - // - nfsservctl - // - VM86_REQUEST_IRQ - // - to read/write pci config on alpha - // - irix_prctl on mips (setstacksize) - // - flushing all cache on m68k (sys_cacheflush) - // - removing semaphores - // - Used instead of cap.CHOWN to "chown" IPC message - // queues, semaphores and shared memory - // - locking/unlocking of shared memory segment - // - turning swap on/off - // - forged pids on socket credentials passing - // - setting readahead and flushing buffers on block - // devices - // - setting geometry in floppy driver - // - turning DMA on/off in xd driver - // - administration of md devices (mostly the above, but - // some extra ioctls) - // - tuning the ide driver - // - access to the nvram device - // - administration of apm_bios, serial and bttv (TV) - // device - // - manufacturer commands in isdn CAPI support driver - // - reading non-standardized portions of PCI - // configuration space - // - DDI debug ioctl on sbpcd driver - // - setting up serial ports - // - sending raw qic-117 commands - // - enabling/disabling tagged queuing on SCSI - // controllers and sending arbitrary SCSI commands - // - setting encryption key on loopback filesystem - // - setting zone reclaim policy - SYS_ADMIN - - // SYS_BOOT allows a process to initiate a reboot of the system. - SYS_BOOT - - // SYS_NICE allows a process to maipulate the execution priorities - // of arbitrary processes: - // - those involving different UIDs - // - setting their CPU affinity - // - alter the FIFO vs. round-robin (realtime) - // scheduling for itself and other processes. - SYS_NICE - - // SYS_RESOURCE allows a process to adjust resource related parameters - // of processes and the system: - // - set and override resource limits - // - override quota limits - // - override the reserved space on ext2 filesystem - // (this can also be achieved via cap.FSETID) - // - modify the data journaling mode on ext3 filesystem, - // which uses journaling resources - // - override size restrictions on IPC message queues - // - configure more than 64Hz interrupts from the - // real-time clock - // - override the maximum number of consoles for console - // allocation - // - override the maximum number of keymaps - SYS_RESOURCE - - // SYS_TIME allows a process to perform time manipulation of clocks: - // - alter the system clock - // - enable irix_stime on MIPS - // - set the real-time clock - SYS_TIME - - // SYS_TTY_CONFIG allows a process to manipulate tty devices: - // - configure tty devices - // - perform vhangup() of a tty - SYS_TTY_CONFIG - - // MKNOD allows a process to perform privileged operations with - // the mknod() system call. - MKNOD - - // LEASE allows a process to take leases on files. - LEASE - - // AUDIT_WRITE allows a process to write to the audit log via a - // unicast netlink socket. - AUDIT_WRITE - - // AUDIT_CONTROL allows a process to configure audit logging via a - // unicast netlink socket. - AUDIT_CONTROL - - // SETFCAP allows a process to set capabilities on files. - // Permits a process to uid_map the uid=0 of the - // parent user namespace into that of the child - // namespace. Also, permits a process to override - // securebits locks through user namespace - // creation. - SETFCAP - - // MAC_OVERRIDE allows a process to override Manditory Access Control - // (MAC) access. Not all kernels are configured with a MAC - // mechanism, but this is the capability reserved for - // overriding them. - MAC_OVERRIDE - - // MAC_ADMIN allows a process to configure the Mandatory Access - // Control (MAC) policy. Not all kernels are configured - // with a MAC enabled, but if they are this capability is - // reserved for code to perform administration tasks. - MAC_ADMIN - - // SYSLOG allows a process to configure the kernel's syslog - // (printk) behavior. - SYSLOG - - // WAKE_ALARM allows a process to trigger something that can wake the - // system up. - WAKE_ALARM - - // BLOCK_SUSPEND allows a process to block system suspends - prevent the - // system from entering a lower power state. - BLOCK_SUSPEND - - // AUDIT_READ allows a process to read the audit log via a multicast - // netlink socket. - AUDIT_READ - - // PERFMON allows a process to enable observability of privileged - // operations related to performance. The mechanisms - // include perf_events, i915_perf and other kernel - // subsystems. - PERFMON - - // BPF allows a process to manipulate aspects of the kernel - // enhanced Berkeley Packet Filter (BPF) system. This is - // an execution subsystem of the kernel, that manages BPF - // programs. cap.BPF permits a process to: - // - create all types of BPF maps - // - advanced verifier features: - // - indirect variable access - // - bounded loops - // - BPF to BPF function calls - // - scalar precision tracking - // - larger complexity limits - // - dead code elimination - // - potentially other features - // - // Other capabilities can be used together with cap.BFP to - // further manipulate the BPF system: - // - cap.PERFMON relaxes the verifier checks as follows: - // - BPF programs can use pointer-to-integer - // conversions - // - speculation attack hardening measures can be - // bypassed - // - bpf_probe_read to read arbitrary kernel memory is - // permitted - // - bpf_trace_printk to print the content of kernel - // memory - // - cap.SYS_ADMIN permits the following: - // - use of bpf_probe_write_user - // - iteration over the system-wide loaded programs, - // maps, links BTFs and convert their IDs to file - // descriptors. - // - cap.PERFMON is required to load tracing programs. - // - cap.NET_ADMIN is required to load networking - // programs. - BPF - - // CHECKPOINT_RESTORE allows a process to perform checkpoint - // and restore operations. Also permits - // explicit PID control via clone3() and - // also writing to ns_last_pid. - CHECKPOINT_RESTORE -) - -var names = map[Value]string{ - CHOWN: "cap_chown", - DAC_OVERRIDE: "cap_dac_override", - DAC_READ_SEARCH: "cap_dac_read_search", - FOWNER: "cap_fowner", - FSETID: "cap_fsetid", - KILL: "cap_kill", - SETGID: "cap_setgid", - SETUID: "cap_setuid", - SETPCAP: "cap_setpcap", - LINUX_IMMUTABLE: "cap_linux_immutable", - NET_BIND_SERVICE: "cap_net_bind_service", - NET_BROADCAST: "cap_net_broadcast", - NET_ADMIN: "cap_net_admin", - NET_RAW: "cap_net_raw", - IPC_LOCK: "cap_ipc_lock", - IPC_OWNER: "cap_ipc_owner", - SYS_MODULE: "cap_sys_module", - SYS_RAWIO: "cap_sys_rawio", - SYS_CHROOT: "cap_sys_chroot", - SYS_PTRACE: "cap_sys_ptrace", - SYS_PACCT: "cap_sys_pacct", - SYS_ADMIN: "cap_sys_admin", - SYS_BOOT: "cap_sys_boot", - SYS_NICE: "cap_sys_nice", - SYS_RESOURCE: "cap_sys_resource", - SYS_TIME: "cap_sys_time", - SYS_TTY_CONFIG: "cap_sys_tty_config", - MKNOD: "cap_mknod", - LEASE: "cap_lease", - AUDIT_WRITE: "cap_audit_write", - AUDIT_CONTROL: "cap_audit_control", - SETFCAP: "cap_setfcap", - MAC_OVERRIDE: "cap_mac_override", - MAC_ADMIN: "cap_mac_admin", - SYSLOG: "cap_syslog", - WAKE_ALARM: "cap_wake_alarm", - BLOCK_SUSPEND: "cap_block_suspend", - AUDIT_READ: "cap_audit_read", - PERFMON: "cap_perfmon", - BPF: "cap_bpf", - CHECKPOINT_RESTORE: "cap_checkpoint_restore", -} - -var bits = map[string]Value{ - "cap_chown": CHOWN, - "cap_dac_override": DAC_OVERRIDE, - "cap_dac_read_search": DAC_READ_SEARCH, - "cap_fowner": FOWNER, - "cap_fsetid": FSETID, - "cap_kill": KILL, - "cap_setgid": SETGID, - "cap_setuid": SETUID, - "cap_setpcap": SETPCAP, - "cap_linux_immutable": LINUX_IMMUTABLE, - "cap_net_bind_service": NET_BIND_SERVICE, - "cap_net_broadcast": NET_BROADCAST, - "cap_net_admin": NET_ADMIN, - "cap_net_raw": NET_RAW, - "cap_ipc_lock": IPC_LOCK, - "cap_ipc_owner": IPC_OWNER, - "cap_sys_module": SYS_MODULE, - "cap_sys_rawio": SYS_RAWIO, - "cap_sys_chroot": SYS_CHROOT, - "cap_sys_ptrace": SYS_PTRACE, - "cap_sys_pacct": SYS_PACCT, - "cap_sys_admin": SYS_ADMIN, - "cap_sys_boot": SYS_BOOT, - "cap_sys_nice": SYS_NICE, - "cap_sys_resource": SYS_RESOURCE, - "cap_sys_time": SYS_TIME, - "cap_sys_tty_config": SYS_TTY_CONFIG, - "cap_mknod": MKNOD, - "cap_lease": LEASE, - "cap_audit_write": AUDIT_WRITE, - "cap_audit_control": AUDIT_CONTROL, - "cap_setfcap": SETFCAP, - "cap_mac_override": MAC_OVERRIDE, - "cap_mac_admin": MAC_ADMIN, - "cap_syslog": SYSLOG, - "cap_wake_alarm": WAKE_ALARM, - "cap_block_suspend": BLOCK_SUSPEND, - "cap_audit_read": AUDIT_READ, - "cap_perfmon": PERFMON, - "cap_bpf": BPF, - "cap_checkpoint_restore": CHECKPOINT_RESTORE, -} make[1]: Leaving directory '/builddir/build/BUILD/libcap-2.69/go' RPM build errors: # internal/abi /usr/lib/golang/src/internal/abi/abi.go:30:10: undefined array length IntArgRegs or missing type constraint /usr/lib/golang/src/internal/abi/abi.go:31:10: undefined array length FloatArgRegs or missing type constraint /usr/lib/golang/src/internal/abi/abi.go:38:8: undefined array length IntArgRegs or missing type constraint /usr/lib/golang/src/internal/abi/abi.go:87:24: undefined: IntArgRegs /usr/lib/golang/src/internal/abi/abi.go:91:3: invalid operation: cannot index b (variable of type *IntArgRegBitmap) /usr/lib/golang/src/internal/abi/abi.go:101:10: invalid operation: cannot index b (variable of type *IntArgRegBitmap) make[1]: *** [Makefile:49: good-names.go] Error 1 make: *** [Makefile:14: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.zVYEQL (%build) Bad exit status from /var/tmp/rpm-tmp.zVYEQL (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/libcap.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/libcap.spec