summaryrefslogtreecommitdiffstats
path: root/src/rc-local-generator (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-08-11file-io: Fix copying sparse filesMichael A Cassaniti2-1/+87
This change makes sure a data copy using copy_bytes() does not exceed the max_bytes value when using COPY_HOLES and max_bytes stops before the next data section.
2023-08-11repart: Allow specifying --copy-from more than onceDaan De Meyer3-25/+62
Definitions will be synthesized from each of the given images.
2023-08-11docs: update link to RHEL/CentOS Stream trackerJan Macku1-1/+1
Also update link to systemd downstream GitHub repo.
2023-08-11repart: Allow acquire shared lock on --copy-from files/devicesDaan De Meyer1-5/+8
We're not going to modify these, so no need for an exclusive lock.
2023-08-11test-mountpoint-util: /root might be mountedFranck Bui1-5/+8
On openSUSE with BTRFS, /root has to be mounted as dedicated subvolume to avoid restoring it when a rollback of the system happens.
2023-08-10coredump: fix various invalid memory accessYu Watanabe1-19/+14
Previously, we did not check error from iovw_put(). If it fails, the target iovw may have no iov or partial iovs from the journal importar. So, the finalization may cause underflow and may access and free invalid memory. Follow-up for 946dc7c635f050129896d1515c08a81504af2421.
2023-08-10io-util: introduce iovw_append() helper functionYu Watanabe2-0/+38
2023-08-10Make ukify the default ifUKI_GENERATOR is unsetcvlc121-1/+1
2023-08-10vconsole-setup: use "@kernel" rather than "kernel" as special string to ↵Lennart Poettering3-7/+7
leave keymap untouched This is a magic string, and we should avoid stepping into the territory of normal keymap names with that, given that users can pick names otherwise freely. Hence, prefix the name with a special char to avoid any namespace issues. Follow-up for: #28660
2023-08-10file-io: let's use offsetof() rather than sizeof() for determining ↵Lennart Poettering1-1/+1
EFI_FILE_INFO prefix size The gnu-efi definition of the struct uses [1], our local one [0] to size the filename array. Let's avoid an ambiguity and use offsetof() so that this difference doesn't matter. Also, doing it this way makes very clear to the read what happens here: it's a structure with a variable size suffix.
2023-08-10ukify: Use length= instead of ignore_padding= in inspectDaan De Meyer1-1/+2
ignore_padding= was only added in a recent version of pefile. Let's set length= to the virtual size instead which is what ignore_padding does behind the scenes so we're compatible with older versions of pefile.
2023-08-10mkosi: Copy sources under /usr in the imageMichal Koutný2-2/+2
Originally, the source code was copied under /root/src. This home directory is part of root FS and the new mkosi building paradigm has only ephemeral root FS that is generated lazily. Any files placed on the root FS in the build environment are that excluded from the final image. It is useful to have source codes available in the image's runtime (not build time) environment for debugging. ExtraTrees= as used currently are ineffective, so change the destination to copy files under /usr to achieve the intention. gdb sees source files as: > 1354 ../src/src/systemctl/systemctl.c: No such file or directory. Modify gdb configration in the built image accordingly (that file cannot be in /root neither) to resolve to the moved sources. (Commit fdecbf7 ("Enable unprivileged image builds") envisions bind mounting or virtiofsd for nspawn or qemu containers respectively.)
2023-08-10tmpfiles: move static vars into Context objectLennart Poettering1-118/+248
Same as #28722, but for tmpfiles rather than sysusers
2023-08-10test: testsuite-35.sh needs manual/test-session-properties to be installed ↵Franck Bui1-0/+1
on SUSE
2023-08-10Add .pylintrc to globally suppress warnings we don't really care aboutFrantisek Sumsal9-24/+31
Also, drop the respective disable directives from existing files.
2023-08-10tools: pylint meson-render-jinja2.pyFrantisek Sumsal1-1/+5
2023-08-10tools: pylint analyze-dump-sort.pyFrantisek Sumsal1-0/+1
2023-08-10tools: pylint dump-auxv.pyFrantisek Sumsal1-4/+8
2023-08-10tools: pylint gdb-sd_dump_hashmaps.pyFrantisek Sumsal1-1/+2
2023-08-10tools: pylint list-discoverable-partitions.pyFrantisek Sumsal1-16/+16
2023-08-10tools: pylint xml_helper.pyFrantisek Sumsal1-1/+5
2023-08-10tools: pylint update-man-rules.pyFrantisek Sumsal1-5/+9
2023-08-10tools: pylint update-dbus-docs.pyFrantisek Sumsal1-40/+45
2023-08-10tools: pylint make-man-index.pyFrantisek Sumsal1-9/+10
2023-08-10tools: pylint make-directive-index.pyFrantisek Sumsal1-9/+10
2023-08-10tools: pylint make-autosuspend-rules.pyFrantisek Sumsal1-2/+2
2023-08-10tools: pylint generate-gperfs.pyFrantisek Sumsal1-7/+12
2023-08-10networkd: add comment about order of IPReversePathFilter enumLennart Poettering1-1/+2
Follow-up for: #28391
2023-08-10mkosi: Move python3dist(pytest-flakes) to base preset build packagesDaan De Meyer1-3/+1
We don't want to pull in python in the base image to keep the initrd small.
2023-08-10update TODOLennart Poettering1-0/+5
2023-08-10sd-event: explicit document what to do with epoll-incompatible fdsLennart Poettering1-16/+25
2023-08-10journalcl: simplify handling of stdout being a regular file and epoll()Lennart Poettering1-10/+9
Let's not check the fd type beforehand, let's instead gracefully handle if we get EPERM back from epoll_ctl() because the fd doesn't do epoll. THis should be safer and more generic. The epoll_ctl(2) man page clearly documents EPERM is being returned in this case, hence it's safe to check for exactly that case. Follow-up for: #28644
2023-08-10man: let's tone down the recommendation to use Type=exec a bitLennart Poettering1-18/+27
This is a follow-up for #28596. I think the suggestion to use Type=exec uses too strong wording: Type=exec has non-trivial drawbacks over Type=simple, and they deserve to be mentioned. Hence drop the <emphasis> and turn this around so that Type=exec is *recommended*, but Type=simple is not expressly discouraged, because there are plenty reasons to use it. Add a brief discussion where Type=simple might be preferable. Also, fix the outright unruth that Type=exec was the "simplest and fastest", because it certainly is a lot, but not that.
2023-08-10execute: Chown credentials files and directories to service groupDaan De Meyer1-11/+27
For a userns root user to be able to access the credentials, both the uid and gid of the credentials directory have to be mapped into the userns. Currently, the credentials directory group is root, which we obviously do not want to map in to a userns, so let's make sure that the credentials directory and files are owned by the service group instead, which can generally be safely mapped into the userns. Since we use permissions mode 0600, this shouldn't cause any change in who is able to access the credentials. Fixes #28747
2023-08-10udev-builtin-net_id: use strjoin() if possibleYu Watanabe1-5/+6
Addresses the post-merge comment https://github.com/systemd/systemd/pull/28623#pullrequestreview-1571307466.
2023-08-10udev-builtin-net_id: add more debugging logsYu Watanabe1-29/+33
2023-08-10udev-builtin-net_id: introduce get_first_syspath_component() helper functionYu Watanabe1-39/+46
Obtaining a component from syspath is a common pattern. Let's split out the pattern. No functional change, just refactoring.
2023-08-10udev-builtin-net_id: introduce get_matching_parent() helper functionYu Watanabe1-71/+55
The pattern is common in many naming scheme. Let's split out the pattern. No functional change, just refactoring.
2023-08-10coredump: let's use FOREACH_ARRAY() at once very obvious placeLennart Poettering1-4/+1
2023-08-10coredump: fix error pathLennart Poettering1-1/+1
We must go through finish, to undo the destruction of the final elements of the iovw properly.
2023-08-10coredump: rename gather_pid_metadata() → gather_pid_metadata_from_procfs()Lennart Poettering1-3/+3
Let's make clear what this function does, and what it distinguishes with the more precisely named gather_pid_metadata_from_argv().
2023-08-10coredump: add four assert()sLennart Poettering1-0/+6
2023-08-10coredump: use a cleanup handler for destroying iovw objectsLennart Poettering2-9/+8
2023-08-10coredump: explicitly document that in order to process a coredump we have to ↵Lennart Poettering1-12/+16
write it to disk first Prompted by: #28740
2023-08-10tools: pylint dbus_exporter.pyFrantisek Sumsal1-1/+2
2023-08-10tools: pylint check-includes.pyFrantisek Sumsal1-3/+3
2023-08-10tools: pylint catalog-report.pyFrantisek Sumsal1-40/+40
2023-08-10tools: pylint analyze-dump-sort.pyFrantisek Sumsal1-1/+2
2023-08-10repart: Reword --copy-from docsDaan De Meyer1-3/+7
2023-08-10repart: Pass GptPartitionType *Daan De Meyer1-15/+15