mirror of
https://github.com/systemd/systemd
synced 2026-03-31 12:14:57 +02:00
Compare commits
No commits in common. "ddc9677c4f23b9afc2edb3c1e2163587bd913a29" and "8fc02a8cfd3da1a0f967b429ad40f90e842819e3" have entirely different histories.
ddc9677c4f
...
8fc02a8cfd
@ -492,9 +492,18 @@ def create_service_dropin(service, command, additional_settings=None):
|
|||||||
if ubsan_options:
|
if ubsan_options:
|
||||||
drop_in += [f'Environment=UBSAN_OPTIONS="{ubsan_options}"']
|
drop_in += [f'Environment=UBSAN_OPTIONS="{ubsan_options}"']
|
||||||
if asan_options or lsan_options or 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 += [
|
drop_in += [
|
||||||
|
'LockPersonality=no',
|
||||||
|
'ProtectClock=no',
|
||||||
|
'ProtectKernelLogs=no',
|
||||||
|
'RestrictAddressFamilies=',
|
||||||
|
'RestrictNamespaces=no',
|
||||||
|
'RestrictRealtime=no',
|
||||||
|
'RestrictSUIDSGID=no',
|
||||||
|
'SystemCallArchitectures=',
|
||||||
'SystemCallFilter=',
|
'SystemCallFilter=',
|
||||||
'TimeoutStopFailureMode=abort',
|
|
||||||
]
|
]
|
||||||
if use_valgrind or asan_options or lsan_options or ubsan_options:
|
if use_valgrind or asan_options or lsan_options or ubsan_options:
|
||||||
drop_in += ['MemoryDenyWriteExecute=no']
|
drop_in += ['MemoryDenyWriteExecute=no']
|
||||||
@ -7356,6 +7365,7 @@ class NetworkdDHCPServerTests(unittest.TestCase, Utilities):
|
|||||||
|
|
||||||
output = networkctl_json('veth99')
|
output = networkctl_json('veth99')
|
||||||
check_json(output)
|
check_json(output)
|
||||||
|
print(output)
|
||||||
data = json.loads(output)
|
data = json.loads(output)
|
||||||
self.assertEqual(data['DHCPv4Client']['Lease']['Hostname'], 'simple-host')
|
self.assertEqual(data['DHCPv4Client']['Lease']['Hostname'], 'simple-host')
|
||||||
|
|
||||||
@ -7368,6 +7378,7 @@ class NetworkdDHCPServerTests(unittest.TestCase, Utilities):
|
|||||||
|
|
||||||
output = networkctl_json('veth99')
|
output = networkctl_json('veth99')
|
||||||
check_json(output)
|
check_json(output)
|
||||||
|
print(output)
|
||||||
data = json.loads(output)
|
data = json.loads(output)
|
||||||
self.assertEqual(data['DHCPv4Client']['Lease']['Hostname'], 'fqdn.example.com')
|
self.assertEqual(data['DHCPv4Client']['Lease']['Hostname'], 'fqdn.example.com')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user