1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00
systemd/src
Lennart Poettering 5d1e57b820 serialize: add explicit calls for finishing serialization
These new calls will do three things:

1. in case of FILE* stuff: flush any pending bytes onto the fd, just in
   case
2. seal the backing memfd
3. seek back to the beginning.

Note that this adds sealing to serialization: once we serialized fully,
we'll seal the thing off for further modifications, before we pass the
fd over to the target process. This should add a bit of robustness, and
maybe finds a bug or two one day, if we accidentally write to a
serialization that is complete.
2024-12-17 18:26:15 +01:00
..
ac-power
analyze analyze: add missing --mask option to --help text 2024-12-11 10:32:38 +01:00
ask-password ask-password-tool: add --user/--system flag to systemd-ask-password tool 2024-10-21 14:14:10 +02:00
backlight
basic memfd-util: introduce memfd_new_full() helper 2024-12-17 18:26:15 +01:00
battery-check battery-check: parse options before checking for kernel command line 2024-12-12 23:11:29 +00:00
binfmt various: check meson feature flag early 2024-11-13 08:21:33 +09:00
bless-boot Move bless-boot components to their own source subdirectory 2024-11-07 14:50:41 +01:00
boot boot: do not build test-hwids-section.c if ukify is disabled 2024-12-17 11:15:39 +00:00
bootctl various: set info on varlink server object 2024-12-10 10:51:56 +01:00
busctl busctl: minor tweak to help text for --limit-messages= 2024-10-29 21:34:47 +01:00
cgls
cgroups-agent
cgtop
core serialize: add explicit calls for finishing serialization 2024-12-17 18:26:15 +01:00
coredump Revert "coredumpctl: Don't treat no coredumps as failure" 2024-12-11 11:14:37 +09:00
creds creds: support --transcode=help and --with-key=help 2024-12-12 15:25:34 +09:00
cryptenroll tpm2-util: allow to control if legend and/or footer shown by tpm2_list_devices() 2024-12-12 15:21:16 +09:00
cryptsetup gpt-auto: take timeout opts in rootflags= into account; hibernate-resume: always respect user-defined timeout (#35518) 2024-12-12 11:01:40 +00:00
debug-generator fileio: port write_string_file() to LabelOps, and thus add WRITE_STRING_FILE_LABEL flag 2024-10-22 17:51:26 +02:00
delta
detect-virt
dissect various: check meson feature flag early 2024-11-13 08:21:33 +09:00
environment-d-generator various: check meson feature flag early 2024-11-13 08:21:33 +09:00
escape
firstboot firstboot: generalize prompt_loop more 2024-10-30 20:13:56 +01:00
fsck Undeprecate commandline params forcequotacheck, fastboot, and forcefsck 2024-11-23 17:30:56 +09:00
fstab-generator fstab-generator: move write_(mount_)timeout() to shared/generator 2024-12-09 19:25:59 +01:00
fundamental boot: Deduplicate efi.h and efi-fundamental.h 2024-12-16 21:02:54 +03:00
fuzz sd-varlink: add sd_varlink_server_set_info 2024-12-10 10:43:14 +01:00
getty-generator
gpt-auto-generator gpt-auto: take timeout opts in rootflags= into account 2024-12-09 19:59:29 +01:00
growfs Move growfs+makefs to src/growfs/ 2024-11-10 14:09:46 +01:00
hibernate-resume hibernate-resume: always respect user-defined timeout 2024-12-09 19:24:59 +01:00
home memfd-util: introduce memfd_new_full() helper 2024-12-17 18:26:15 +01:00
hostname sd-varlink: add function to configure server object info (#35519) 2024-12-10 15:26:24 +00:00
hwdb
id128
import various: set info on varlink server object 2024-12-10 10:51:56 +01:00
initctl tree-wide: replace for loop with FOREACH_ELEMENT or FOREACH_ARRAY macros (#34893) 2024-10-26 07:10:22 +09:00
integritysetup various: check meson feature flag early 2024-11-13 08:21:33 +09:00
journal journalctl: make --setup-keys honor --output=json and --quiet (#35507) 2024-12-13 13:40:09 +00:00
journal-remote tree-wide: replace for loop with FOREACH_ELEMENT or FOREACH_ARRAY macros (#34893) 2024-10-26 07:10:22 +09:00
kernel-install kernel-install: remove .extra.d/ directory too 2024-12-01 14:05:45 +09:00
keyutil Introduce systemd-keyutil to do various key/certificate operations 2024-11-08 15:00:21 +01:00
libsystemd memfd-util: introduce memfd_new_full() helper 2024-12-17 18:26:15 +01:00
libsystemd-network ndisc-option: use memcpy_safe() at one more place 2024-11-19 04:04:14 +09:00
libudev
locale fileio: port write_string_file() to LabelOps, and thus add WRITE_STRING_FILE_LABEL flag 2024-10-22 17:51:26 +02:00
login logind: allow wall messages to be controlled via config file 2024-12-14 10:54:58 +09:00
machine machine: introduce io.systemd.Machine.{MapFrom, MapTo} methods 2024-12-17 11:25:24 +01:00
machine-id-setup
measure tpm2-util: allow to control if legend and/or footer shown by tpm2_list_devices() 2024-12-12 15:21:16 +09:00
modules-load various: check meson feature flag early 2024-11-13 08:21:33 +09:00
mount
mountfsd various: set info on varlink server object 2024-12-10 10:51:56 +01:00
network tree-wide: drop acquire_data_fd_full() helper 2024-12-17 18:26:15 +01:00
notify sd-daemon: add fd array size safety check to sd_notify_with_fds() 2024-11-04 12:10:09 +01:00
nspawn tree-wide: remove support for kernels lacking ambient caps 2024-12-17 17:34:46 +01:00
nsresourced nsresourced: drop unneeded REMOVE_PHYSICAL flag for rm_rf() 2024-12-12 05:17:17 +09:00
nss-myhostname
nss-mymachines
nss-resolve json-util: generalize json_dispatch_ifindex() 2024-11-04 11:42:37 +01:00
nss-systemd
oom tree-wide: drop acquire_data_fd_full() helper 2024-12-17 18:26:15 +01:00
path
pcrextend tpm2-util: allow to control if legend and/or footer shown by tpm2_list_devices() 2024-12-12 15:21:16 +09:00
pcrlock tree-wide: replace ANSI_XYZ with ansi_xyz() 2024-12-11 10:11:53 +09:00
portable portable: do not use SYNTHETIC_ERRNO for sd_bus_error_set_errno() 2024-11-13 17:47:11 +01:00
pstore various: check meson feature flag early 2024-11-13 08:21:33 +09:00
quotacheck Undeprecate commandline params forcequotacheck, fastboot, and forcefsck 2024-11-23 17:30:56 +09:00
random-seed
rc-local-generator
remount-fs
repart repart: Take configured minimum and maximum size into account for Minimize= 2024-12-13 15:10:29 +00:00
reply-password
resolve various: set info on varlink server object 2024-12-10 10:51:56 +01:00
rfkill
rpm
run Revert "run: disable --expand-environment by default for --scope" 2024-12-12 06:05:30 +09:00
run-generator
sbsign sbsign: remove unused --no-pager option 2024-11-12 17:52:48 +01:00
shared serialize: add explicit calls for finishing serialization 2024-12-17 18:26:15 +01:00
shutdown shutdown: propagate one more error from sync_making_progress() 2024-11-23 17:32:51 +09:00
sleep efivars: Remove STRINGIFY() helper macros 2024-11-02 23:20:57 +01:00
socket-activate
socket-proxy
ssh-generator ssh-generator: silence "Binding to socket" messages 2024-11-19 11:00:20 +01:00
stdio-bridge
storagetm
sulogin-shell
sysctl
sysext various: set info on varlink server object 2024-12-10 10:51:56 +01:00
system-update-generator
systemctl systemctl-edit: ignore ENOENT from unit_is_masked() 2024-12-17 13:19:35 +09:00
systemd udev: add option to trigger parent devices despite filters 2024-12-16 15:43:52 +01:00
sysupdate sysupdate: fix typo in DBus config 2024-12-07 11:33:29 +00:00
sysusers various: check meson feature flag early 2024-11-13 08:21:33 +09:00
sysv-generator sysv-generator: break long message into lines 2024-10-28 14:04:06 +01:00
test serialize: add explicit calls for finishing serialization 2024-12-17 18:26:15 +01:00
timedate fileio: port write_string_file() to LabelOps, and thus add WRITE_STRING_FILE_LABEL flag 2024-10-22 17:51:26 +02:00
timesync tree-wide: replace for loop with FOREACH_ELEMENT or FOREACH_ARRAY macros (#34893) 2024-10-26 07:10:22 +09:00
tmpfiles tmpfiles: reduce quoting in warning message 2024-12-13 16:23:05 +00:00
tpm2-setup tpm2-util: allow to control if legend and/or footer shown by tpm2_list_devices() 2024-12-12 15:21:16 +09:00
tty-ask-password-agent tty-askpw-agent: modernize wall_tty_match() a bit 2024-10-21 14:15:21 +02:00
udev udev: add option to trigger parent devices despite filters 2024-12-16 15:43:52 +01:00
ukify ukify: ellipsize CN to not exceed maximum length 2024-12-02 16:55:57 +00:00
update-done sysext: set SELinux context for hierarchies and workdir 2024-11-26 17:47:32 +00:00
update-utmp update-utmp: wait slightly longer for the private bus socket being active 2024-10-29 08:43:21 +09:00
user-sessions shared: get rid of fileio-label.[ch] 2024-10-22 17:51:26 +02:00
userdb userdbctl: use ansi_highlight_green_red() where appropriate 2024-12-11 19:19:46 +01:00
varlinkctl sd-json,tree-wide: add sd_json_format_enabled() and use it everwhere 2024-10-28 09:23:07 +01:00
vconsole vconsole-setup: drop impossible condition 2024-12-13 16:23:05 +00:00
veritysetup various: check meson feature flag early 2024-11-13 08:21:33 +09:00
version
vmspawn vmspawn: enable memory pressure logic for vmspawn 2024-11-19 10:12:03 +01:00
volatile-root
vpick
xdg-autostart-generator