Correct F4 witness reset and failed-exec assertions
Use completed current-boot reset journal entries when systemd has discarded the oneshot execution timestamp. Require an active edge PID and report each P10 security component. Preserve f4w1 evidence and ledger as regression fixtures.
Co-Authored-By: GPT-6 Astra <noreply@openai.com>
3 files changed,
+360
−5
scripts/region-group-boot-witness.py+35 −5scripts/region_group_boot_witness_test.py+64 −0scripts/testdata/region-group-f4w1.json+261 −0
diff --git a/scripts/region-group-boot-witness.py b/scripts/region-group-boot-witness.py| index 00d1fa553..122d864c7 100644 |
| --- a/scripts/region-group-boot-witness.py |
| +++ b/scripts/region-group-boot-witness.py |
| @@ -736,6 +736,31 @@ def uid_binding_ok(e): |
| return False |
| +def reset_completed(e): |
| + props = properties(e, 'carlos-hairpin-reset') |
| + journal = e.get('commands', {}).get('carlos-hairpin-reset-journal', {}) |
| + show = e.get('commands', {}).get('carlos-hairpin-reset-show', {}) |
| + if show.get('rc') != 0 or journal.get('rc') != 0 or props.get('Result') != 'success' or props.get('ExecMainStatus') != '0': |
| + return False |
| + pending, completed = False, 0 |
| + for line in journal.get('out', '').splitlines(): |
| + match = re.fullmatch(r'\[\s*[0-9]+\.[0-9]+\] \S+ systemd\[1\]: (.*)', line) |
| + if not match: |
| + continue |
| + message = match[1] |
| + if message == 'Starting carlos-hairpin-reset.service...': |
| + if pending: |
| + return False |
| + pending = True |
| + elif message == 'Finished carlos-hairpin-reset.service.': |
| + if not pending: |
| + return False |
| + pending, completed = False, completed + 1 |
| + elif 'carlos-hairpin-reset.service' in message and re.search(r'fail|timed out|error', message, re.I): |
| + return False |
| + return completed > 0 and not pending |
| + |
| + |
| def p_assertions(e, w4): |
| cmds = e.get('commands', {}) |
| out = lambda k: cmds.get(k, {}).get('out', '') |
| @@ -757,12 +782,14 @@ def p_assertions(e, w4): |
| security = security and all(props.get(k) == 'yes' for k in ('PrivateTmp', 'PrivateDevices', 'ProtectKernelTunables', 'ProtectKernelModules', 'MemoryDenyWriteExecute')) |
| security = security and control.get('User', '') in ('', 'root') and control.get('Group', '') in ('', 'root') |
| security = security and 'AF_NETLINK' in control.get('RestrictAddressFamilies', '') and '/run/carlos-hairpin' in control.get('ReadWritePaths', '') |
| + security_checks = {'unit settings': security} |
| status = e.get('edge_process_status', '') |
| - security = security and bool(re.search(r'^NoNewPrivs:\s+1$', status, re.M)) and bool(re.search(r'^CapEff:\s+0*400$', status, re.M)) |
| + security_checks['live edge process privileges'] = bool(re.search(r'^NoNewPrivs:\s+1$', status, re.M)) and bool(re.search(r'^CapEff:\s+0*400$', status, re.M)) |
| + security_checks['bind mount flags'] = True |
| for path in ('/data/instances', '/run/carlos/instances', '/run/carlos/logs'): |
| mount = mounts.get(path, {}) |
| output = mount.get('findmnt', {}).get('out', '') |
| - security = security and mount.get('probe') == path and all(x in output for x in ('nosuid', 'nodev', 'nosymfollow')) |
| + security_checks['bind mount flags'] &= mount.get('probe') == path and all(x in output for x in ('nosuid', 'nodev', 'nosymfollow')) |
| alias_ok = all(path in mounts and mounts[path].get('probe') == path and mounts[path].get('findmnt', {}).get('rc') == 0 |
| and mounts[path].get('realpath') == target for path, target in [('/var/run', '/run'), ('/var/lock', '/run/lock')]) |
| return [ |
| @@ -778,7 +805,8 @@ def p_assertions(e, w4): |
| ('P8 drop-in-only edge gate', w4, 'inferred from W4: successful hairpin installation passed the pre-base-unit edge gate'), |
| ('P9 immutable record metadata', all(r.get('uid') == r.get('gid') == 0 and r.get('mode') == '0o644' |
| and r.get('nlink') == 1 and r.get('regular') is True for r in records), 'lstat uid/gid/mode/nlink/type for all four records'), |
| - ('P10 installed unit security', bool(security), 'effective edge/control settings, live edge /proc privileges, bind mount flags; no tenant execution probe'), |
| + ('P10 installed unit security', all(security_checks.values()), |
| + '; '.join(name + '=' + ('PASS' if ok else 'FAIL') for name, ok in security_checks.items()) + '; no tenant execution probe'), |
| ] |
| @@ -798,7 +826,9 @@ def assertions(e): |
| ('W5 dormant nft persisted', rc('nft-persist')==0 and all(x in out('nft-persist') for x in ('carlos_group_imds','carlos_hairpin')), out('nft-persist')[:200]), |
| ('W6 host.env installed', exists('/etc/carlos/host.env') and files['/etc/carlos/host.env']['mode']=='0o600' and files['/etc/carlos/host.env']['uid']==0, 'metadata only; values omitted'), |
| ('W7 Restart=no', 'Restart=no\n' in out('carlos-edge-show'), out('carlos-edge-show')[:250]), |
| - ('W8 edge ran', bool(re.search(r'ExecMainStartTimestampMonotonic=[1-9][0-9]*',out('carlos-edge-show'))), out('carlos-edge-show')[:250]), |
| + ('W8 edge ran', properties(e, 'carlos-edge').get('ActiveState') == 'active' |
| + and bool(re.fullmatch(r'[1-9][0-9]*', properties(e, 'carlos-edge').get('MainPID', ''))) |
| + and bool(re.search(r'ExecMainStartTimestampMonotonic=[1-9][0-9]*',out('carlos-edge-show'))), out('carlos-edge-show')[:250]), |
| ('W9 publication denied', bool(re.search(r'agent: edges file pass failed[^\n]*AccessDenied', out('carlos-edge-journal'))) and 'tenant admission is open' not in out('carlos-edge-journal'), out('carlos-edge-journal')[-500:]), |
| ('W10 work dir removed', '/var/lib/carlos-group-boot' in files and files['/var/lib/carlos-group-boot'] is None and exists('/etc/carlos/host.env'), 'final cleanup after start'), |
| ('W11 sysctl', all(f'net.ipv4.conf.{axis}.arp_{name} = {value}' in out('sysctl') for axis in ('all','default') for name,value in [('ignore',1),('announce',2)]), out('sysctl')), |
| @@ -810,7 +840,7 @@ def assertions(e): |
| ('W17 executable install paths', all(p in e.get('mounts',{}) and not e['mounts'][p]['noexec'] for p in ('/opt','/var/lib/cloud')), 'statvfs for /opt and cloud-init'), |
| ('W18 system user', rc('user')==0 and bool(re.search(r'^carlos:[^:]*:[0-9]+:[0-9]+:[^:]*:/data:/usr/sbin/nologin',out('user'))), out('user')), |
| ('W19 mount units', rc('mount-units')==0 and out('mount-units').splitlines()==['active']*3, out('mount-units')), |
| - ('W20 reset unit', 'Result=success' in out('carlos-hairpin-reset-show') and bool(re.search(r'ExecMainStartTimestampMonotonic=[1-9][0-9]*',out('carlos-hairpin-reset-show'))),out('carlos-hairpin-reset-show')), |
| + ('W20 reset unit', reset_completed(e), out('carlos-hairpin-reset-journal') + out('carlos-hairpin-reset-show')), |
| ('W21 persisted nft syntax', rc('nft-check')==0, out('nft-check')), |
| ('W22 SELinux absent', rc('selinux')==2 and 'No such file' in out('selinux') and rc('lsm') == 0 and 'selinux' not in out('lsm'),out('selinux')), |
| ('W23 systemd features', 'systemd 257' in out('tools') and '/usr/bin/systemctl' in out('carlos-edge-show') and 'AF_NETLINK' in out('carlos-instance-control-show') and '/run/carlos-hairpin' in out('carlos-instance-control-show'),out('carlos-instance-control-show')), |
diff --git a/scripts/region_group_boot_witness_test.py b/scripts/region_group_boot_witness_test.py| index 65ac0cff0..914b2fbc5 100644 |
| --- a/scripts/region_group_boot_witness_test.py |
| +++ b/scripts/region_group_boot_witness_test.py |
| @@ -182,6 +182,22 @@ class WitnessTests(unittest.TestCase): |
| with self.assertRaises(ValueError): |
| with w.exclusive(path):pass |
| + def test_f4w1_ledger_allows_one_new_run_and_preserves_first_reservation(self): |
| + recorded = json.loads((Path(__file__).parent / 'testdata/region-group-f4w1.json').read_text())['budget'] |
| + with tempfile.TemporaryDirectory() as tmp: |
| + path = Path(tmp) / 'budget.json' |
| + w.atomic_json(path, recorded) |
| + with self.assertRaisesRegex(ValueError, 'run id already spent'): |
| + w.reserve_budget(path, 'f4w1', 'new-owner') |
| + w.reserve_budget(path, 'f4w2', 'second-owner') |
| + updated = json.loads(path.read_text()) |
| + self.assertEqual(updated['runs'][:1], recorded['runs']) |
| + self.assertEqual(updated['runs'][1]['run'], 'f4w2') |
| + with self.assertRaisesRegex(ValueError, 'two-run witness budget exhausted'): |
| + w.reserve_budget(path, 'f4w3', 'third-owner') |
| + for key in ('deployment', 'prefix', 'shared', 'key', 'evidence', 'role'): |
| + self.assertNotEqual(w.scope('f4w1')[key], w.scope('f4w2')[key]) |
| + |
| def test_journal_is_durable_before_reply_and_cleanup_scope_is_closed(self): |
| with tempfile.TemporaryDirectory() as tmp: |
| p=Path(tmp)/'journal.json' |
| @@ -587,6 +603,54 @@ class LifecycleTests(unittest.TestCase): |
| class AssertionTests(unittest.TestCase): |
| + def live_fixture(self): |
| + return json.loads((Path(__file__).parent / 'testdata/region-group-f4w1.json').read_text()) |
| + |
| + def test_f4w1_reset_completed_even_though_systemd_forgot_exec_timestamp(self): |
| + e = self.live_fixture() |
| + self.assertEqual(w.properties(e, 'carlos-hairpin-reset')['ExecMainStartTimestampMonotonic'], '0') |
| + self.assertTrue(w.reset_completed(e)) |
| + rows = {n.split()[0]: (ok, detail) for n, ok, detail in w.assertions(e)} |
| + self.assertTrue(rows['W20'][0]) |
| + self.assertFalse(rows['W8'][0]) |
| + self.assertFalse(rows['W9'][0]) |
| + self.assertFalse(rows['P10'][0]) |
| + self.assertEqual(rows['P10'][1], 'unit settings=PASS; live edge process privileges=FAIL; bind mount flags=PASS; no tenant execution probe') |
| + e['edge_process_status'] = 'NoNewPrivs:\t1\nCapEff:\t0000000000000400\n' |
| + self.assertTrue(next(ok for n, ok, detail in w.p_assertions(e, True) if n.startswith('P10 '))) |
| + |
| + def test_reset_needs_completed_current_boot_invocations_not_default_success(self): |
| + good = self.live_fixture() |
| + journal = good['commands']['carlos-hairpin-reset-journal']['out'] |
| + mutations = [ |
| + '', '-- No entries --\n', |
| + journal.replace('Starting carlos-hairpin-reset.service...', 'unrelated'), |
| + journal.replace('Finished carlos-hairpin-reset.service.', 'unrelated'), |
| + journal.replace('systemd[1]', 'carlos[1730]'), |
| + journal + '[ 50.000000] host systemd[1]: Starting carlos-hairpin-reset.service...\n', |
| + journal + "[ 50.000000] host systemd[1]: carlos-hairpin-reset.service: Failed with result 'exit-code'.\n", |
| + ] |
| + for out in mutations: |
| + with self.subTest(out=out): |
| + e = copy.deepcopy(good) |
| + e['commands']['carlos-hairpin-reset-journal']['out'] = out |
| + self.assertFalse(w.reset_completed(e)) |
| + for name in ['carlos-hairpin-reset-journal', 'carlos-hairpin-reset-show']: |
| + e = copy.deepcopy(good) |
| + e['commands'][name] = {'rc': 1, 'out': ''} |
| + self.assertFalse(w.reset_completed(e)) |
| + e = copy.deepcopy(good) |
| + e['commands']['carlos-hairpin-reset-show']['out'] = 'Result=exit-code\nExecMainStatus=1\n' |
| + self.assertFalse(w.reset_completed(e)) |
| + |
| + def test_edge_run_requires_active_pid_as_well_as_exec_attempt(self): |
| + e = self.live_fixture() |
| + show = e['commands']['carlos-edge-show']['out'] |
| + for active, pid, expected in [('failed', '1749', False), ('active', '0', False), ('active', '1749', True)]: |
| + with self.subTest(active=active, pid=pid): |
| + e['commands']['carlos-edge-show']['out'] = show.replace('ActiveState=failed', 'ActiveState=' + active).replace('MainPID=0', 'MainPID=' + pid).replace('ExecMainStatus=203', 'ExecMainStatus=0') |
| + self.assertEqual(next(ok for n, ok, detail in w.assertions(e) if n.startswith('W8 ')), expected) |
| + |
| def evidence(self): |
| command=lambda out,rc=0:dict(rc=rc,out=out) |
| e={'commands':{},'files':{},'mounts':{},'launch_readback':{'instance':{'ImageId':w.AMI, |
diff --git a/scripts/testdata/region-group-f4w1.json b/scripts/testdata/region-group-f4w1.json| new file mode 100644 |
| index 000000000..fa0bf4438 |
| --- /dev/null |
| +++ b/scripts/testdata/region-group-f4w1.json |
| @@ -0,0 +1,261 @@ |
| +{ |
| + "budget": { |
| + "runs": [ |
| + { |
| + "owner": "5a69bface70c4690999077000352c8ce", |
| + "reserved_at": "2026-11-04T22:13:39.784218+00:00", |
| + "run": "f4w1" |
| + } |
| + ], |
| + "schema": 1 |
| + }, |
| + "commands": { |
| + "carlos-edge-journal": { |
| + "argv": [ |
| + "journalctl", |
| + "-b", |
| + "-u", |
| + "carlos-edge", |
| + "--no-pager", |
| + "-o", |
| + "short-monotonic" |
| + ], |
| + "out": "[ 42.441367] ip-172-31-9-133 systemd[1]: Starting carlos-edge.service - carlos edge (TLS terminator, host router, activator, release adoption)...\n[ 42.566317] ip-172-31-9-133 systemd[1]: Started carlos-edge.service - carlos edge (TLS terminator, host router, activator, release adoption).\n[ 42.615995] ip-172-31-9-133 (carlos)[1749]: carlos-edge.service: Failed to execute /opt/carlos/carlos: Permission denied\n[ 42.616295] ip-172-31-9-133 (carlos)[1749]: carlos-edge.service: Failed at step EXEC spawning /opt/carlos/carlos: Permission denied\n[ 42.618527] ip-172-31-9-133 systemd[1]: carlos-edge.service: Main process exited, code=exited, status=203/EXEC\n[ 42.780806] ip-172-31-9-133 systemd[1]: carlos-edge.service: Failed with result 'exit-code'.\n", |
| + "rc": 0 |
| + }, |
| + "carlos-edge-show": { |
| + "argv": [ |
| + "systemctl", |
| + "show", |
| + "carlos-edge", |
| + "-p", |
| + "Restart", |
| + "-p", |
| + "ActiveState", |
| + "-p", |
| + "ExecMainStartTimestampMonotonic", |
| + "-p", |
| + "ExecMainStatus", |
| + "-p", |
| + "Result", |
| + "-p", |
| + "ExecStartPre", |
| + "-p", |
| + "RestrictAddressFamilies", |
| + "-p", |
| + "ReadWritePaths", |
| + "-p", |
| + "User", |
| + "-p", |
| + "Group", |
| + "-p", |
| + "NoNewPrivileges", |
| + "-p", |
| + "CapabilityBoundingSet", |
| + "-p", |
| + "AmbientCapabilities", |
| + "-p", |
| + "ProtectSystem", |
| + "-p", |
| + "ProtectHome", |
| + "-p", |
| + "PrivateTmp", |
| + "-p", |
| + "PrivateDevices", |
| + "-p", |
| + "ProtectKernelTunables", |
| + "-p", |
| + "ProtectKernelModules", |
| + "-p", |
| + "MemoryDenyWriteExecute", |
| + "-p", |
| + "MainPID" |
| + ], |
| + "out": "Restart=no\nMainPID=0\nResult=exit-code\nExecMainStartTimestampMonotonic=42565880\nExecMainStatus=203\nExecStartPre={ path=/usr/bin/systemctl ; argv[]=/usr/bin/systemctl start carlos-hairpin-reset.service ; ignore_errors=no ; start_time=[Wed 2026-11-04 22:16:49 UTC] ; stop_time=[Wed 2026-11-04 22:16:49 UTC] ; pid=1730 ; code=exited ; status=0 }\nCapabilityBoundingSet=cap_net_bind_service\nAmbientCapabilities=cap_net_bind_service\nUser=carlos\nGroup=carlos\nReadWritePaths=/data /run/carlos\nPrivateTmp=yes\nPrivateDevices=yes\nProtectKernelTunables=yes\nProtectKernelModules=yes\nProtectHome=yes\nProtectSystem=strict\nNoNewPrivileges=yes\nRestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX\nMemoryDenyWriteExecute=yes\nActiveState=failed\n", |
| + "rc": 0 |
| + }, |
| + "carlos-edge-status": { |
| + "argv": [ |
| + "systemctl", |
| + "status", |
| + "carlos-edge", |
| + "--no-pager" |
| + ], |
| + "out": "\u00d7 carlos-edge.service - carlos edge (TLS terminator, host router, activator, release adoption)\n Loaded: loaded (/etc/systemd/system/carlos-edge.service; enabled; preset: enabled)\n Drop-In: /etc/systemd/system/carlos-edge.service.d\n \u2514\u250050-group.conf, 60-hairpin.conf\n Active: failed (Result: exit-code) since Wed 2026-11-04 22:16:49 UTC; 2min 1s ago\n Duration: 53ms\n Invocation: c68f10d8564c4b3089803481c39a07ae\n Process: 1730 ExecStartPre=/usr/bin/systemctl start carlos-hairpin-reset.service (code=exited, status=0/SUCCESS)\n Process: 1749 ExecStart=/opt/carlos/carlos agent (code=exited, status=203/EXEC)\n Process: 1754 ExecStopPost=/usr/bin/systemctl start carlos-hairpin-reset.service (code=exited, status=0/SUCCESS)\n Main PID: 1749 (code=exited, status=203/EXEC)\n Mem peak: 2.3M\n CPU: 77ms\n\nNov 04 22:16:49 ip-172-31-9-133 systemd[1]: Starting carlos-edge.service - carlos edge (TLS terminator, host router, activator, release adoption)...\nNov 04 22:16:49 ip-172-31-9-133 systemd[1]: Started carlos-edge.service - carlos edge (TLS terminator, host router, activator, release adoption).\nNov 04 22:16:49 ip-172-31-9-133 (carlos)[1749]: carlos-edge.service: Failed to execute /opt/carlos/carlos: Permission denied\nNov 04 22:16:49 ip-172-31-9-133 (carlos)[1749]: carlos-edge.service: Failed at step EXEC spawning /opt/carlos/carlos: Permission denied\nNov 04 22:16:49 ip-172-31-9-133 systemd[1]: carlos-edge.service: Main process exited, code=exited, status=203/EXEC\nNov 04 22:16:49 ip-172-31-9-133 systemd[1]: carlos-edge.service: Failed with result 'exit-code'.\n", |
| + "rc": 3 |
| + }, |
| + "carlos-hairpin-reset-journal": { |
| + "argv": [ |
| + "journalctl", |
| + "-b", |
| + "-u", |
| + "carlos-hairpin-reset", |
| + "--no-pager", |
| + "-o", |
| + "short-monotonic" |
| + ], |
| + "out": "[ 42.474452] ip-172-31-9-133 systemd[1]: Starting carlos-hairpin-reset.service...\n[ 42.561858] ip-172-31-9-133 systemd[1]: carlos-hairpin-reset.service: Deactivated successfully.\n[ 42.562082] ip-172-31-9-133 systemd[1]: Finished carlos-hairpin-reset.service.\n[ 42.666905] ip-172-31-9-133 systemd[1]: Starting carlos-hairpin-reset.service...\n[ 42.777760] ip-172-31-9-133 systemd[1]: carlos-hairpin-reset.service: Deactivated successfully.\n[ 42.777994] ip-172-31-9-133 systemd[1]: Finished carlos-hairpin-reset.service.\n", |
| + "rc": 0 |
| + }, |
| + "carlos-hairpin-reset-show": { |
| + "argv": [ |
| + "systemctl", |
| + "show", |
| + "carlos-hairpin-reset", |
| + "-p", |
| + "Restart", |
| + "-p", |
| + "ActiveState", |
| + "-p", |
| + "ExecMainStartTimestampMonotonic", |
| + "-p", |
| + "ExecMainStatus", |
| + "-p", |
| + "Result", |
| + "-p", |
| + "ExecStartPre", |
| + "-p", |
| + "RestrictAddressFamilies", |
| + "-p", |
| + "ReadWritePaths", |
| + "-p", |
| + "User", |
| + "-p", |
| + "Group", |
| + "-p", |
| + "NoNewPrivileges", |
| + "-p", |
| + "CapabilityBoundingSet", |
| + "-p", |
| + "AmbientCapabilities", |
| + "-p", |
| + "ProtectSystem", |
| + "-p", |
| + "ProtectHome", |
| + "-p", |
| + "PrivateTmp", |
| + "-p", |
| + "PrivateDevices", |
| + "-p", |
| + "ProtectKernelTunables", |
| + "-p", |
| + "ProtectKernelModules", |
| + "-p", |
| + "MemoryDenyWriteExecute", |
| + "-p", |
| + "MainPID" |
| + ], |
| + "out": "Restart=no\nMainPID=0\nResult=success\nExecMainStartTimestampMonotonic=0\nExecMainStatus=0\nCapabilityBoundingSet=cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore\nAmbientCapabilities=\nUser=\nGroup=\nReadWritePaths=\nPrivateTmp=no\nPrivateDevices=no\nProtectKernelTunables=no\nProtectKernelModules=no\nProtectHome=no\nProtectSystem=no\nNoNewPrivileges=no\nRestrictAddressFamilies=~\nMemoryDenyWriteExecute=no\nActiveState=inactive\n", |
| + "rc": 0 |
| + }, |
| + "carlos-instance-control-show": { |
| + "argv": [ |
| + "systemctl", |
| + "show", |
| + "carlos-instance-control", |
| + "-p", |
| + "Restart", |
| + "-p", |
| + "ActiveState", |
| + "-p", |
| + "ExecMainStartTimestampMonotonic", |
| + "-p", |
| + "ExecMainStatus", |
| + "-p", |
| + "Result", |
| + "-p", |
| + "ExecStartPre", |
| + "-p", |
| + "RestrictAddressFamilies", |
| + "-p", |
| + "ReadWritePaths", |
| + "-p", |
| + "User", |
| + "-p", |
| + "Group", |
| + "-p", |
| + "NoNewPrivileges", |
| + "-p", |
| + "CapabilityBoundingSet", |
| + "-p", |
| + "AmbientCapabilities", |
| + "-p", |
| + "ProtectSystem", |
| + "-p", |
| + "ProtectHome", |
| + "-p", |
| + "PrivateTmp", |
| + "-p", |
| + "PrivateDevices", |
| + "-p", |
| + "ProtectKernelTunables", |
| + "-p", |
| + "ProtectKernelModules", |
| + "-p", |
| + "MemoryDenyWriteExecute", |
| + "-p", |
| + "MainPID" |
| + ], |
| + "out": "Restart=no\nMainPID=0\nResult=success\nExecMainStartTimestampMonotonic=0\nExecMainStatus=0\nCapabilityBoundingSet=cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore\nAmbientCapabilities=\nUser=\nGroup=\nReadWritePaths=/run/carlos-control /run/systemd/system -/run/carlos-hairpin\nPrivateTmp=yes\nPrivateDevices=yes\nProtectKernelTunables=yes\nProtectKernelModules=yes\nProtectHome=yes\nProtectSystem=strict\nNoNewPrivileges=no\nRestrictAddressFamilies=AF_NETLINK AF_UNIX\nMemoryDenyWriteExecute=yes\nActiveState=inactive\n", |
| + "rc": 0 |
| + } |
| + }, |
| + "edge_process_status": "", |
| + "mounts": { |
| + "/data/instances": { |
| + "dev": 66305, |
| + "findmnt": { |
| + "argv": [ |
| + "findmnt", |
| + "-T", |
| + "/data/instances", |
| + "-o", |
| + "TARGET,SOURCE,FSTYPE,OPTIONS" |
| + ], |
| + "out": "TARGET SOURCE FSTYPE OPTIONS\n/data/instances /dev/nvme0n1p1[/data/.instances] ext4 rw,nosuid,nodev,noexec,relatime,nosymfollow,discard,errors=remount-ro\n", |
| + "rc": 0 |
| + }, |
| + "flags": 12302, |
| + "noexec": true, |
| + "probe": "/data/instances", |
| + "realpath": "/data/instances" |
| + }, |
| + "/run/carlos/instances": { |
| + "dev": 27, |
| + "findmnt": { |
| + "argv": [ |
| + "findmnt", |
| + "-T", |
| + "/run/carlos/instances", |
| + "-o", |
| + "TARGET,SOURCE,FSTYPE,OPTIONS" |
| + ], |
| + "out": "TARGET SOURCE FSTYPE OPTIONS\n/run/carlos/instances tmpfs[/carlos/.instances] tmpfs rw,nosuid,nodev,noexec,relatime,nosymfollow,size=95028k,mode=755,inode64\n", |
| + "rc": 0 |
| + }, |
| + "flags": 12302, |
| + "noexec": true, |
| + "probe": "/run/carlos/instances", |
| + "realpath": "/run/carlos/instances" |
| + }, |
| + "/run/carlos/logs": { |
| + "dev": 27, |
| + "findmnt": { |
| + "argv": [ |
| + "findmnt", |
| + "-T", |
| + "/run/carlos/logs", |
| + "-o", |
| + "TARGET,SOURCE,FSTYPE,OPTIONS" |
| + ], |
| + "out": "TARGET SOURCE FSTYPE OPTIONS\n/run/carlos/logs tmpfs[/carlos/.logs] tmpfs rw,nosuid,nodev,noexec,relatime,nosymfollow,size=95028k,mode=755,inode64\n", |
| + "rc": 0 |
| + }, |
| + "flags": 12302, |
| + "noexec": true, |
| + "probe": "/run/carlos/logs", |
| + "realpath": "/run/carlos/logs" |
| + } |
| + }, |
| + "source": "witness-f4w1/x/evidence.json; selected fields copied without modification; budget copied from witness-budget.json" |
| +} |