1
0
mirror of https://github.com/systemd/systemd synced 2026-03-30 19:54:51 +02:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Yu Watanabe
ddc9677c4f
test-network: several tweaks (#39752) 2025-11-17 06:39:45 +09:00
Yu Watanabe
d7cf08b735 test-network: drop two overly verbose outputs
Follow-up for 7f9c0c31d2f00f472c361868ac2184d77113db72.
2025-11-16 22:15:44 +09:00
Yu Watanabe
3632d7322f test-network: set TimeoutStopFailureMode=abort when running with sanitizers
Hopefully this provides useful data for issue #39631.
2025-11-16 22:15:43 +09:00
Yu Watanabe
c43585bc30 Revert "test-network: disable several more sandbox features when running with sanitizers"
This reverts commit 454ce423050890bdc8c3c90add3713592a3cab38.

Unfortunately, it does not work.
2025-11-16 22:15:43 +09:00

View File

@ -492,18 +492,9 @@ def create_service_dropin(service, command, additional_settings=None):
if ubsan_options:
drop_in += [f'Environment=UBSAN_OPTIONS="{ubsan_options}"']
if asan_options or lsan_options or ubsan_options:
# Disable system call filter when running with sanitizers, as they seem to call filtered syscall at
# the very end of the execution and stuck the process. See issue #39567.
drop_in += [
'LockPersonality=no',
'ProtectClock=no',
'ProtectKernelLogs=no',
'RestrictAddressFamilies=',
'RestrictNamespaces=no',
'RestrictRealtime=no',
'RestrictSUIDSGID=no',
'SystemCallArchitectures=',
'SystemCallFilter=',
'TimeoutStopFailureMode=abort',
]
if use_valgrind or asan_options or lsan_options or ubsan_options:
drop_in += ['MemoryDenyWriteExecute=no']
@ -7365,7 +7356,6 @@ class NetworkdDHCPServerTests(unittest.TestCase, Utilities):
output = networkctl_json('veth99')
check_json(output)
print(output)
data = json.loads(output)
self.assertEqual(data['DHCPv4Client']['Lease']['Hostname'], 'simple-host')
@ -7378,7 +7368,6 @@ class NetworkdDHCPServerTests(unittest.TestCase, Utilities):
output = networkctl_json('veth99')
check_json(output)
print(output)
data = json.loads(output)
self.assertEqual(data['DHCPv4Client']['Lease']['Hostname'], 'fqdn.example.com')