Integrate 0.9.3 SLP/IP, SQLite identities and complete token fix; build release 0.9.3-1

This commit is contained in:
2026-11-30 06:07:09 +00:00
parent 679dada6ec
commit b9fe2e61d2
67 changed files with 1797 additions and 73 deletions

164
TEST-RESULTS-0.9.3-SLP.txt Normal file
View File

@@ -0,0 +1,164 @@
MARS NWE 0.9.3 local test evidence
make check-release exit 0
cc -D_DEFAULT_SOURCE -O2 -g -Wall -Wextra -std=c11 -Isrc tests/test_wire.c src/wire.c -o build/test-wire
cc -D_DEFAULT_SOURCE -O2 -g -Wall -Wextra -std=c11 -Isrc tests/test_ipc.c build/libmarspcap.a -o build/test-ipc
./build/test-wire
PASS: 4 frame types, addresses, padding, lengths, malformed frames and MTU
cc -O2 -g -Wall -Wextra -std=c11 -Inative -I/usr/include/json-c tests/test_native.c native/core.c -o build/test-native -ljson-c -lssl -lcrypto -pthread
./build/test-native
PASS merge, CRLF, unknown lines, injection rejection
PASS managed LFN server version merge
PASS backup, revision conflict, private file, traversal rejection
PASS PBKDF2, default, persistent password, wrong password
PASS validation invalid configuration and detected Ethernet interface
cc -O2 -g -Wall -Wextra -std=c11 -DMARS_TESTING -Inative -I/usr/include/json-c tests/test_supervisor.c native/supervisor.c native/core.c -o build/test-supervisor -ljson-c -lssl -lcrypto -pthread
./build/test-supervisor
PASS supervisor: start, restart, stop, restart after stop, shutdown; browser independent start, update restart, crash recovery, shutdown (mock child processes)
cc -D_DEFAULT_SOURCE -O2 -g -Wall -Wextra -std=c11 -Isrc tests/test_gateway.c src/ipxpkt.c src/gateway_config.c -o build/test-gateway -I/usr/include/json-c -ljson-c
./build/test-gateway
PASS: IPXPKT both sockets, little-endian IDs, fragmentation, out-of-order, duplicates, expiry, throughput, malformed data, config validation, static MAC/IP and ARP policy
cc -D_DEFAULT_SOURCE -O2 -g -Wall -Wextra -std=c11 -Isrc -I/usr/include/json-c tests/test_gateway_auto.c native/gateway_auto.c native/core.c src/dhcp.c src/gateway_config.c -o build/test-gateway-auto -ljson-c -lssl -lcrypto -pthread
./build/test-gateway-auto
PASS: overlapping routes, DHCP OFFER/ACK/NAK, malformed and spoofed packets
cc -D_DEFAULT_SOURCE -O2 -g -Wall -Wextra -std=c11 -Isrc -Iclients/windows -Iclients/windows/ndis5 tests/test_winclient.c clients/windows/client_core.c clients/windows/ndis5/frame_queue.c src/ipxpkt.c src/dhcp.c -o build/test-winclient -I/usr/include/json-c -ljson-c
./build/test-winclient
PASS: Windows client core + actual server codec/DHCP; peer validation, fragments, queue
cc -O2 -g -Wall -Wextra -std=c89 -pedantic -DMARS_LEGACY_KERNEL -Iclients/windows/ndis3 tests/test_legacy.c clients/windows/ndis3/legacy_core.c clients/windows/ndis5/frame_queue.c -o build/test-legacy
./build/test-legacy
legacy core: queue, MAC, packet filter, invalid frames, lease expiry passed
cc -O2 -g -Wall -Wextra -std=c11 -Inative -I/usr/include/json-c tests/test_print.c native/printing.c native/core.c -o build/test-print -ljson-c -lssl -lcrypto -pthread -ldl
cc -O2 -g -Wall -Wextra -std=c11 -I/usr/include/json-c native/print_stdin.c native/rawprint.c native/printing.c native/core.c -o build/mars-print -ljson-c -lssl -lcrypto -pthread -ldl
./build/test-print
CUPS probe (actual library): { "error": "Bad file descriptor" }
PASS: invalid destination rejected
cc -O2 -g -Wall -Wextra -std=c11 tests/test_raw.c native/rawprint.c -o build/test-raw
./build/test-raw
PASS: RAW TCP 9100 exact binary bytes over local TCP
cc -O2 -g -Wall -Wextra -std=c11 -Inative -I/usr/include/json-c tests/test_directory.c native/directory.c native/core.c -o build/test-directory -ljson-c -lssl -lcrypto -pthread
./build/test-directory
PASS directory validation, persistence, revisions, backup, live reports
cc -O2 -g -Wall -Wextra -Werror -std=c11 -Inative -DMARS_WRAPPED -DMARS_ID_TESTING '-DMARS_ID_DB="/tmp/mars093/mars_nwe/build/identity-test/ids.sqlite3"' tests/test_identity.c native/identity.c native/identity_wrap.c -Wl,--wrap=getpwnam -Wl,--wrap=getpwuid -Wl,--wrap=getpwnam_r -Wl,--wrap=getpwuid_r -Wl,--wrap=getgrnam -Wl,--wrap=getgrgid -Wl,--wrap=getgrnam_r -Wl,--wrap=getgrgid_r -Wl,--wrap=initgroups -Wl,--wrap=getgrouplist -lsqlite3 -o build/test-identity
cc -O2 -g -Wall -Wextra -Werror -std=c11 -Inative -I/usr/include/json-c -DMARS_ID_TESTING '-DMARS_ID_DB="/tmp/mars093/mars_nwe/build/identity-test/api.sqlite3"' tests/test_identity_api.c native/identity.c native/identity_api.c native/core.c -ljson-c -lssl -lcrypto -pthread -lsqlite3 -o build/test-identity-api
mkdir -p build/identity-test
chmod 0700 build/identity-test
./build/test-identity
PASS actual kernel UID-based file permission separation
PASS virtual UID/GID allocation, persistence, libc lookups, groups, permission and symlink rejection, no reuse
./build/test-identity-api
PASS API capability check, failed probe reservation, successful mocked Bindery create, duplicate rejection, no password in SQLite/API
cc -O2 -g -Wall -Wextra -std=c11 -I/usr/include/json-c tests/test_scripts.c -o build/test-scripts -ljson-c -lssl -lcrypto -pthread
./build/test-scripts
PASS system/personal scripts, CRLF, backup, inode/mode, stale revision, ASCII, symlink rejection
cc -O2 -g -Wall -Wextra -std=c11 tests/test_trustee.c -o build/test-trustee
./build/test-trustee
MARS-TRUSTEE -1
MARS-TRUSTEE 65
MARS-TRUSTEE -1
PASS trustee path/rights validation, mock get/set/remove, revision conflict, symlink rejection
cc -O2 -g -Wall -Wextra -Werror -std=c11 -Inds tests/test_nds_frag.c nds/fragger.c -o build/test-nds-frag
./build/test-nds-frag
PASS experimental NDS 104/2 fragment assembly, reply fragmentation, handles, bounds, errors
node --test browser/test.mjs browser/audio-controller.test.mjs browser/lifecycle.test.mjs
TAP version 13
# Subtest: managed audio only starts on request, stops, and can restart after failure
ok 1 - managed audio only starts on request, stops, and can restart after failure
---
duration_ms: 2.789519
type: 'test'
...
# Subtest: missing audio server and spawn failure remain unavailable
ok 2 - missing audio server and spawn failure remain unavailable
---
duration_ms: 0.777347
type: 'test'
...
# Subtest: external audio mode does not start or kill a separate process
ok 3 - external audio mode does not start or kill a separate process
---
duration_ms: 0.13303
type: 'test'
...
# Subtest: admin accessible while disabled, listener toggle and persisted restart
ok 4 - admin accessible while disabled, listener toggle and persisted restart
---
duration_ms: 429.053128
type: 'test'
...
# Subtest: configuration bounds and secure defaults
ok 5 - configuration bounds and secure defaults
---
duration_ms: 2.031981
type: 'test'
...
# Subtest: packet fragmentation and network order
ok 6 - packet fragmentation and network order
---
duration_ms: 1.693833
type: 'test'
...
# Subtest: RLE565
ok 7 - RLE565
---
duration_ms: 0.260891
type: 'test'
...
# Subtest: ADPCM independent block
ok 8 - ADPCM independent block
---
duration_ms: 0.310937
type: 'test'
...
1..8
# tests 8
# suites 0
# pass 8
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 487.84713
node --check websetup/app.js
make -C clients/retro-browser check
make[1]: Entering directory '/tmp/mars093/mars_nwe/clients/retro-browser'
cc -O2 -Wall -Wextra -std=c89 -pedantic common/rbp.c common/test.c -o rbp-test
./rbp-test
PASS C89 wire fragmentation, endian, RLE bounds, PCM, IMA ADPCM
rm -f rbp-test
make[1]: Leaving directory '/tmp/mars093/mars_nwe/clients/retro-browser'
node tests/test_ncp_ip_ui.cjs
PASS NCP/IP UI: local address selection, validation, revision, save, failed load
./build/test-ncp-ip-config
PASS NCP/IP local/private address and type validation
./build/test-slp
PASS SLPv2 query, attributes, scope/filter, no NDS advertisement, malformed packets and random inputs
node tests/test_directory_ui.cjs
PASS wizard form validation and generated client instructions
python3 tests/test_dos_export.py
Read-only DOS snapshot: /tmp/tmpvqhw78ki/dos
Configure a SEPARATE read-only NetWare volume and its trustee rights. Source ACLs are not copied.
PASS: DOS aliases, collisions, reserved names, bytes, CP850 catalog, link rejection
Integration (re-run with multicast and diagnostics):
./tests/run_ncp_ip.sh
MARS PCAP broker ready (OFFLINE TEST)
IPX interface 12345678 Internal None
PASS real broker SLP UDP unicast/multicast, attributes, no NDS advertisement, SAP withdrawal
PASS NDS request metadata and upstream shutdown invalidates TCP sessions
PASS real TCP framing, fragmented input, separate session nodes, spoof rejection, watchdog, disconnect, malformed signed frame
Broker stopped, dropped=0
ASan / UBSan:
PASS SLPv2 query, attributes, scope/filter, no NDS advertisement, malformed packets and random inputs
Native build BLOCKED:
cc -O2 -g -Wall -Wextra -std=c11 -I/usr/include/json-c native/main.c src/ncp_ip_config.c native/identity.c native/identity_api.c native/directory.c native/core.c native/supervisor.c native/admin.c native/printing.c native/gateway_auto.c src/gateway_config.c -o build/mars_vme -lcivetweb -ljson-c -lssl -lcrypto -pthread -lsqlite3 -ldl
native/main.c:11:10: fatal error: civetweb.h: No such file or directory
11 | #include <civetweb.h>
| ^~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:31: build/mars_vme] Error 1
Upstream source fetch: DNS lookup failed for github.com. No production installation or original Windows client tested.