I recently discovered that a raspberry pi I have which has always used udhcpc from busybox as its client no longer could get an address. I see it fails with the error: udhcpc: socket(AF_INET,3,255): Operation not permitted And using strace, it seems that is: socket(AF_INET, SOCK_RAW, IPPROTO_RAW) = -1 EPERM If I run it by hand, as root, it works. emerge --info to follow Reproducible: Always
emerge --info Portage 3.0.20 (python 3.9.5-final-0, default/linux/arm/17.0/armv6j, gcc-10.3.0, glibc-2.33-r1, 5.10.52-g4e5d621498df armv6l) ================================================================= System uname: Linux-5.10.52-g4e5d621498df-armv6l-ARMv6-compatible_processor_rev_7_-v6l-with-glibc2.33 KiB Mem: 496200 total, 357108 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Sat, 31 Jul 2021 13:00:01 +0000 Head commit of repository gentoo: d72b27d193dba65dc35d4dab0b5b98af6065bb72 sh bash 5.1_p8 ld GNU ld (Gentoo 2.35.2 p1) 2.35.2 app-shells/bash: 5.1_p8::gentoo dev-lang/python: 3.9.5_p2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1-r1::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/binutils: 2.35.2::gentoo sys-devel/gcc: 10.3.0-r2::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://flogeras/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: no ACCEPT_KEYWORDS="arm" ACCEPT_LICENSE="@FREE" CBUILD="armv6j-unknown-linux-gnueabihf" CFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard" CHOST="armv6j-unknown-linux-gnueabihf" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe -march=armv6j" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc noinfo noman parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=armv6j" GENTOO_MIRRORS="http://mirror.its.dal.ca/gentoo" INSTALL_MASK="usr/include usr/share/doc usr/share/man usr/share/info *.la *.a *.h /usr/lib/gcc/armv6j-unknown-linux-gnueabihf/*/include usr/share/gcc-data/armv6j-unknown-linux-gnueabihf/*/info usr/share/gcc-data/armv6j-unknown-linux-gnueabihf/*/man /usr/share/gtk-doc/html" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" PKGDIR="/usr/portage/packages" PORTAGE_BINHOST="ssh://dave@flogeras/mnt/data/chroots/reiser/pie/usr/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="acl arm bzip2 cli crypt dri gdbm iconv libglvnd ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ADA_TARGET="gnat_2018" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb v4 v5 v6" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Switching to dhcpcd works around the issue
Have you recently migrated systems or something? It sounds a bit lke it's lost caps or similar.
I did rebuild it fairly recently, but I'm 90% sure it was working after re-imaging it. The only updates I have done between then and it not working were: 2021-07-26T11:35:09 >>> acct-group/cron-0: 1 minute, 23 seconds 2021-07-26T11:36:33 >>> acct-user/cron-0: 1 minute, 22 seconds 2021-07-26T11:37:55 >>> sys-process/cronbase-0.3.7-r8: 1 minute, 48 seconds 2021-07-26T11:39:44 >>> sys-devel/gcc-10.3.0-r2: 4 minutes, 6 seconds 2021-07-26T11:43:51 >>> sys-apps/man-pages-5.11-r1: 2 minutes, 17 seconds 2021-07-26T11:46:08 >>> sys-apps/shadow-4.8.1-r4: 1 minute, 59 seconds 2021-07-26T11:48:08 >>> dev-libs/openssl-1.1.1k-r1: 4 minutes, 3 seconds But, since we both know that I'm probably wrong, what files should I check for caps? I've reinstalled wpa_supplicant, netifrc, and busybox on the target itself to no avail (the only packages I could think of in the critical path).
Sam helped me from IRC, basically after reinstalling all pkgs with caps USE enabled, the problem went away. Problem was definitely created by me when I imaged it.