Commit Graph
82487 Commits
Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek 79decd4e49 shared/bus-unit-util: define helper for RootImageOptions= 2025-07-03 19:35:33 +02:00
Zbigniew Jędrzejewski-Szmek 5517273715 shared/bus-unit-util: define helper for RootHashSignature= 2025-07-03 19:35:33 +02:00
Zbigniew Jędrzejewski-Szmek 4d92c1da45 shared/bus-unit-util: define helper for RootHash= 2025-07-03 19:35:33 +02:00
Zbigniew Jędrzejewski-Szmek 8f90f4b86f shared/bus-unit-util: define helper for TemporaryFileSystem= 2025-07-03 19:35:33 +02:00
Zbigniew Jędrzejewski-Szmek 0fdcbaf633 shared/bus-unit-util: define helper for BindPaths=/BindReadOnlyPaths= 2025-07-03 19:35:33 +02:00
Zbigniew Jędrzejewski-Szmek af677b7a25 shared/bus-unit-util: define helper for RestrictNamespaces=/DelegateNamespaces= 2025-07-03 19:35:33 +02:00
Zbigniew Jędrzejewski-Szmek c622449cb7 shared/bus-unit-util: add helper for filter lists 2025-07-03 19:35:33 +02:00
Zbigniew Jędrzejewski-Szmek 187b248e5b shared/bus-unit-util: add helper for NUMAMask= 2025-07-03 19:35:33 +02:00
Zbigniew Jędrzejewski-Szmek 85eb4381d3 shared/bus-unit-util: use common helper for NUMAPolicy= 2025-07-03 19:35:33 +02:00
Zbigniew Jędrzejewski-Szmek 6dd31c8339 shared/bus-unit-util: define helper for CPUAffinity= 2025-07-03 19:35:12 +02:00
Zbigniew Jędrzejewski-Szmek 8f0824f9db shared/bus-unit-util: define helper for CapabilityBoundingSet=/AmbientCapabilities= 2025-07-03 10:37:34 +02:00
Zbigniew Jędrzejewski-Szmek 94abee6063 shared/bus-unit-util: define helper function for rlimits
Strictly speaking, we call startswith twice now. This duplication
shall be eliminated later.
2025-07-03 10:37:34 +02:00
Zbigniew Jędrzejewski-Szmek 5c41755fe6 shared/bus-unit-util: define helper for StandardInputData= 2025-07-03 10:37:34 +02:00
Zbigniew Jędrzejewski-Szmek 6bb4420100 shared/bus-unit-util: define helper for StandardInputText= 2025-07-03 10:37:34 +02:00
Zbigniew Jędrzejewski-Szmek 375351d003 shared/bus-unit-util: define helper functions for StandardInput/Output/Error= 2025-07-03 10:37:34 +02:00
Zbigniew Jędrzejewski-Szmek 32adb97cf1 shared/bus-unit-util: define helper for LogFilterPatterns= 2025-07-03 10:37:34 +02:00
Zbigniew Jędrzejewski-Szmek 50dd808d69 shared/bus-unit-util: define helper for LogExtraFields= 2025-07-03 10:37:34 +02:00
Zbigniew Jędrzejewski-Szmek 0b5b043733 TEST-54-CREDS: s/ImportCredentialEx/ImportCredential/ except for one place
This is a separate commit because the tests are supposed to pass with both
the old spelling and the new.
2025-07-03 10:37:34 +02:00
Zbigniew Jędrzejewski-Szmek 4b98aeb6ef shared/bus-unit-util: add helper for ImportCredentialEx= and fix naming confusion
We add D-Bus properties like "*Ex" because we cannot change the D-Bus property
type without breaking backward comapatibility. But those names are only for
D-Bus, not for config file stanzas or the command-line parser. There, we can
change the type, or in other words, there is no type, just a free-form string
whose interpretation we can extend or change. Commit
831f208783 that added ProtectHostnameEx was
confused, because it added ImportCredentialEx in places where parsing of
ImportCredential should be have been extended.

On D-Bus, we send ImportCrednential in preference, and ImportCredentialEx only
when required. This way we send less bytes on the wire and support older
systems that don't understand the new property.

Partially resolves https://github.com/systemd/systemd/issues/37174.
2025-07-03 10:37:34 +02:00
Zbigniew Jędrzejewski-Szmek 068c4c8677 shared/bus-unit-util: define helper for LoadCredential=/LoadCredentialEncrypted= 2025-07-03 10:37:34 +02:00
Zbigniew Jędrzejewski-Szmek 82e009a212 shared/bus-unit-util: define helper for SetCredential=/SetCredentialEncrypted= 2025-07-03 10:37:34 +02:00
Zbigniew Jędrzejewski-Szmek 7c4b4a93d6 shared/bus-unit-util: define helper function for EnvironmentFile= 2025-07-03 10:37:34 +02:00
Zbigniew Jędrzejewski-Szmek 4eb516e319 shared/bus-unit-util: add helper for SocketBindAllow=/SocketBindDeny= 2025-07-03 10:37:34 +02:00
Zbigniew Jędrzejewski-Szmek 513026c4bf shared/bus-unit-util: define helper for BPFProgram= 2025-07-03 10:37:34 +02:00
Zbigniew Jędrzejewski-Szmek 9f17f68bc5 shared/bus-unit-util: add helper for IPIngressFilterPath=/IPEgressFilterPath= 2025-07-03 10:37:33 +02:00
Zbigniew Jędrzejewski-Szmek af33eb4bb7 shared/bus-unit-util: define helper function for IPAddressAllow=/IPAddressDeny= 2025-07-03 10:37:33 +02:00
Zbigniew Jędrzejewski-Szmek 235c580d80 shared/bus-unit-util: define helper for IODeviceLatencyTargetSec= 2025-07-03 10:37:33 +02:00
Zbigniew Jędrzejewski-Szmek 335f7c7f01 shared/bus-unit-util: define helper for IODeviceWeight= 2025-07-03 10:37:33 +02:00
Zbigniew Jędrzejewski-Szmek 5852a3e673 shared/bus-unit-util: add helper for group io limits 2025-07-03 10:37:33 +02:00
Zbigniew Jędrzejewski-Szmek 619d378f55 shared/bus-unit-util: define helper for DeviceAllow= 2025-07-03 10:37:33 +02:00
Zbigniew Jędrzejewski-Szmek ff0bbeff3a basic/cgroup-util: align tables 2025-07-03 10:37:33 +02:00
Zbigniew Jędrzejewski-Szmek b4cf928f24 shared/bus-unit-util: define helper function for CPUQuota=
Unfortunately we can't nicely fold it in with the other helpers, because
of the unusual naming mismatch: CPUQuota vs. CPUQuotaPerSecUSec.
2025-07-03 10:37:33 +02:00
Zbigniew Jędrzejewski-Szmek 40fcb3185d shared/bus-unit-util: define helper function for resource limits 2025-07-03 10:37:33 +02:00
Zbigniew Jędrzejewski-Szmek 3704d0ad1b shared/bus-unit-util: define helper for Delegate= 2025-07-03 10:37:33 +02:00
Zbigniew Jędrzejewski-Szmek ca197282fb shared/bus-unit-util: define helper for StartupAllowedMemoryNodes= and friends 2025-07-03 10:37:33 +02:00
Zbigniew Jędrzejewski-Szmek 965489c935 shared/bus-unit-util: define helper for ManagedOOMMemoryPressureLimit= 2025-07-03 10:37:33 +02:00
Zbigniew Jędrzejewski-Szmek 411b998da8 shared/bus-unit-util: fix appending of IODeviceLatencyTargetSec= 2025-07-03 10:37:33 +02:00
Zbigniew Jędrzejewski-Szmek 010d2e42c2 shared/bus-unit-util: use common helper in one more place 2025-07-03 10:37:33 +02:00
Zbigniew Jędrzejewski-Szmek e47fb4abd2 Rename STRV_MAKE_EMPTY to just STRV_EMPTY
Even though this creates a stack allocation, it is not a function macro, so
drop the "make" from the name.
2025-07-03 10:37:33 +02:00
Zbigniew Jędrzejewski-Szmek d2a9a2aabf shared/bus-unit-util: drop spurious parentheses 2025-07-03 10:37:33 +02:00
Lennart Poettering 7ba5950307 logind: Don't match non-leader processes for utmp TTY determination (#38027)
This ensures we don't erroneously assign pseudoterminals created by
terminal emulators that use utempter to register themselves in utmp when
run under a GUI session that doesn't have a TTY assigned.
2025-07-03 09:20:19 +02:00
Yu Watanabe 381eefffc5 Fixes for vscode/intellisense parsing (#38040)
With these two changes the vscode parser works nicely again. Once the
EDG frontend adds support for this feature I'll fix it to check for the
fixed version like for GCC.
2025-07-03 12:46:57 +09:00
Yu Watanabe aada48970e udev-builtin-uaccess: open device node with O_PATH
Some device node refuses to be opened with read-write mode.
Let's not open with O_RDWR, but open with O_PATH, and use
FORMAT_PROC_FD_PATH().

Follow-up for 1abb592f2f.

Fixes #38033.
2025-07-03 12:46:35 +09:00
Yu Watanabe 9c9bf7e3fa core/transaction: minor tweaks for cyclic dependency logging (#38014) 2025-07-03 12:45:47 +09:00
Yu Watanabe 559d2c0349 meson: make -Wsequence-point warning critical
It detects e.g. multiple evaluations in macro.
2025-07-03 12:45:26 +09:00
Myrrh Periwinkle e523d9e9c4 logind: use manager_get_session_by_leader in manager_get_session_by_pidref 2025-07-03 09:16:22 +07:00
dependabot[bot] 1422c7f017 build(deps): bump meson from 1.8.1 to 1.8.2 in /.github/workflows
Bumps [meson](https://github.com/mesonbuild/meson) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/1.8.1...1.8.2)

---
updated-dependencies:
- dependency-name: meson
  dependency-version: 1.8.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-03 10:40:38 +09:00
dependabot[bot] ce8000d341 build(deps): bump redhat-plumbers-in-action/advanced-issue-labeler
Bumps [redhat-plumbers-in-action/advanced-issue-labeler](https://github.com/redhat-plumbers-in-action/advanced-issue-labeler) from 3.2.0 to 3.2.2.
- [Release notes](https://github.com/redhat-plumbers-in-action/advanced-issue-labeler/releases)
- [Commits](https://github.com/redhat-plumbers-in-action/advanced-issue-labeler/compare/d498805e5c7c0658e336948b3363480bcfd68da6...0db433d412193574252480b4fc22f2e4319a4ea3)

---
updated-dependencies:
- dependency-name: redhat-plumbers-in-action/advanced-issue-labeler
  dependency-version: 3.2.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-03 10:39:46 +09:00
Luca Boccassi e01ca3afdb macro: EDG compiler frontends doesn't support enum types
It declares STDC_VERSION 202311L but still doesn't support this feature:

https://en.cppreference.com/w/c/compiler_support/23

The EDG frontend is used by intellisense, which is the default
engine in VSCode, so parsing is currently broken and tons of
spurious errors are shown. Skip this feature when this
compiler frontend is used.

Follow-up for 92100f14c3
2025-07-03 01:24:17 +01:00
Luca Boccassi 942cb8a7c0 sd-common: do not fail preprocessor when intellisense is parsing the header
Just like coverity or clang analyzer, intellisense will parse _sd-common.h and
fail because of the #error so skip it like the others
2025-07-03 01:21:19 +01:00