Release 0.9.8-2 DEB with safe default identity installation fix
This commit is contained in:
5
Makefile
5
Makefile
@@ -235,3 +235,8 @@ check-nds-ncpfs: | build
|
||||
test -n "$(NCPFS_DIR)" && test -f "$(NCPFS_DIR)/lib/libncp.a"
|
||||
$(CC) -std=gnu11 -O2 -g -D_GNU_SOURCE -D_DEFAULT_SOURCE -DN_PLAT_LINUX -I"$(NCPFS_DIR)/include" -I"$(NCPFS_DIR)/lib" -I"$(NCPFS_DIR)" -Inds tests/test_nds_ncpfs.c nds/server.c nds/fragger.c nds/nds_directory.c "$(NCPFS_DIR)/lib/libncp.a" -Wl,--wrap=ncp_send_nds_frag -pthread $(shell pkg-config --cflags --libs json-c sqlite3) -o build/test-nds-ncpfs
|
||||
python3 tests/test_nds_ncpfs.py
|
||||
|
||||
.PHONY: check-default-identity
|
||||
check-default-identity:
|
||||
python3 tests/test_default_identity.py
|
||||
check-release: check-default-identity
|
||||
|
||||
18
RELEASE-0.9.8-2-DE.md
Normal file
18
RELEASE-0.9.8-2-DE.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# 0.9.8-2 – Installationskorrektur für XP/Bindery
|
||||
|
||||
DEB: `releases/deb/mars-vme_0.9.8-2_amd64.deb` (Ubuntu 26.04 amd64).
|
||||
|
||||
Installation und DEB-Konfiguration ergänzen fehlende Abschnitte 10 (GID) und 11
|
||||
(UID) aus dem lokalen unprivilegierten Konto `nobody`. Bestehende Einträge und
|
||||
Benutzerzuordnungen bleiben unverändert. Vor einer Ergänzung wird die Konfiguration
|
||||
gesichert. Damit entfällt der beobachtete `set_default_guid`-Abbruch bei -1/-1.
|
||||
Explizite, aber ungültige Administratorwerte werden nicht automatisch ersetzt.
|
||||
|
||||
Der Betreiber bestätigt den erfolgreichen XP-Zugriff nach der lokalen Korrektur.
|
||||
NDS-Anmeldung bleibt nicht implementiert; serverbasierte Bindery-Anmeldung verwenden.
|
||||
Bestehende Binärdateien unverändert, Paketierungsfix. Release-Tests und drei neue
|
||||
Regressionstests bestanden; DEB-Inhalt und Installationsskript geprüft.
|
||||
|
||||
Installation: `sudo apt install ./mars-vme_0.9.8-2_amd64.deb`.
|
||||
Bei laufendem NetWare-Dienst die neue Konfiguration durch einen geplanten Neustart
|
||||
über das Webfrontend übernehmen (aktive Verbindungen werden getrennt).
|
||||
@@ -35,7 +35,7 @@ with tempfile.TemporaryDirectory(prefix='mars-deb-') as tmp:
|
||||
control=pathlib.Path(tmp)/'debian';control.mkdir();(control/'control').write_text('Source: mars-vme\nMaintainer: MARS VME <root@localhost>\n\nPackage: mars-vme\nArchitecture: any\nDescription: MARS VME\n')
|
||||
elfs=[p for p in stage.rglob('*') if p.is_file() and p.read_bytes()[:4]==b'\x7fELF']
|
||||
deps=run('dpkg-shlibdeps','-O',*[str(p) for p in elfs],cwd=tmp).strip().split('shlibs:Depends=',1)[1]
|
||||
(deb/'control').write_text(f'Package: mars-vme\nVersion: 0.9.8-1\nArchitecture: {arch}\nMaintainer: MARS VME <root@localhost>\nDepends: {deps}, python3, jq, iproute2, nftables, libpcap0.8t64, nodejs (>= 20), ffmpeg, pulseaudio, pulseaudio-utils, util-linux, zip, passwd\nRecommends: chromium | google-chrome-stable\nSection: net\nPriority: optional\nDescription: MARS VME server with web administration and Windows driver packages\n Host-native Ubuntu 26.04 build. Windows drivers are experimental.\n')
|
||||
(deb/'control').write_text(f'Package: mars-vme\nVersion: 0.9.8-2\nArchitecture: {arch}\nMaintainer: MARS VME <root@localhost>\nDepends: {deps}, python3, jq, iproute2, nftables, libpcap0.8t64, nodejs (>= 20), ffmpeg, pulseaudio, pulseaudio-utils, util-linux, zip, passwd\nRecommends: chromium | google-chrome-stable\nSection: net\nPriority: optional\nDescription: MARS VME server with web administration and Windows driver packages\n Host-native Ubuntu 26.04 build. Windows drivers are experimental.\n')
|
||||
(deb/'preinst').write_text('#!/bin/sh\nset -e\nbase=/var/lib/mars_nwe/bindery\nif [ -s "$base/nwobj.pag" ] && [ ! -f "$base/.mars-fixed-width-v1" ]; then\n echo \'Upgrade blocked: existing Bindery may use the incompatible old LP64 layout.\' >&2\n echo \'Back up configuration, Bindery and trustees; migrate/recreate and verify it before this upgrade.\' >&2\n echo \'Do not simply create the marker on an old database. See SERVER-64BIT-REPAIR.md.\' >&2\n exit 1\nfi\n')
|
||||
(deb/'postinst').write_text('''#!/bin/sh
|
||||
set -e
|
||||
@@ -74,6 +74,6 @@ fi
|
||||
(deb/'conffiles').write_text(''.join('/'+str(f.relative_to(stage))+'\n' for f in (stage/'usr/local/etc').rglob('*') if f.is_file()))
|
||||
for name in ('preinst','postinst','prerm'):(deb/name).chmod(0o755)
|
||||
for name in ('COPYING','LEGACY-BUILD.md','WINDOWS.md','DRIVER-RELEASE.md','LONG-NAMES.md','BROWSER.md','BUILD-RETROBROWSER.md','MARS-BROWSER-LIFECYCLE.md','SERVER-64BIT-REPAIR.md','RELEASE-0.9.3-SLP-DE.md','SQLITE-IDENTITIES.md','DIRECTORY-WIZARD.md','TOKENFIX.md','RELEASE-0.9.8-NDS-WIRE-DE.md'):copy(name,'usr/share/doc/mars-vme/'+name)
|
||||
package=out/f'mars-vme_0.9.8-1_{arch}.deb';run('dpkg-deb','--root-owner-group','--build',str(stage),str(package))
|
||||
package=out/f'mars-vme_0.9.8-2_{arch}.deb';run('dpkg-deb','--root-owner-group','--build',str(stage),str(package))
|
||||
(out/'SHA256SUMS').write_text(''.join(hashlib.sha256(f.read_bytes()).hexdigest()+' '+f.name+'\n' for f in sorted(out.glob('*.deb'))))
|
||||
print(package)
|
||||
|
||||
13
releases/BUILD-0.9.8-2.json
Normal file
13
releases/BUILD-0.9.8-2.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"version": "0.9.8-2",
|
||||
"base_source_commit": "e9d926434c048b17299b40895a6f65e85479d17c",
|
||||
"change": "Packaging-only default pre-login UID/GID repair; existing explicit entries preserved",
|
||||
"checks": [
|
||||
"make -j2 check-release",
|
||||
"3 default-identity regression tests",
|
||||
"DEB postinst syntax and helper/binary identity"
|
||||
],
|
||||
"client_verification": "User reports XP connection successful after local UID/GID correction; no NDS authentication claim",
|
||||
"artifact": "releases/deb/mars-vme_0.9.8-2_amd64.deb",
|
||||
"sha256": "048c2033df7ad16b2ee0fa233c383606f6f47b1c175ec6acbf4997d3ce4aac27"
|
||||
}
|
||||
@@ -7,3 +7,4 @@ b4799e4589626a01a9aa5138a81c40120f44cb9a2aa5f1fb78f5ca4821034231 mars-vme_0.8.4
|
||||
831b2dee671f776d3e83670cbba0e4021acc67f70afd72c1768c2f50e99131c4 mars-vme_0.9.1-3_amd64.deb
|
||||
50ade66b63492f148bebd5cc7cd680fb9b0acb26e4888612cec41c4f02500eed mars-vme_0.9.3-1_amd64.deb
|
||||
ca5cc1f7ff12beb0fc90ddd0c58a7f44e2c14f6d99a964a5a73d9c5e951e88cf mars-vme_0.9.8-1_amd64.deb
|
||||
048c2033df7ad16b2ee0fa233c383606f6f47b1c175ec6acbf4997d3ce4aac27 mars-vme_0.9.8-2_amd64.deb
|
||||
|
||||
BIN
releases/deb/mars-vme_0.9.8-2_amd64.deb
Normal file
BIN
releases/deb/mars-vme_0.9.8-2_amd64.deb
Normal file
Binary file not shown.
Reference in New Issue
Block a user