summaryrefslogtreecommitdiffstats
path: root/LICENSES (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-10-25test: add a couple more tests for systemd-pcrextendFrantisek Sumsal2-0/+50
2023-10-25test: make the TPM event log checking a bit more robustFrantisek Sumsal1-11/+29
Don't hardcode the event number, so the test works correctly even if someone wrote to the event log before us. Also, explicitly pick the sha256 bank when checking digests, as the indexing may vary depending on current TPM's capabilities.
2023-10-25test: split TEST-70-TPM2 into subtestsFrantisek Sumsal8-448/+501
2023-10-25tpm2-util: add line breaks in compound struct init, like we usually doLennart Poettering1-3/+9
2023-10-25execute: log about failures when opening a terminal to resetLennart Poettering1-5/+7
2023-10-25mount-util: add one more constLennart Poettering1-1/+1
2023-10-24update TODOLennart Poettering1-0/+13
2023-10-24sleep-config: make hybrid sleep always use 'suspend' disk modeMike Yuan3-26/+15
If user requests hybrid sleep, we should always use 'suspend' disk mode. If that's not supported, let's correctly report it so they can choose plain hibernation instead. HybridSleepMode= serves no purpose in this case and should be removed. Addresses https://github.com/systemd/systemd/pull/29681#discussion_r1369812785
2023-10-24shared/pretty-print: skip redundant section headers with --tldrZbigniew Jędrzejewski-Szmek1-6/+9
If the same section appears consecutively in a given file, subsequent occurenced are not printed. [Slice] Foo=bar [Slice] # this is not printed Bar=bar Requested in https://github.com/systemd/systemd/pull/29553#pullrequestreview-1677310352.
2023-10-24binfmt: add --tldrZbigniew Jędrzejewski-Szmek2-9/+20
2023-10-24sysctl: add --tldrZbigniew Jędrzejewski-Szmek2-9/+20
2023-10-24sysusers: add --tldrZbigniew Jędrzejewski-Szmek2-8/+17
2023-10-24tmpfiles: add --tldrZbigniew Jędrzejewski-Szmek4-14/+33
This is like --cat-config, but omits the comments and empty lines. The name is incoungrous with --cat-config, but I don't see a nice way to call it that wouldn't be annoyingly long. pager_open() is moved to cat_config() to remove some lines from run().
2023-10-24shared/pretty-print: add highlightingZbigniew Jędrzejewski-Szmek1-6/+29
2023-10-24test-network: wait for the state file being updatedYu Watanabe1-0/+15
Also, sync state files before read. Addresses the first issue in #29678.
2023-10-24analyze/cat-config: add switch to print only "interesting" parts of config filesZbigniew Jędrzejewski-Szmek13-17/+68
When looking at configuration, often a user wants to suppress the comments and just look at the parts that actually configure something, roughly equivalent to systemd-analyze cat-config … | rg -v '^(#|;|$) This switch implements this natively, skipping lines that start with a comment character or only contain whitespace. For formats that have section headers, section headers are skipped, if only followed by stuff that would be skipped. (The last section header is printed when we're about to print some actual output.) Note that the caller doesn't know if the format has headers or not. We do format type detection in pretty-print.c. So the caller only specifies tldr=true|false, and conf_files_cat() figures out if the format has headers and whether those should be handled specially. The comments that show the file name are always printed, even if all of the file is suppressed. This is a partial answer to the discussions in https://github.com/systemd/systemd/pull/28919, https://github.com/systemd/systemd/pull/29248. If the default config is shown in config files, the user can conveniently use '--tldr' to show the relevant parts.
2023-10-24shared/copy: rewind dir fd before using it for cleanupZbigniew Jędrzejewski-Szmek2-0/+6
This seems to be the only place where rm_rf_children() is called with a possibly used fd, which is then passed through to rm_rf_children_impl(). This also fixes #29606. (Tested on Fedora rawhide with kernel 6.5.6-300.fc39.x86_64.)
2023-10-24test: shorten service stop/abort timeouts for TEST-69-SHUTDOWNFrantisek Sumsal1-0/+10
In several Ubuntu CI jobs I noticed timeouts in TEST-69, which are apparently caused by a very stubborn bash/login process: $ journalctl -o short-monotonic --no-hostname --file artifacts/TEST-69-SHUTDOWN.journal [ 2011.698430] systemd[1]: shutdown.target: starting held back, waiting for: veritysetup.target [ 2011.698473] systemd[1]: sysinit.target: stopping held back, waiting for: user@0.service [ 2045.884982] systemd[1]: systemd-oomd.service: Got notification message from PID 54 (WATCHDOG=1) [ 2071.576424] systemd[1]: Received SIGCHLD from PID 65 (bash). [ 2071.576941] systemd[1]: Child 65 (bash) died (code=killed, status=1/HUP) [ 2071.577026] systemd[1]: session-13.scope: Child 65 belongs to session-13.scope. [ 2071.577100] systemd[1]: session-13.scope: cgroup is empty [ 2071.577249] systemd[1]: session-13.scope: Deactivated successfully. $ journalctl -o short-monotonic --no-hostname --file artifacts/TEST-69-SHUTDOWN.journal _PID=65 [ 3038.661488] login[65]: ROOT LOGIN on '/dev/pts/0' Since, in this case, we really care only about the actual shutdown, let's shorten the service stop/abort timeouts to let systemd SIGKILL all remaining processes in the 60s `expect` window.
2023-10-24test: introduce $TEST_SKIP_SHUTDOWNFrantisek Sumsal3-22/+9
To get rid of some boilerplate.
2023-10-24network: also synchronously update manager state fileYu Watanabe3-27/+25
2023-10-24network: make link_save() staticYu Watanabe2-2/+1
2023-10-24network: do not try to save link state file twice on bootYu Watanabe1-1/+1
On enumeration, (that is, before manager_start() is called), enumerated links may already have the dirty flag. In that case, saving the state file in manager_start() should clear the flag.
2023-10-23basic/iovec-util: use FOREACH_ARRAY in one more placeZbigniew Jędrzejewski-Szmek1-5/+2
2023-10-23basic/iovec-util: drop TAKE_IOVECZbigniew Jędrzejewski-Szmek2-3/+1
As suggested in https://github.com/systemd/systemd/pull/29679#discussion_r1368678932.
2023-10-23cryptenroll: merge two if checks with same conditionLennart Poettering1-9/+11
This removes a duplicate condition check by adding a common surrounding if block. This also change a confusing if check: "(X && Y) && Z" to simply "X && Y && Z"
2023-10-23cryptenroll: reduce scope of two global variablesLennart Poettering1-6/+5
No change in behaviour
2023-10-23systemctl: fallback if logind doesn't support new flagLuca Boccassi1-0/+12
Follow-up for 665a3d6d15c09428
2023-10-23sleep-config: check sleep mode only when hibernationMike Yuan1-9/+10
With the previous change, this should only be used when doing hibernation.
2023-10-23sleep-config: remove HibernateState= & HybridSleepState=, restrictMike Yuan3-49/+79
SuspendState= not to include "disk" I don't know why these existed in the first place, but as I justified in the comments, it's simply not sensible to allow HibernateState= or HybridSleepState= to take values other than 'disk'. So let's just remove those options. Also, SuspendState= should not contain 'disk'.
2023-10-23hibernate-util: add missing assertionMike Yuan1-0/+2
2023-10-23hibernate-resume: add missing static for arg_infoMike Yuan1-1/+1
2023-10-23timedatectl: add missing commands to the help outputAntonio Alvarez Feijoo1-0/+3
Follow up to 159a855b34c35484c28cf4b0178f93bc16447fac
2023-10-23basic/iovec-util: drop IOVEC_NULLZbigniew Jędrzejewski-Szmek3-5/+3
The macro isn't very useful, we can just use the direct setting to increase readability.
2023-10-23basic/iovec-util: always call the iovec "iovec"Zbigniew Jędrzejewski-Szmek2-15/+15
We were using "i", "iov", and "iovec" in variuos places. Let's be consistent.
2023-10-23Revert "rm-rf: Make sure we rewinddir() before readdir()"Zbigniew Jędrzejewski-Szmek1-4/+0
This reverts commit 6bbb893b90e2dcb05fb310ba4608f9c9dc587845. Let's try a different approach where we make sure that all callers only pass in a fd that is "clean", i.e. at offset 0. The majority of callers of this function (both direct and indirect) pass a freshly-opened fd, so the rewind call is not needed.
2023-10-23glyph-util: add 'full block' glyphLennart Poettering3-0/+4
2023-10-23pcrextend: split out word to measure code into shared helper fileLennart Poettering4-114/+164
Let's split out the logic that actually generates the word to measure to PCRs into a new helper file pcrextend-util.[ch]. This we can later reuse to calculate PCR measurement predictions ahead of time.
2023-10-23efi-api: export UUID converter callsLennart Poettering2-38/+44
(while exporting, do some minor simplifications)
2023-10-23tpm2-util: make tpm2_read_public() static, as we use it only internally in ↵Lennart Poettering2-31/+29
tpm2-util.c
2023-10-23tpm2-util: make tpm2_marshal_blob()/tpm2_unmarshal_blob() staticLennart Poettering2-6/+3
These are not used outside of tpm2-util.[ch], and the way they merge public/private key pair into one blob is kinda specific to our implementation, hence better should be hidden away, and not used for new code anyway.
2023-10-23creds-utils: fix read_full_file_full call in read_credential_with_decryptionJulien Malka1-1/+1
data was passed as a null pointer when an address was expected. As a result, the assert was always tripped.
2023-10-22docs: correct parenthesis placement in 'man/tmpfiles.d.xml'NAHO1-2/+2
Correct the parenthesis placement in 'man/tmpfiles.d.xml' to prevent the following formatting: > lock ( shared or exclusive) is
2023-10-21tpm2-util: rename tpm2_calculate_name() → tpm2_calculate_pubkey_name()Lennart Poettering3-6/+6
We'll soon have a function for determining the name of an NV index, hence let's rename the existing function for the same of a public key to make clear it's about public keys only.
2023-10-21units: modprobe@.service: don't unescape instance nameMartin Wilck1-1/+1
modprobe treats "-" and "_" interchangeably, thereby avoiding frequent errors because some module names contain dashes and others underscores. Because modprobe@.service unescapes the instance name, an attempt to start "modprobe@dm-crypt.service" will run "modprobe -abq dm/crypt", which is doomed to fail. "modprobe@dm_crypt.service" will work as expected. Thus unescaping the instance name has surprising side effects. Use "%i" instead.
2023-10-21test: install af_packet kernel module on openSUSEFranck Bui1-1/+1
Currently needed by test-dhcp-server unit test, af_packet is not built-in on openSUSE distributions.
2023-10-21shared/mount-util: log correct errnoMike Yuan1-2/+3
Follow-up for 5f48198af82e5a6f40adf887291fdd47bcecf64c
2023-10-21man,docs: suffix directories with /Mike Yuan3-4/+4
2023-10-21core/execute: use FOREACH_ARRAY and free_many moreMike Yuan1-5/+3
2023-10-20network,dhcp: restart client with 'networkctl renew' when delayed by IPv6 ↵Yu Watanabe5-7/+35
only mode This is convenient when the server supports IPv6 only mode. Otherwise, we cannot request a new address during the client is waiting an IPv6 connectivity. Note, the minimal timespan is 5min, and a server may send a quite large value.
2023-10-20dhcp: split dhcp-internal.h into twoYu Watanabe15-68/+98