Name: uke-usb-recovery-source-check Version: 0.1 Release: 8%{?dist} Summary: Source qualification of a USB Ethernet recovery profile for Uke License: MIT URL: https://github.com/MCC45TR/uke-linux-hardware-support/tree/main/uke-boot Source0: uke-usb-recovery-source.tar.xz ExclusiveArch: aarch64 BuildRequires: bash coreutils gawk grep sed systemd-udev NetworkManager libxml2 tar xz %global debug_package %{nil} %global __os_install_post %{nil} %description Text evidence for Uke USB gadget ownership, Type-C admission, and link profile schema checks. The tests use regular files and do not operate a physical port. %prep %setup -q -n input sha256sum --check --strict --quiet SHA256SUMS %build test "$(uname -m)" = aarch64 export LC_ALL=C bash tests/usb-auto.sh > qualification.txt grep -Fx "USB Ethernet transaction opt-in preserves pre-existing firewall rules and policy" qualification.txt grep -Fx "USB Ethernet opt-out clears only the owned opt-in, refuses failed gadget cleanup and preserves unmanaged records" qualification.txt grep -Fx "USB Ethernet opt-out leaves queued reloads alone and resets only a stale control-process signal after cleanup" qualification.txt grep -Fx "USB Ethernet reconciles only the stale udev decision for an owned recovery interface" qualification.txt grep -Fx 'USB Ethernet activation admits only the approved static connection and preserves manual policy' qualification.txt cfg=src/profiles/92-uke-usb-recovery.conf NetworkManager --config "$PWD/$cfg" --print-config > parsed.conf awk '/^\[device-uke-usb-recovery\]/{in_section=1;print;next} /^\[/{in_section=0} in_section && /^(match-device|ignore-carrier|check-connectivity)=/{print}' parsed.conf | cmp "$cfg" - printf '%%s\n' 'NetworkManager accepted the single-device static recovery carrier policy.' >> qualification.txt bash tests/usb-ownership.sh >> qualification.txt udevadm verify src/profiles/92-uke-usb-recovery.rules >> qualification.txt nmcli --offline connection modify connection.autoconnect yes < src/profiles/uke-usb-recovery.nmconnection > connection.txt for setting in zone=uke-recovery mac-address=02:77:00:00:00:12 address1=10.77.0.2/30 method=manual never-default=true method=disabled; do grep -Fx "$setting" connection.txt done if grep -E '^(gateway|dns|routes)[0-9]*=' connection.txt; then exit 1; fi zone=src/profiles/uke-recovery.xml xmllint --noout "$zone" test "$(xmllint --xpath 'count(/zone[@target="DROP"]/rule[@family="ipv4"][source/@address="10.77.0.1/32"][destination/@address="10.77.0.2/32"][service/@name="ssh"][accept])' "$zone")" = 1 test "$(xmllint --xpath 'count(/zone/*)' "$zone")" = 2 grep -Fx 'ConditionPathExists=/etc/senemos/usb-recovery' src/units/uke-usb-recovery.service grep -Fx 'ExecStop=/usr/libexec/senemos-uke/uke-usb-network recovery-stop' src/units/uke-usb-recovery.service printf '%%s\n' 'NetworkManager keyfile and SSH-only firewall configuration passed.' >> qualification.txt cat qualification.txt %install install -d %{buildroot}%{_datadir}/%{name} install -m644 qualification.txt SHA256SUMS %{buildroot}%{_datadir}/%{name}/ %files %license LICENSE %{_datadir}/%{name}/ %changelog * Thu Nov 19 2026 Uke contributors - 0.1-8 - Verify USB opt-out without interrupting an in-flight reload. * Wed Nov 18 2026 Uke contributors - 0.1-7 - Verify serialized USB Ethernet opt-out and ownership preservation. * Wed Nov 18 2026 Uke contributors - 0.1-6 - Validate static recovery activation without waiting for the ECM carrier. * Wed Nov 18 2026 Uke contributors - 0.1-5 - Reconcile stale NetworkManager state only for an already bound recovery gadget. * Wed Nov 18 2026 Uke contributors - 0.1-4 - Match only the enabled recovery gadget and reconcile its existing net device. * Wed Nov 18 2026 Uke contributors - 0.1-3 - Qualify explicit DNF activation without replacing runtime-only firewall policy. * Wed Nov 18 2026 Uke contributors - 0.1-2 - Isolate the recovery gadget and preserve the existing legacy Ethernet profile. * Wed Nov 18 2026 Uke contributors - 0.1-1 - Verify admission and configuration for the Type-C recovery Ethernet profile.