Repository Analysis

systemd/systemd

The systemd System and Service Manager

1.6 Likely human-written View on GitHub
1.6
Adjusted Score
1.6
Raw Score
100%
Time Factor
2026-05-30
Last Push
16,338
Stars
C
Language
1,368,493
Lines of Code
4342
Files
2043
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 10MEDIUM 91LOW 1942

Pattern Findings

2043 matches across 15 categories. Click a row to expand file-level details.

Over-Commented Block1723 hits · 1708 pts
SeverityFileLineSnippet
LOW.ycm_extra_conf.py1#!/usr/bin/env python3
LOW.ycm_extra_conf.py21# In jurisdictions that recognize copyright laws, the author or authors
LOW.ycm_extra_conf.py121flags = [
LOWman/libsystemd.xml21 <refpurpose>Functions for implementing services and interacting with systemd</refpurpose>
LOWman/yubikey-crypttab.sh1# SPDX-License-Identifier: MIT-0
LOWman/yubikey-crypttab.sh21sudo systemd-cryptenroll --pkcs11-token-uri=auto /dev/sdXn
LOWman/org.freedesktop.resolve1.xml481#define SD_RESOLVED_NO_VALIDATE (UINT64_C(1) &lt;&lt; 10)
LOWman/fido2-crypttab.sh1# SPDX-License-Identifier: MIT-0
LOWman/systemd.network.xml6721#SubnetId=0
LOWman/notify-selfcontained-example.c1/* SPDX-License-Identifier: MIT-0 */
LOWman/sd-bus-errors.xml61 <funcsynopsisinfo>#include &lt;systemd/sd-bus.h&gt;</funcsynopsisinfo>
LOWman/sd-bus-errors.xml81#define SD_BUS_ERROR_FILE_NOT_FOUND "org.freedesktop.DBus.Error.FileNotFound"
LOWhwdb.d/parse_hwdb.py1#!/usr/bin/env python3
LOWhwdb.d/acpi-update.py21# This file is part of systemd.
LOWcoccinelle/run-coccinelle.sh61 # at once one spatch process can take around 2.5 GiB of RAM, which can easily eat up all available RAM
LOWcoccinelle/parsing_hacks.h81#define FOREACH_ELEMENT(i, array) YACFE_ITERATOR
LOWtools/elf2efi.py1#!/usr/bin/env python3
LOWtools/catalog-report.py1#!/usr/bin/env python3
LOWtest/test-udev.py1#!/usr/bin/env python3
LOWtest/sd-script.py1#!/usr/bin/env python3
LOWtest/networkd-test.py1#!/usr/bin/env python3
LOWtest/test-network/systemd-networkd-tests.py1#!/usr/bin/env python3
LOWtest/test-network/systemd-networkd-tests.py5481 self.assertRegex(output, 'inet6 .* scope link')
LOWtest/test-network/systemd-networkd-tests.py10301
LOWtest/integration-tests/integration-test-wrapper.py141 fatal_begin = re.compile(r'==[0-9]+==.+?\w+Sanitizer has encountered a fatal error')
LOWtest/units/TEST-07-PID1.alias-corruption.sh101[Service]
LOWtest/units/TEST-87-AUX-UTILS-VM.vmspawn-drives.sh1#!/usr/bin/env bash
LOWtest/units/TEST-91-LIVEUPDATE.sh161 # each automated auto-restart attempt. Use Restart=on-failure with
LOW…t/units/TEST-53-TIMER.RandomizedDelaySec-persistent.sh1#!/usr/bin/env bash
LOWtest/units/TEST-87-AUX-UTILS-VM.replace-storage.sh1#!/usr/bin/env bash
LOWtest/units/TEST-13-NSPAWN.nspawn.sh1#!/usr/bin/env bash
LOWtest/units/TEST-13-NSPAWN.nspawn.sh1381 local root
LOWtest/units/TEST-22-TMPFILES.12.sh1#!/usr/bin/env bash
LOWtest/units/TEST-07-PID1.delegate-namespaces.sh1#!/usr/bin/env bash
LOWtest/units/TEST-63-PATH.sh81# Test for race condition fixed by https://github.com/systemd/systemd/pull/30768
LOWtest/units/TEST-89-RESOLVED-MDNS.sh141 # "family": 10,
LOW…its/TEST-19-CGROUP.abort-on-cgroup-creation-failure.sh1#!/usr/bin/env bash
LOWtest/units/TEST-65-ANALYZE.sh201systemd-analyze cat-config systemd/system.conf foo/bar systemd/journald.conf >/dev/null
LOWtest/units/TEST-65-ANALYZE.sh221# recommended. Defaults can be restored by simply deleting the main
LOWtest/units/TEST-87-AUX-UTILS-VM.bind-volume.sh1#!/usr/bin/env bash
LOWtest/units/TEST-07-PID1.transient-unit-container.sh1#!/usr/bin/env bash
LOWtest/units/TEST-07-PID1.transient-unit-container.sh41readonly CONTAINER_ROOT_FS HOST_OUT_DIR
LOWtest/units/TEST-07-PID1.exec-context.sh1#!/usr/bin/env bash
LOWtest/units/TEST-04-JOURNAL.bsod.sh21 cat /tmp/console.dump
LOWtest/units/TEST-09-REBOOT.journal.sh21get_last_timestamp() {
LOWtest/units/TEST-22-TMPFILES.04.sh41# Must be fixed
LOWtest/units/TEST-53-TIMER.RandomizedDelaySec-reload.sh1#!/usr/bin/env bash
LOWtest/units/TEST-90-RESTRICT-FSACCESS.enforce.sh1#!/usr/bin/env bash
LOWtest/units/TEST-67-INTEGRITY.sh121 # for the underlying hash algorithm when needed. That auto-load has been
LOWLICENSES/BSD-3-Clause.txt1// Copyright 2014 The Chromium OS Authors. All rights reserved.
LOWLICENSES/BSD-3-Clause.txt21// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
LOWxorg/50-systemd-user.sh1#!/bin/sh
LOWprofile.d/70-systemd-shell-extra.sh1# shellcheck shell=sh
LOWprofile.d/80-systemd-osc-context.sh1# SPDX-License-Identifier: LGPL-2.1-or-later
LOWprofile.d/80-systemd-osc-context.sh21#
LOWsrc/journal/journald.c1/* SPDX-License-Identifier: LGPL-2.1-or-later */
LOWsrc/journal/journalctl-filter.c1/* SPDX-License-Identifier: LGPL-2.1-or-later */
LOWsrc/journal/journald-syslog.c1/* SPDX-License-Identifier: LGPL-2.1-or-later */
LOWsrc/journal/journald-syslog.c21#include "journald-wall.h"
LOWsrc/journal/journald-stream.c1/* SPDX-License-Identifier: LGPL-2.1-or-later */
1663 more matches not shown…
Self-Referential Comments70 hits · 214 pts
SeverityFileLineSnippet
MEDIUMruff.toml4# This file is imported from an external project.
MEDIUMman/yubikey-crypttab.sh10# Create a self-signed certificate from this public key, and store it on the
MEDIUMman/homectl.xml1633# Create a self-signed certificate from this public key, and store it on the device.
MEDIUMhwdb.d/parse_hwdb.py6# This file is distributed under the MIT license, see below.
MEDIUMhwdb.d/ids_parser.py159# This file is part of systemd.
MEDIUMhwdb.d/acpi-update.py21# This file is part of systemd.
MEDIUMcoccinelle/run-coccinelle.sh23# Create an array from files tracked by git...
MEDIUMtools/update-hwdb-autosuspend.sh11# This file is part of systemd.
MEDIUMtools/catalog-report.py4# This file is distributed under the MIT license, see below.
MEDIUMtest/test-udev.py160 # Create a device list with all block devices under /sys
MEDIUMtest/networkd-test.py1324 # Define the veth+peer pairs to be created.
MEDIUMtest/networkd-test.py1331 # Define the contents of .network files to be read in order.
MEDIUMtest/units/TEST-45-TIMEDATE.sh348 # Create a dummy interface managed by networkd, so we can configure link NTP servers
MEDIUMtest/units/TEST-87-AUX-UTILS-VM.vmspawn-drives.sh69# Create a minimal root filesystem directory, then bake it into a raw ext4 image.
MEDIUMtest/units/TEST-07-PID1.main-PID-change.sh68# Create a number of children, and make one the main one
MEDIUMtest/units/TEST-07-PID1.main-PID-change.sh98# Create a number of children, and make one the main one
MEDIUMtest/units/TEST-54-CREDS.sh71# Create a dummy "full" disk (similar to /dev/full) to check out-of-space
MEDIUMtest/units/TEST-13-NSPAWN.machined.sh33# Create a couple of containers we can refer to in tests
MEDIUMtest/units/TEST-87-AUX-UTILS-VM.vmspawn.sh71# Create a minimal root filesystem. The guest does not need to fully boot -- we only need QEMU running
MEDIUMtest/units/TEST-13-NSPAWN.nspawn.sh78 # Create a simple image from the just created container template
MEDIUMtest/units/TEST-22-TMPFILES.12.sh39# Create a bunch of other files.
MEDIUMtest/units/TEST-81-GENERATORS.getty-generator.sh148# Create a bunch of dummy consoles
MEDIUMtest/units/TEST-13-NSPAWN.nss-mymachines.sh28# Create a bunch of containers that:
MEDIUMtest/units/TEST-13-NSPAWN.nss-mymachines.sh75# Create the respective .nspawn config files
MEDIUMtest/units/TEST-87-AUX-UTILS-VM.pstore.sh179 # Create a name reference to one of the $DUMMY_DMESG_X variables
MEDIUMtest/units/TEST-87-AUX-UTILS-VM.pstore.sh224 # Create a name reference to one of the $DUMMY_DMESG_X variables
MEDIUMtest/units/TEST-74-AUX-UTILS.varlinkctl.sh108# Create a fake "ssh" binary that validates everything works as expected if invoked for the "ssh-unix:" Varlink transpor
MEDIUMtest/units/TEST-19-CGROUP.delegate.sh107 # Create a subcgroup, and make it owned by some unrelated user
MEDIUMtest/units/TEST-74-AUX-UTILS.path.sh22# Create a custom user-dirs.dir file to exercise the xdg-user-dirs part
MEDIUMtest/units/TEST-65-ANALYZE.sh210# This file is part of systemd.
MEDIUMtest/units/TEST-23-UNIT-FILE.type-exec.sh8# Create a binary for which execve() will fail
MEDIUMtest/units/TEST-26-SYSTEMCTL.sh19# Create a simple unit file for testing
MEDIUMtest/units/TEST-74-AUX-UTILS.delta.sh12# Create a couple of supporting units with overrides
MEDIUMtest/units/TEST-74-AUX-UTILS.firstboot.sh60# Create a minimal root so we don't modify the testbed
MEDIUMtest/units/TEST-75-RESOLVED.sh157 # Create a trust anchor for resolved with our root zone
MEDIUMtest/units/TEST-75-RESOLVED.sh159 # Create a bind-compatible trust anchor (for delv)
MEDIUMtest/units/TEST-64-UDEV-STORAGE.sh885 # Create a key-file
MEDIUMtest/units/TEST-64-UDEV-STORAGE.sh909 # Create a multi-device btrfs filesystem on the LUKS devices
MEDIUMtest/units/TEST-64-UDEV-STORAGE.sh1102 # Create a cursor file to skip messages generated by udevd in initrd, as it
MEDIUMtest/units/TEST-64-UDEV-STORAGE.sh1182 # Create a simple RAID 1 with an ext4 filesystem
MEDIUMtest/units/TEST-64-UDEV-STORAGE.sh1213 # Create a simple RAID 5 with an ext4 filesystem
MEDIUMtest/units/TEST-64-UDEV-STORAGE.sh1254 # Create a simple RAID 10 with an ext4 filesystem
MEDIUMtest/units/TEST-64-UDEV-STORAGE.sh1323 # Create a RAID 10 with LVM + ext4
MEDIUMtest/units/TEST-64-UDEV-STORAGE.sh1326 # Create an LVM on the MD
MEDIUMtest/units/TEST-07-PID1.transient-unit-container.sh105# Create a test-service unit file that will run via the container's systemd and
MEDIUMtest/units/TEST-74-AUX-UTILS.socket-proxyd.sh32# Create a socket unit for the proxy
MEDIUMtest/units/TEST-07-PID1.exec-context.sh223 # Create a VRF interface to later bind to and check if the binding is working
MEDIUMtest/units/TEST-13-NSPAWN.nspawn-oci.sh357# Create a simple "entrypoint" script that validates that the container
MEDIUMtest/units/TEST-87-AUX-UTILS-VM.mount.sh153# Create a vfat image, as ext4 doesn't support uid=/gid= fixating for all
MEDIUMtest/units/util.sh404 # Create a data-only extension image (no unit files) to test that
MEDIUMtest/units/TEST-72-SYSUPDATE.sh71 # Create a pair of random partition payloads, and compress one.
MEDIUMtest/units/TEST-72-SYSUPDATE.sh79 # Create a file payload and a suffixed version
MEDIUMtest/units/TEST-72-SYSUPDATE.sh83 # Create a random "UKI" payload
MEDIUMtest/units/TEST-72-SYSUPDATE.sh86 # Create a random extra payload
MEDIUMtest/units/TEST-72-SYSUPDATE.sh89 # Create a random optional payload
MEDIUMtest/units/TEST-72-SYSUPDATE.sh392 # Create a fifth version, that's complete on the server side. We should
MEDIUMtest/units/TEST-72-SYSUPDATE.sh527 # Create a 9th version but corrupt the checksum in SHA256SUMS so pulling it
MEDIUMtest/units/TEST-46-HOMED.sh47# Create a tmpfs to use as backing store for the home dir. That way we can enforce a size limit nicely.
MEDIUMtest/units/TEST-46-HOMED.sh442 # Create a couple of user/group records to test io.systemd.DropIn
MEDIUMtest/units/test-control.sh158 # Create a list of all functions prefixed with testcase_
10 more matches not shown…
Redundant / Tautological Comments79 hits · 104 pts
SeverityFileLineSnippet
LOW.ycm_extra_conf.py137# Set this to the absolute path to the folder (NOT the file!) containing the
LOWtools/find-unused-library-symbols.py121 # Check if library_name appears in the ldd output
LOWtools/find-unused-library-symbols.py266 # Print results
LOWtest/test-network-generator-conversion.sh219# Check if the generated .network files match the expected stored ones
LOWtest/test-network/systemd-networkd-tests.py1144 # Check if networkd exits cleanly.
LOWtest/test-network/systemd-networkd-tests.py5912 # Check if a link went down
LOWtest/test-network/systemd-networkd-tests.py5914 # Check if an address was removed
LOWtest/test-network/systemd-networkd-tests.py5917 # Check if the default route was removed
LOWtest/test-network/systemd-networkd-tests.py5517 # Check if the IPv6LL address is removed.
LOWtest/test-network/systemd-networkd-tests.py5526 # Check if a new IPv6LL address is assigned.
LOWtest/test-network/systemd-networkd-tests.py6142 # Check if the route which needs nexthop 21 are forgotten.
LOWtest/test-network/systemd-networkd-tests.py6152 # Check if the requested route actually configured.
LOWtest/test-network/systemd-networkd-tests.py7631 # Check if the non-default routes are unchanged, and others are actually dropped.
LOWtest/test-network/systemd-networkd-tests.py7642 # Check if sd-radv refuses RS from the same interface.
LOWtest/test-network/systemd-networkd-tests.py8043 # Check if nexthop is removed.
LOWtest/test-network/systemd-networkd-tests.py8263 # Check if the same addresses are used even if the service is restarted.
LOWtest/test-network/systemd-networkd-tests.py9105 # Check if DHCPv4 address and routes are removed on stop. For issue #34837.
LOWtest/test-network/systemd-networkd-tests.py9372 # Check if the client send RELEASE message of the previous lease
LOWtest/units/TEST-17-UDEV.diskseq.sh43# Check if no lock file exists, if the lock directory exists.
LOWtest/units/TEST-17-UDEV.diskseq.sh63# Check if the lock directory exists, but no lock file exists in it.
LOWtest/units/TEST-54-CREDS.sh327# Check if credentials with invalid names are not imported.
LOWtest/units/TEST-54-CREDS.sh335# Check if credentials with invalid names are not imported (with renaming).
LOWtest/units/TEST-13-NSPAWN.nspawn.sh99 # Check if the $root doesn't get re-initialized once it's not empty
LOWtest/units/TEST-22-TMPFILES.12.sh197# Check if sub-directories are removed regardless
LOWtest/units/TEST-17-UDEV.database.sh10# Check if the database file is created.
LOWtest/units/TEST-17-UDEV.sanity-check.sh59# Check if processing queued events has been stopped.
LOWtest/units/TEST-17-UDEV.sanity-check.sh64# Check if processing queued events has been restarted.
LOWtest/units/TEST-74-AUX-UTILS.machine-id-setup.sh72# Check if we correctly processed the invalid machine ID we set up in the respective
LOWtest/units/TEST-07-PID1.mask.sh29# Check if ExecStop= and friends in a masked unit are not executed even defined
LOWtest/units/TEST-07-PID1.mask.sh52# Check if mask --now works and ExecStop= are not executed.
LOWtest/units/TEST-07-PID1.mask.sh69# Check if mask --now for already masked unit stops the service.
LOWtest/units/TEST-07-PID1.mask.sh86# Check if already masked unit can be stopped.
LOW…st/units/TEST-81-GENERATORS.environment-d-generator.sh75# Check if the generator is correctly called in a user session
LOWtest/units/TEST-89-RESOLVED-MDNS.sh70 # Check if the services we got are the correct ones
LOWtest/units/TEST-89-RESOLVED-MDNS.sh92 # Check if the services we got are the correct ones
LOWtest/units/TEST-70-TPM2.measure.sh108# Check if SHA1 signatures are supported
LOWtest/units/TEST-70-TPM2.measure.sh141# Check if we can activate that (without the token module stuff)
LOWtest/units/TEST-70-TPM2.measure.sh145# Check if we can activate that (and a second time with the token module stuff enabled)
LOWtest/units/TEST-26-SYSTEMCTL.sh271# Check if the directories from *Directory= directives exist
LOWtest/units/TEST-23-UNIT-FILE.ExtraFileDescriptors.sh21# Open files and assign FD to variables
LOWtest/units/TEST-17-UDEV.watch.sh35 # Check if the inotify watch fd is received from fd store.
LOWtest/units/TEST-17-UDEV.watch.sh38 # Check if there is no broken symlink chain.
LOWtest/units/TEST-17-UDEV.watch.sh55# Check if the first invocation (should be in initrd) pushed the inotify fd to fdstore,
LOWtest/units/TEST-50-DISSECT.dissect.sh1031# Check if the /dev/loop/* symlinks really reference the right device
LOWtest/units/TEST-50-DISSECT.dissect.sh1051# Check if the /dev/disk/by-loop-ref/$name symlink really references the right device
LOWtest/units/TEST-50-DISSECT.dissect.sh1061# Check if the /dev/disk/by-loop-ref/$name symlink does not exist
LOWtest/units/post.sh11# Check if sd-executor doesn't complain about not being able to (de)serialize stuff
LOWtest/units/TEST-75-RESOLVED.sh1130 # Check if resolved exits cleanly.
LOWtest/units/TEST-04-JOURNAL.journal-gatewayd.sh91# Check if the specified cursor refers to an existing entry and return just that entry
LOWtest/units/TEST-17-UDEV.device_is_processing.sh59# Check if the reexec and reload have finished during processing the event.
LOWtest/units/TEST-17-UDEV.device_is_processing.sh66# Check if ID_PROCESSING flag is unset, and the device units are active.
LOWtest/units/TEST-17-UDEV.device_is_processing.sh86# Check if the service and device units are still active even ID_PROCESSING flag is set.
LOWtest/units/TEST-17-UDEV.device_is_processing.sh105# Check if the reexec and reload have finished during processing the event.
LOWtest/units/TEST-64-UDEV-STORAGE.sh8# Check if all symlinks under /dev/disk/ are valid
LOWtest/units/TEST-64-UDEV-STORAGE.sh17 # Check if all given paths are valid
LOWtest/units/TEST-64-UDEV-STORAGE.sh34 # Check if the symlink points to the correct device in /dev
LOWtest/units/TEST-64-UDEV-STORAGE.sh553 # Check if unnecessary devlinks are removed.
LOWtest/units/TEST-64-UDEV-STORAGE.sh907 # Check if we have all necessary DM devices
LOWtest/units/TEST-64-UDEV-STORAGE.sh1151 # Check if the respective "hashed" units exist and are active (plugged)
LOWtest/units/TEST-64-UDEV-STORAGE.sh1296 # Check if all expected symlinks were removed after the cleanup
19 more matches not shown…
Deep Nesting39 hits · 39 pts
SeverityFileLineSnippet
LOW.ycm_extra_conf.py88
LOW.ycm_extra_conf.py197
LOWhwdb.d/parse_hwdb.py378
LOWhwdb.d/ids_parser.py199
LOWhwdb.d/ids_parser.py236
LOWhwdb.d/ids_parser.py274
LOWhwdb.d/ids_parser.py360
LOWtools/find-unused-library-symbols.py28
LOWtools/make-directive-index.py17
LOWtools/update-dbus-docs.py113
LOWtools/update-dbus-docs.py143
LOWtools/update-dbus-docs.py213
LOWtools/gdb-sd_dump_hashmaps.py14
LOWtools/check-version-history.py17
LOWtools/check-version-history.py36
LOWtools/analyze-dump-sort.py21
LOWtest/create-sys-script.py88
LOWtest/create-sys-script.py134
LOWtest/networkd-test.py471
LOWtest/test-network/systemd-networkd-tests.py500
LOWtest/test-network/systemd-networkd-tests.py817
LOWtest/test-network/systemd-networkd-tests.py1401
LOWtest/test-network/systemd-networkd-tests.py6798
LOWtest/test-network/systemd-networkd-tests.py7128
LOWtest/integration-tests/integration-test-wrapper.py123
LOWtest/integration-tests/integration-test-wrapper.py256
LOWtest/units/TEST-69-SHUTDOWN.py11
LOWsrc/ukify/ukify.py163
LOWsrc/ukify/ukify.py674
LOWsrc/ukify/ukify.py728
LOWsrc/ukify/ukify.py764
LOWsrc/ukify/ukify.py939
LOWsrc/ukify/ukify.py1133
LOWsrc/ukify/ukify.py1212
LOWsrc/ukify/ukify.py1319
LOWsrc/ukify/ukify.py2244
LOWsrc/ukify/ukify.py2300
LOWsrc/ukify/ukify.py2363
LOWsrc/ukify/ukify.py2547
Hyper-Verbose Identifiers82 hits · 38 pts
SeverityFileLineSnippet
LOWtools/find-unused-library-symbols.py104def verify_executable_links_library(executable_path, library_name):
LOWtools/find-unused-library-symbols.py129def get_library_internal_references(library_path, exported_symbols):
LOWtools/elf2efi.py381def apply_elf_relative_relocation(
LOWtools/check-version-history.py17def find_undocumented_functions(pages, ignorelist):
LOWtools/check-version-history.py57def find_undocumented_commands(pages, ignorelist):
LOWtest/test-systemd-tmpfiles.py231def test_conditionalized_execute_bit():
LOWtest/networkd-test.py321 def test_bridge_port_priority(self):
LOWtest/networkd-test.py336 def test_bridge_port_priority_set_zero(self):
LOWtest/networkd-test.py352 def test_bridge_port_property(self):
LOWtest/networkd-test.py644 def test_route_only_dns_all_domains(self):
LOWtest/networkd-test.py767 def test_resolved_domain_restricted_dns(self):
LOWtest/networkd-test.py983 def test_transient_hostname_with_static(self):
LOWtest/networkd-test.py1358 def test_unmanaged_setting_coldplug(self):
LOWtest/networkd-test.py1372 def test_catchall_config_coldplug(self):
LOWtest/test-network/systemd-networkd-tests.py342def copy_networkd_conf_dropin(*dropins):
LOWtest/test-network/systemd-networkd-tests.py349def remove_networkd_conf_dropin(*dropins):
LOWtest/test-network/systemd-networkd-tests.py355def clear_networkd_conf_dropins():
LOWtest/test-network/systemd-networkd-tests.py248def networkd_has_sysctl_monitor_bpf():
LOWtest/test-network/systemd-networkd-tests.py378def clear_networkd_state_files():
LOWtest/test-network/systemd-networkd-tests.py695def save_routing_policy_rules():
LOWtest/test-network/systemd-networkd-tests.py709def flush_routing_policy_rules():
LOWtest/test-network/systemd-networkd-tests.py796def read_ip_neigh_sysctl_attr(link, attribute, ipv):
LOWtest/test-network/systemd-networkd-tests.py1928 def test_wait_online_dns_global(self):
LOWtest/test-network/systemd-networkd-tests.py1944 def test_wait_online_dns_expect_timeout(self):
LOWtest/test-network/systemd-networkd-tests.py1960 def test_wait_online_dns_expect_timeout_global(self):
LOWtest/test-network/systemd-networkd-tests.py1989 def test_dropin_and_name_conflict(self):
LOWtest/test-network/systemd-networkd-tests.py3585 def test_tunnel_independent_loopback(self):
LOWtest/test-network/systemd-networkd-tests.py4494 def test_configure_without_carrier(self):
LOWtest/test-network/systemd-networkd-tests.py4518 def test_configure_without_carrier_yes_ignore_carrier_loss_no(self):
LOWtest/test-network/systemd-networkd-tests.py4612 def _test_routing_policy_rule(self, manage_foreign_routes):
LOWtest/test-network/systemd-networkd-tests.py4656 def test_routing_policy_rule_restart_and_reconfigure(self):
LOWtest/test-network/systemd-networkd-tests.py4685 def test_routing_policy_rule_reconfigure(self):
LOWtest/test-network/systemd-networkd-tests.py4745 def test_routing_policy_rule_manual(self):
LOWtest/test-network/systemd-networkd-tests.py4785 def test_routing_policy_rule_port_range(self):
LOWtest/test-network/systemd-networkd-tests.py4799 def test_routing_policy_rule_invert(self):
LOWtest/test-network/systemd-networkd-tests.py4822 def test_routing_policy_rule_uidrange(self):
LOWtest/test-network/systemd-networkd-tests.py4947 def _check_unreachable_routes_removed(self):
LOWtest/test-network/systemd-networkd-tests.py5259 def test_gateway_clear_routes(self):
LOWtest/test-network/systemd-networkd-tests.py5291 def test_route_preferred_source_with_existing_address(self):
LOWtest/test-network/systemd-networkd-tests.py5468 def test_link_local_addressing(self):
LOWtest/test-network/systemd-networkd-tests.py5739 def _test_activation_policy_required_for_online(self, policy, required):
LOWtest/test-network/systemd-networkd-tests.py5777 def test_activation_policy_required_for_online(self):
LOWtest/test-network/systemd-networkd-tests.py5801 def test_keep_configuration_yes(self):
LOWtest/test-network/systemd-networkd-tests.py5819 def test_keep_configuration_static(self):
LOWtest/test-network/systemd-networkd-tests.py5839 def check_keep_configuration_on_restart(self):
LOWtest/test-network/systemd-networkd-tests.py5859 def test_keep_configuration_on_restart(self):
LOWtest/test-network/systemd-networkd-tests.py5933 def test_keep_untracked_addresses(self):
LOWtest/test-network/systemd-networkd-tests.py7128 def test_bridge_configure_without_carrier(self):
LOWtest/test-network/systemd-networkd-tests.py7184 def test_bridge_ignore_carrier_loss(self):
LOWtest/test-network/systemd-networkd-tests.py7206 def test_bridge_ignore_carrier_loss_frequent_loss_and_gain(self):
LOWtest/test-network/systemd-networkd-tests.py7994 def _test_ndisc_vs_static_route(self, manage_foreign_nexthops):
LOWtest/test-network/systemd-networkd-tests.py8049 def test_ndisc_vs_static_route(self):
LOWtest/test-network/systemd-networkd-tests.py8098 def test_invalid_captive_portal(self):
LOWtest/test-network/systemd-networkd-tests.py8204 def test_dhcp_server_persist_leases_no(self):
LOWtest/test-network/systemd-networkd-tests.py8220 def test_dhcp_server_persist_leases_runtime(self):
LOWtest/test-network/systemd-networkd-tests.py8236 def test_dhcp_server_null_server_address(self):
LOWtest/test-network/systemd-networkd-tests.py8285 def test_dhcp_server_with_uplink(self):
LOWtest/test-network/systemd-networkd-tests.py8303 def test_emit_router_timezone(self):
LOWtest/test-network/systemd-networkd-tests.py8318 def test_dhcp_server_static_lease_mac_by_network(self):
LOWtest/test-network/systemd-networkd-tests.py8333 def test_dhcp_server_static_lease_mac_by_global(self):
22 more matches not shown…
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippet
HIGHtest/test-udev.py0subsystems=="scsi", attrs{vendor}=="ata", symlink+="boot_disk%n" kernel=="ttyacm0", symlink+="modem"
HIGHtest/test-udev.py0subsystems=="scsi", attrs{vendor}=="ata", symlink+="boot_disk%n" kernel=="ttyacm0", symlink+="modem"
HIGHtest/test-udev.py0subsystems=="scsi", attrs{vendor}=="ata", symlink+="boot_disk%n" kernel=="ttyacm0", symlink+="modem"
HIGHtest/networkd-test.py0\ [netdev] name=dummy0 kind=dummy macaddress=12:34:56:78:9a:bc
HIGHtest/networkd-test.py0\ [netdev] name=dummy0 kind=dummy macaddress=12:34:56:78:9a:bc
HIGHtest/networkd-test.py0\ [netdev] name=dummy0 kind=dummy macaddress=12:34:56:78:9a:bc
Decorative Section Separators8 hits · 24 pts
SeverityFileLineSnippet
MEDIUMtest/units/TEST-07-PID1.transient-unit-container.sh7# -----------------------------------------------------------------------------
MEDIUMtest/units/TEST-07-PID1.transient-unit-container.sh19# -----------------------------------------------------------------------------
MEDIUMtest/units/TEST-74-AUX-UTILS.machine-tags.sh49# --------------------------------------------------------------------------------------------------
MEDIUMtest/units/TEST-74-AUX-UTILS.machine-tags.sh51# --------------------------------------------------------------------------------------------------
MEDIUMtest/units/TEST-74-AUX-UTILS.machine-tags.sh82# --------------------------------------------------------------------------------------------------
MEDIUMtest/units/TEST-74-AUX-UTILS.machine-tags.sh84# --------------------------------------------------------------------------------------------------
MEDIUMtest/units/TEST-74-AUX-UTILS.machine-tags.sh105# --------------------------------------------------------------------------------------------------
MEDIUMtest/units/TEST-74-AUX-UTILS.machine-tags.sh107# --------------------------------------------------------------------------------------------------
Cross-Language Confusion3 hits · 22 pts
SeverityFileLineSnippet
HIGHtools/sync-docs.py33 items.push( "<option selected value='" + version + "'>" + "systemd " + version + latest + "</option>");
HIGHtools/sync-docs.py35 items.push( "<option selected value='" + version + "'>" + "systemd " + version + latest + "</option>");
HIGHtools/sync-docs.py37 items.push( "<option value='" + version + "'>" + "systemd " + version + latest + "</option>");
Slop Phrases9 hits · 16 pts
SeverityFileLineSnippet
MEDIUMman/updatectl.xml185 <para>Note that these examples are just here for demonstration purposes, and the output of these commands
MEDIUMman/systemd-stub.xml333 <para>Here's a simple example for a multi-profile UKI's sections, inspired by the setup suggested above:</para>
MEDIUMman/systemd-resolved.service.xml503 interface <literal>lo</literal>). This is the local DNS stub, as discussed above. Both UDP and TCP are
MEDIUMman/coredumpctl.xml118 <para>It's worth noting that different restrictions apply to
LOWtest/units/TEST-07-PID1.protect-control-groups.sh122 # violate the no inner processes rule, we make sure to enable a cgroup controller so that
LOWtest/units/TEST-73-LOCALE.sh67 # start with a known default environment and make sure to also give a
LOWtest/units/TEST-53-TIMER.RandomizedDelaySec-reload.sh24# Let's make sure to return the date & time back to the original state once we're done with our time
LOWsrc/ukify/ukify.py1023 # unaligned, so we make sure to explicitly pad the pointer to new sections to an aligned offset.
LOWsrc/shared/options.h246/* Iterate over options. Don't forget to handle errors (negative c)! */
Excessive Try-Catch Wrapping9 hits · 14 pts
SeverityFileLineSnippet
LOWtools/update-man-rules.py44 except Exception:
MEDIUMtools/find-unused-library-symbols.py45 print(f'Error: Failed to run nm on {library_path}: {e}', file=sys.stderr)
MEDIUMtools/find-unused-library-symbols.py48 print("Error: 'nm' command not found. Please install binutils.", file=sys.stderr)
MEDIUMtools/find-unused-library-symbols.py88 print("Error: 'nm' command not found. Please install binutils.", file=sys.stderr)
MEDIUMtools/find-unused-library-symbols.py245 print(f'Error: Library not found: {library_path}', file=sys.stderr)
MEDIUMtools/find-unused-library-symbols.py258 print('Error: No valid executables provided', file=sys.stderr)
LOWtools/make-directive-index.py170 except Exception as e:
LOWtest/create-sys-script.py152 except Exception:
LOWtest/test-shutdown.py106 except Exception as e:
AI Slop Vocabulary7 hits · 14 pts
SeverityFileLineSnippet
MEDIUMtest/networkd-test.py138 """Provide a set of utility functions to facilitate networkd tests.
LOWtest/units/TEST-74-AUX-UTILS.ssh.sh63# ssh wants this dir around, but distros cannot agree on a common name for it, let's just create all that are aware of d
MEDIUMtest/units/TEST-74-AUX-UTILS.run.sh306 # Validate that --empower gives all capabilities to a non-root user.
MEDIUMtest/units/TEST-72-SYSUPDATE.sh468 # (and not curl) this test should be quite good even if not comprehensive. This
LOWtest/units/TEST-46-HOMED.sh661 # ssh wants this dir around, but distros cannot agree on a common name for it, let's just create all that
MEDIUMtest/units/TEST-74-AUX-UTILS.machine-tags.sh32# Read the TAGS= field out of /etc/machine-info (robust against the file being
LOWsrc/ukify/test/test_ukify.py825 # So let's just call it with a dummy output argument.
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGHsrc/include/uapi/linux/netlink.h67#define NLM_F_DUMP_FILTERED 0x20 /* Dump was filtered as requested */
Fake / Example Data4 hits · 5 pts
SeverityFileLineSnippet
LOWsrc/test/test-terminal-util.c23#define LOREM_IPSUM "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor " \
LOWsrc/test/test-terminal-util.c23#define LOREM_IPSUM "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor " \
LOWsrc/test/test-ellipsize.c115 test_ellipsize_one("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt u
LOWsrc/test/test-ellipsize.c115 test_ellipsize_one("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt u
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippet
LOWsrc/libsystemd/sd-device/sd-device.c477 * Hence, if we already know a device, then we need to check if it is equivalent to the newly found one. */
LOWsrc/network/networkd-sysctl.c571 * reset to the link MTU. Hence, we need to check if it is already reset, and wait for a while if not. */
Unused Imports1 hit · 1 pts
SeverityFileLineSnippet
LOWsrc/ukify/test/test_ukify.py477