summaryrefslogtreecommitdiffstats
path: root/man/send-unit-files-changed.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-11-09dissect: simplify flags for recurse_dir()Lennart Poettering1-1/+1
We are not interested in the struct dirent data, hence there's no point in passing RECURSE_DIR_ENSURE_TYPE. Let's drop it, and thus avoid some extrac work on file systems where readdir() does not report .d_type. Also drop RECURSE_DIR_SAME_MOUNT, because DDIs after all may contain multiple partitions, and we mount them all together. The --list command really should report the full set of files in an image.
2022-11-09dissect: remove unused variableLennart Poettering1-2/+1
2022-11-09po: Translated using Weblate (French)blutch1121-10/+9
Currently translated at 100.0% (193 of 193 strings) Co-authored-by: blutch112 <vincent.lefebvre59@gmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/fr/ Translation: systemd/main
2022-11-09basic/virt: treat missing /proc as sign of being in a chrootZbigniew Jędrzejewski-Szmek1-0/+16
The logic of running_in_chroot() has been the same since the introduction of this function in b4f10a5e8956d26f0bc6b9aef12846b57caee08b: if /proc is not mounted, the function returns -ENOENT and all callers treat this as false. But that might be the most common case of chrooted calls, esp. in all the naïve chroots that were done with the chroot binary without additional setup. (In particular rpm executes all scriptlets in a chroot without bothering to set up /proc or /sys, and we have codepaths in sysusers and tmpfiles to support running in such an environment.) This change effectively shortcircuits various calls to udevadm, downgrades logging in tmpfiles, and disables all verbs marked with VERB_ONLINE_ONLY in systemctl. detect-virt -r is also affected: $ sudo chroot /var/lib/machines/rawhide before> systemd-detect-virt -r && echo OK Failed to check for chroot() environment: No such file or directory after> systemd-detect-virt -r && echo OK OK
2022-11-09networkd-ipv4acd.c: Use net/if.h for getting IFF_LOOPBACK definitionKhem Raj1-1/+2
This helps in avoiding compiling errors on musl. Definition of IFF_LOOPBACK is the reason for including linux/if_arp.h, this however could be obtained from net/if.h glibc header equally and makes it portable as well.
2022-11-08dissect: grey out trailing slash in --list outputLennart Poettering1-1/+1
Given this is just auxiliary info, let's make it a tiny bit less visible then the main part of the path.
2022-11-08Rename def.h to constants.hZbigniew Jędrzejewski-Szmek75-97/+98
The name "def.h" originates from before the rule of "no needless abbreviations" was established. Let's rename the file to clarify that it contains a collection of various semi-related constants.
2022-11-08basic/filesystems: fs_in_group() returns a booleanZbigniew Jędrzejewski-Szmek2-4/+3
is_{temporary,network}_fs() looked like they are incorrectly casting an error to true, but actually the return type is misdeclared.
2022-11-08basic: rename util.h to logarithm.hZbigniew Jędrzejewski-Szmek194-187/+14
util.h is now about logarithms only, so we can rename it. Many files included util.h for no apparent reason… Those includes are dropped.
2022-11-08basic: move a bunch of cmdline-related funcs to new argv-util.c+hZbigniew Jędrzejewski-Szmek18-354/+382
I wanted to move saved_arg[cv] to process-util.c+h, but this causes problems: process-util.h includes format-util.h which includes net/if.h, which conflicts with linux/if.h. So we can't include process-util.h in some files. But process-util.c is very long anyway, so it seems nice to create a new file. rename_process(), invoked_as(), invoked_by_systemd(), and argv_looks_like_help() which lived in process-util.c refer to saved_argc and saved_argv, so it seems reasonable to move them to the new file too. util.c is now empty, so it is removed. util.h remains.
2022-11-08meson: add version.h as dependency to more targetsZbigniew Jędrzejewski-Szmek3-80/+165
version.h can be generated after compilation starts, creating a race condition between compilation of various .c files and creation of version.h. Let's add it as a dependency to more build targets that require version.h or build.h. So far we played whack'a'mole by adding versiondep whenever compilation failed. In principle any target which includes compilation (i.e. any that has .c sources directly), could require this. I don't understand why we didn't see more failures… But it seems reasonable to just add the dependency more widely.
2022-11-08update TODOLennart Poettering1-0/+7
2022-11-08mkosi: Build and install kernel selftestsDaan De Meyer8-4/+110
2022-11-08mkosi: Add back libasan/libubsan librariesDaan De Meyer5-0/+7
These were accidentally removed as part of #24025
2022-11-08basic: move version() to build.h+cZbigniew Jędrzejewski-Szmek73-36/+80
2022-11-08basic,shared: move disable_coredumps() to coredump-util.[ch]Zbigniew Jędrzejewski-Szmek6-14/+16
2022-11-08basic: move container_get_leader() to process-util.[ch]Zbigniew Jędrzejewski-Szmek6-45/+46
basic/util.[ch] is a grab-bag of unrelated functions. Let's move a few of the remaning functions to better locations.
2022-11-08basic: create new basic/initrd-util.[ch] for initrd-related functionsZbigniew Jędrzejewski-Szmek32-80/+111
I changed imports of util.h to initrd-util.h, or added an import of initrd-util.h, to keep compilation working. It turns out that many files didn't import util.h directly. When viewing the patch, don't be confused by git rename detection logic: a new .c file is added and two functions moved into it.
2022-11-08tests: move tests for eqzero() to a new fileZbigniew Jędrzejewski-Szmek4-26/+20
It's a bit silly to have a separate file that one short test, but this is the last part of the test code that is misplaced, and here consistency beats brevity.
2022-11-08tests: move tests for PROTECT_ERRNO to the right fileZbigniew Jędrzejewski-Szmek2-31/+31
Also, rename them to uppercase so that the test name matches what we're actually testing.
2022-11-08tests: create test-raw-clone.c for raw-clone.hZbigniew Jędrzejewski-Szmek4-31/+44
The include for process-util.h is added for reset_cached_pid(). This essentially fixes a pre-existing missing include.
2022-11-08tests: create test-limits-util.c for limits-util funcsZbigniew Jędrzejewski-Szmek3-82/+91
2022-11-08sd-journal: make prot_from_flags() static and renameZbigniew Jędrzejewski-Szmek3-21/+14
The function had just one caller and a name that didn't explain much. Let's make it static and rename for clarity. While at it, the only caller was not doing error handling correctly — the function would potentially return a negative error value which wasn't handled. In practice this couldn't happen, but let's remove this ambiguity.
2022-11-08test: adjust systemd-mount's tests based on recent coverage reportsFrantisek Sumsal1-5/+16
2022-11-08test: install realpath into the test imagesFrantisek Sumsal1-0/+1
2022-11-08man: add note that network-generator is not a generatorZbigniew Jędrzejewski-Szmek1-2/+9
Also fix indentation.
2022-11-08test: fix a race in the systemd-mount testFrantisek Sumsal1-2/+2
Where we might check the automount unit before systemd has a chance to react.
2022-11-08hwdb: Add accel orientation quirk for the Acer Switch V 10 SW5-017 2-in-1Hans de Goede1-0/+3
Add a quirk for the accelerometer orientation for the Acer Switch V 10 SW5-017 2-in-1.
2022-11-07Fix key toggle and programmable button for Positivo N14ZPdrosdeck1-0/+2
2022-11-07kernel-install: skip 50-depmod if depmod is not availableLuca Boccassi1-0/+1
Images might be built without any kernel module, and without installing depmod as it is not needed. Skip it. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023607
2022-11-07kernel-install/90-loaderentry: do not override an existing systemd.machine_idAntonio Alvarez Feijoo1-1/+1
If the systemd.machine_id command line option is already set, do not override it.
2022-11-07mkosi: use the new mkosi.conf suffixZbigniew Jędrzejewski-Szmek7-0/+0
Mkosi 14 is out, compat with old mkosi is not terribly important. Let's use the new nice suffix.
2022-11-07semaphore: remove the Semaphore repositories recursivelyFrantisek Sumsal1-1/+1
The list of disabled repositories was recently converted from a single file into a directory with separate repository files, so let's adjust the setup script accordingly. ``` $ ls -lR /etc/apt/sources.list.d/ /etc/apt/sources.list.d/: total 36 -rw-r--r-- 1 root root 76 Nov 3 10:28 azure-cli.list -rw-r--r-- 1 root root 72 Nov 3 10:22 bazel.list drwxr-xr-x 2 root root 4096 Nov 3 10:31 disabled -rw-r--r-- 1 root root 113 Nov 3 10:13 docker-source.list -rw-r--r-- 1 root root 367 Nov 3 10:28 github_git-lfs.list -rw-r--r-- 1 root root 111 Nov 3 10:25 google-chrome-source.list -rw-r--r-- 1 root root 64 Nov 3 10:14 google-cloud-sdk.list -rw-r--r-- 1 root root 54 Nov 3 10:23 helm-stable-debian.list -rw-r--r-- 1 root root 89 Nov 3 10:29 yarn-source.list /etc/apt/sources.list.d/disabled: total 20 -rw-r--r-- 1 root root 100 Nov 3 10:23 devel_kubic_libcontainers_stable.list -rw-r--r-- 1 root root 103 Nov 3 10:27 git.list -rw-r--r-- 1 root root 105 Nov 3 10:22 gradle.list -rw-r--r-- 1 root root 118 Nov 3 10:13 pypy.list -rw-r--r-- 1 root root 104 Nov 3 10:13 python.list ```
2022-11-07test: replace tmpfs with vfat when testing --owner=Frantisek Sumsal1-3/+12
2022-11-07Revert "mountpoint-util: tmpfs supports uid=/gid= mount options"Frantisek Sumsal1-1/+0
This reverts commit 7d4f00c88c65532bf66d20b3ec498b5bfaa621d2. fstype_can_uid_gid() is about fixating all files to the specified uid/gid. tmpfs does not qualify. The uid/gid parameter there is simply about the default uid/gid for the root inode of the tmpfs, it allows setting uids/gid arbirarily for all inodes after that. This distinction matters: for file systems this function returns true for we can use this in place of uidmapped mounts. But for tmpfs this is not going to work, given inodes on that fs can end up having arbitrary uid/gid. See: https://github.com/systemd/systemd/pull/25284#issue-1438427144
2022-11-07test: cover some interactive/error paths in firstbootFrantisek Sumsal1-1/+29
2022-11-07test: fix keymaps installation on ArchFrantisek Sumsal1-12/+13
Where the keymaps live under /usr/share/kbd/keymaps/.
2022-11-07test: fix locale installation when locale-gen is usedFrantisek Sumsal1-7/+12
locale-gen might merge all compiled locales into a simple archive, so we need to install it as well if necessary.
2022-11-07test: compile test-utmp.c only if UTMP is enabledTorsten Hilbrich1-1/+2
When compiling with -D utmp=false the compilation fails with: ../../git/systemd/src/test/test-utmp.c: In function ‘test_dump_run_utmp’: ../../git/systemd/src/test/test-utmp.c:21:9: error: cleanup argument not a function 21 | _unused_ _cleanup_(utxent_cleanup) bool utmpx = false; | ^~~~~~~~ ../../git/systemd/src/test/test-utmp.c:23:17: error: implicit declaration of function ‘utxent_start’ [-Werror=implicit-function-declaration] 23 | utmpx = utxent_start(); | ^~~~~~~~~~~~ any many other errors Add a conditional to compile test-utmp.c only if ENABLE_UTMP is true.
2022-11-07udevadm: merge two log stmtsZbigniew Jędrzejewski-Szmek1-5/+4
2022-11-07man: grammarroZbigniew Jędrzejewski-Szmek1-1/+1
2022-11-07sd-event: adjust indentationZbigniew Jędrzejewski-Szmek1-3/+3
2022-11-07test: don't ignore non-existent paths in inst_recursive()Frantisek Sumsal1-0/+4
The process substitution in the while loop hides errors raised by the find utility, which might (and did), in turn, hide errors in test setup.