Arnaud Patard [Mon, 8 Jul 2024 13:39:14 +0000 (15:39 +0200)]
src/pcrlock/pcrlock.c: Handle empty pcrlock.d directories
Running the following commands:
# mkdir -p /var/lib/pcrlock.d/123-empty.pcrlock.d
# /usr/lib/systemd/systemd-pcrlock predict --pcr=1+2+3+4+5+16
Will result in:
...
Floating point exception
Running the following commands:
# mkdir -p /var/lib/pcrlock.d/123-empty.pcrlock.d
# /usr/lib/systemd/systemd-pcrlock make-policy --pcr=1+2+3+4+5+16
Will result to this (partial) log:
...
Predicted future PCRs in 133us.
[]
...
Written policy digest
0000000000000000000000000000000000000000000000000000000000000000 to NV index 0x1921da6
...
So, add missing checks to handle gracefully cases where there's no variant
inside the component.
Signed-off-by: Arnaud Patard <arnaud.patard@collabora.com>
Luca Boccassi [Sun, 4 Aug 2024 22:47:29 +0000 (23:47 +0100)]
logind: add PreparingForShutdownWithMetadata property
The PrepareForShutdownWithMetadata signal was added via
e4aab5cf1a00bbb73f325f4f785dd4171ccdae77 but a corresponding property
was not. A property has to be a single type, so the bool needs to be
one of the key/value pairs as 'ba{sv}' is not a valid property.
Daan De Meyer [Mon, 5 Aug 2024 14:21:48 +0000 (16:21 +0200)]
Merge pull request #33912 from DaanDeMeyer/mkosi
test: Add a way to quickly iterate on an integration test
Daan De Meyer [Mon, 5 Aug 2024 13:37:46 +0000 (15:37 +0200)]
mkosi: Prevent busybox from getting pulled into opensuse images
OpenSUSE's busybox has a bunch of Provides for basic tools that cause
it to get pulled into images unless the corresponding tool is explicitly
installed so let's add explicit tools to make sure we don't get busybox.
rajmohan r [Mon, 29 Jul 2024 12:10:58 +0000 (17:40 +0530)]
systemd-analyze: Add svg scaling options
+ Scale the x-axis of the resulting plot by a factor (default 1.0)
+ Add activation timestamps to each bar
Signed-off-by: rajmohan r <rajmohan.r@kpit.com>
Daan De Meyer [Fri, 2 Aug 2024 14:25:03 +0000 (16:25 +0200)]
test: Add a way to quickly iterate on an integration test
Rebuilding the integration test every time is very slow. Let's
introduce a way to iterate on an integration test without rebuilding
the image every time. By making a btrfs snapshot before we run the
integration test, we can then systemctl soft-reboot after running
the test to restore the rootfs to a pristine state before running
the test again.
As /run/nextroot will get nuked on reboot or soft-reboot, we introduce
a tmpfiles snippet to make sure it is recreated every (soft-)reboot
and adapt the existing tests to deal with this new symlink.
Daan De Meyer [Fri, 2 Aug 2024 14:23:40 +0000 (16:23 +0200)]
mkosi: Switch back to btrfs
The next commit will introduce a way to iterate on integration
tests which depends on btrfs specific features.
We leave CentOS on ext4 as its kernel does not support btrfs.
Daan De Meyer [Fri, 2 Aug 2024 14:22:37 +0000 (16:22 +0200)]
mkosi: Enable Autologin= again on Debian
Debian uses /usr/bin/login from the shadow package instead of util-linux
which doesn't support credentials. Let's enable autologin the old
fashioned way for now.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833256
Daan De Meyer [Fri, 2 Aug 2024 13:46:41 +0000 (15:46 +0200)]
test: Implement TEST_SHELL for mkosi based test runner
TEST_SHELL can be used to get a shell in the integration test
environment without actually immediately starting the test.
Daan De Meyer [Fri, 2 Aug 2024 14:16:14 +0000 (16:16 +0200)]
test: Rename INTERACTIVE_DEBUG to TEST_SHELL
Daan De Meyer [Fri, 2 Aug 2024 13:18:45 +0000 (15:18 +0200)]
docs: Update upgrade commands in HACKING.md
- Add the required options to make the package managers non interactive
- Use apt-get instead of apt
- Remove --reinstall from apt-get command so we only install newer packages
- Add --needed to pacman command so we only install newer packages
Daan De Meyer [Fri, 2 Aug 2024 11:45:41 +0000 (13:45 +0200)]
mkosi: Drop locale tmpfiles snippet
Not required anymore as we don't do /usr only anymore and the symlink
will be created by the debian systemd package.
Luca Boccassi [Mon, 5 Aug 2024 09:37:39 +0000 (11:37 +0200)]
Merge pull request #33939 from yuwata/resolve-varlink
resolve: type field in result of ResolveService may be NULL
Luca Boccassi [Mon, 5 Aug 2024 09:28:48 +0000 (11:28 +0200)]
Merge pull request #33944 from yuwata/journal-max-retention-sec
journal: do not rotate journal when MaxRetentionSec= is set
Yu Watanabe [Mon, 5 Aug 2024 05:18:21 +0000 (14:18 +0900)]
journal: set flushed flag even if we fail to open runtime journals
As at this stage, a persistent journal file has been already opened, and
saved seqnum has been reset, and any later journal entries will be stored
to the file. Hence we should not open the runtime journal file by
server_system_journal_open() again.
Yu Watanabe [Mon, 5 Aug 2024 06:24:07 +0000 (15:24 +0900)]
journal: comment the default value in journald.conf
Yu Watanabe [Mon, 5 Aug 2024 05:56:11 +0000 (14:56 +0900)]
journal: do not rotate journal when MaxRetentionSec= is set
The setting is about vacuuming archived journal files. It is not
necessary to rotate the current journal. Note, journal file rotation is
controlled by MaxFileSec=.
Fixes #31315.
Yu Watanabe [Mon, 5 Aug 2024 01:46:41 +0000 (10:46 +0900)]
resolve: refuse invalid service without type field
Fixes Fixes #33935.
Yu Watanabe [Mon, 5 Aug 2024 01:43:13 +0000 (10:43 +0900)]
resolve: voidify unused result of function call
Marc Reisner [Sun, 4 Aug 2024 23:01:34 +0000 (18:01 -0500)]
sleep: add HibernateOnACPower= option (#33846)
* Add HibernateOnACPower= systemd-sleep configuration option
Luca Boccassi [Sun, 4 Aug 2024 12:20:27 +0000 (14:20 +0200)]
Merge pull request #33918 from YHNdnzj/exec-cred-cleanup
core/exec-credential: several cleanups
Luca Boccassi [Sun, 4 Aug 2024 11:31:47 +0000 (13:31 +0200)]
Merge pull request #33930 from yuwata/update-syscall-tables-and-linux-headers
Update syscall tables and linux headers
Yu Watanabe [Sun, 4 Aug 2024 02:29:03 +0000 (11:29 +0900)]
sd-event: change error code -EINVAL -> -EIO
EINVAL should be used when a function is called with an invalid
argument. Here, the signal is not a function argument.
Follow-up for
7a64c5f23efbb51fe4f1229c1a8aed6dd858a0a9.
Yu Watanabe [Sun, 4 Aug 2024 01:38:21 +0000 (10:38 +0900)]
basic/linux: update kernel headers from v6.11-rc1
Yu Watanabe [Sun, 4 Aug 2024 01:34:26 +0000 (10:34 +0900)]
seccomp: list fstatat, newfstat, and llseek
Yu Watanabe [Sun, 4 Aug 2024 01:28:06 +0000 (10:28 +0900)]
syscall-list: update syscall tables
This adds fstatat (and its friends), llseek, and uretprobe.
Mike Yuan [Wed, 31 Jul 2024 21:45:16 +0000 (23:45 +0200)]
core/exec-credential: do not use unlink_and_free for relative path under dfd
Mike Yuan [Wed, 31 Jul 2024 21:38:25 +0000 (23:38 +0200)]
core/exec-credential: emit correct error on invalid cred source
The (!source && !search_path) branch is effectively not reached,
but rather confusing. Let's return -EINVAL properly.
Mike Yuan [Wed, 31 Jul 2024 17:44:25 +0000 (19:44 +0200)]
core/exec-credential: use struct load_cred_args everywhere
We currently duplicate the same set of params for every funcs.
Let's unify this, and make things more manageable.
Mike Yuan [Wed, 31 Jul 2024 17:05:15 +0000 (19:05 +0200)]
core/exec-credential: use maybe_decrypt_and_write_credential() for SetCred= too
Mike Yuan [Wed, 31 Jul 2024 17:03:44 +0000 (19:03 +0200)]
core/exec-credential: drop misleading comment regarding EEXIST
Follow-up for
2c2ed3272b992b6eb13864e49847c943e42be00f
As explained in the referenced commit, we shall never get EEXIST
in the first place.
Mike Yuan [Wed, 31 Jul 2024 16:50:38 +0000 (18:50 +0200)]
core/exec-credential: trivial coding style cleanup
Mike Yuan [Sat, 3 Aug 2024 11:18:01 +0000 (13:18 +0200)]
core/dbus-execute: normalize "rename" arg properly
Follow-up for
40dd2a1c24b886d9e635fef8f7b5336700df03c3
Addresses https://github.com/systemd/systemd/pull/33916#discussion_r1702616229
Marin Kresic [Sun, 4 Aug 2024 03:41:07 +0000 (05:41 +0200)]
po: Translated using Weblate (Croatian)
Currently translated at 82.8% (193 of 233 strings)
Co-authored-by: Marin Kresic <marinjurekresic@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/hr/
Translation: systemd/main
Dimitrys Meliates [Sun, 4 Aug 2024 03:41:06 +0000 (05:41 +0200)]
po: Translated using Weblate (Greek)
Currently translated at 37.7% (88 of 233 strings)
Co-authored-by: Dimitrys Meliates <demetresmeliates+fedora@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/el/
Translation: systemd/main
Luca Boccassi [Sat, 3 Aug 2024 23:00:05 +0000 (00:00 +0100)]
base-filesystem: do not attempt to create a /lib64 -> /usr/lib/<tuple> symlink
In multi-arch distributions (debian and derivatives) multiarch tuples under
/usr/lib are used, such as /usr/lib/x86_64-linux-gnu/ but the /lib64 symlink
should never point there, it should always point to /usr/lib64, as that's
how they are set up by distribution-specific tools.
https://packages.debian.org/bookworm/amd64/libc6-i386/filelist
https://packages.debian.org/bookworm/mipsel/libc6-mips64/filelist
https://salsa.debian.org/md/usrmerge/-/blob/master/convert-usrmerge?ref_type=heads#L295
https://salsa.debian.org/md/usrmerge/-/blob/master/convert-usrmerge?ref_type=heads#L517
http://bugs.debian.org/
1076491
Fixes https://github.com/systemd/systemd/issues/33919
Daan De Meyer [Sat, 3 Aug 2024 18:10:54 +0000 (20:10 +0200)]
meson: Use -fstrict-flex-arrays=3
Let's explicitly pass the value to -fstrict-flex-arrays. This does
not change behavior but it does (selfishly) make my error not bug
out with an error saying -fstrict-flex-arrays does not exist.
Nova840 [Sun, 4 Aug 2024 00:38:40 +0000 (20:38 -0400)]
hwdb: fix auto rotate on Asus Q551LB (#33921)
Mike Yuan [Sat, 3 Aug 2024 19:46:51 +0000 (21:46 +0200)]
core/service: drop redundant flush_n_restarts indicator
Now that we track auto-restarts with a dedicated state,
there's no need for a separate variable for this.
I also took the chance to reorder some struct members.
Yu Watanabe [Sun, 4 Aug 2024 00:35:51 +0000 (09:35 +0900)]
Merge pull request #33925 from YHNdnzj/exec-serialize-path-escape
core/execute-serialize: two fixes
Mike Yuan [Sat, 3 Aug 2024 20:38:18 +0000 (22:38 +0200)]
core/execute-serialize: use serialize_item_escaped() for external paths
Otherwise, read_stripped_line() would spuriously drop trailing spaces.
Fixes #33924
Mike Yuan [Sat, 3 Aug 2024 20:37:41 +0000 (22:37 +0200)]
core/execute-serialize: drop extraneous '=' in ip-{in,e}gress serialization
Mike Yuan [Thu, 1 Aug 2024 00:23:14 +0000 (02:23 +0200)]
core/service: actually allow to "hurry up" auto restarts
unit_start() advertises that start requests don't get suppressed,
so that it could be used to manually speed up auto restarts.
However, service_start() so far rejected this, stating that
clients should issue restart request in order to trigger
BindsTo=/OnFailure=.
That seems to be a red herring though, because for a long time
the service states between auto-restarts were buggy (#27594).
With the introduction of RestartMode=direct, the behavior
is sane again and customizable, hence I see no reason to refuse
this anymore. Whether those deps are triggered solely depends
on RestartMode= now.
Plus, filter out some intermediate states that should never
be seen in service_start().
Fixes #33890
Daan De Meyer [Sat, 3 Aug 2024 08:04:55 +0000 (10:04 +0200)]
Merge pull request #33916 from yuwata/import-creds-follow-ups
core: several follow-ups for ImportCreds=
Yu Watanabe [Sat, 3 Aug 2024 05:25:16 +0000 (14:25 +0900)]
core: refuse credentials with invalid names matching with glob
Even if the glob pattern is valid, the pattern may match credentials
with invalid names. So, we need to check the names of the found
credentials.
Follow-up for
947c4d3952e30604b97f657dca08f93a0a8f4bae.
Yu Watanabe [Sat, 3 Aug 2024 05:22:37 +0000 (14:22 +0900)]
test: a credential can be imported multiple times with different names
This is supported since
831f208783aeac443e6f2fc2efc3119535a032ef.
Let's explicitly test the functionality.
Yu Watanabe [Sat, 3 Aug 2024 05:19:35 +0000 (14:19 +0900)]
core: make ImportCredentialEx= DBus property support without renaming
Note that the conf parser for ImportCredential= checks in the same way.
Follow-up for
831f208783aeac443e6f2fc2efc3119535a032ef.
Yu Watanabe [Sat, 3 Aug 2024 04:33:59 +0000 (13:33 +0900)]
Yu Watanabe [Fri, 2 Aug 2024 21:20:02 +0000 (06:20 +0900)]
Merge pull request #33911 from YHNdnzj/cgroup-setup-cleanup
cgroup-setup/util: several cleanups; make use of cgroup.kill on client request
Yu Watanabe [Fri, 2 Aug 2024 07:45:15 +0000 (16:45 +0900)]
man/net-naming-scheme: mention that NAMING_BRIDGE_MULTIFUNCTION_SLOT is reverted
Follow-up for
af7417ac7b07bc01232982bf46e9d72e69e7f820.
Closes #33596.
Yu Watanabe [Fri, 2 Aug 2024 04:42:29 +0000 (13:42 +0900)]
man: extend explanation for ConfigureWithoutCarrier= in systemd.network(5)
Prompted by #33702.
Yu Watanabe [Fri, 2 Aug 2024 20:56:08 +0000 (05:56 +0900)]
Yu Watanabe [Fri, 2 Aug 2024 20:55:02 +0000 (05:55 +0900)]
Yu Watanabe [Fri, 2 Aug 2024 20:54:08 +0000 (05:54 +0900)]
Yu Watanabe [Fri, 2 Aug 2024 20:53:04 +0000 (05:53 +0900)]
Yu Watanabe [Fri, 2 Aug 2024 20:51:54 +0000 (05:51 +0900)]
Yu Watanabe [Fri, 2 Aug 2024 20:50:46 +0000 (05:50 +0900)]
Yu Watanabe [Fri, 2 Aug 2024 20:49:53 +0000 (05:49 +0900)]
Yu Watanabe [Fri, 2 Aug 2024 20:48:51 +0000 (05:48 +0900)]
Yu Watanabe [Fri, 2 Aug 2024 20:47:52 +0000 (05:47 +0900)]
Yu Watanabe [Fri, 2 Aug 2024 20:46:28 +0000 (05:46 +0900)]
Yu Watanabe [Fri, 2 Aug 2024 07:51:15 +0000 (16:51 +0900)]
man/net-naming-scheme: add missing period
Follow-up for
0a4ecc54cb9f2d3418b970c51bfadb69c34ae9eb.
Yu Watanabe [Fri, 2 Aug 2024 20:32:39 +0000 (05:32 +0900)]
Merge pull request #33913 from berrange/cvm-s390x
Add detection of confidential virtualization on s390x architcture
Mike Yuan [Fri, 2 Aug 2024 19:00:00 +0000 (21:00 +0200)]
advanced-issue-labeler: use correct label for env-generator
Daniel P. Berrangé [Fri, 2 Aug 2024 12:17:56 +0000 (13:17 +0100)]
man/systemd-detect-virt: list known CVM technologies
Add a section which lists the known confidential virtual machine
technologies.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Daniel P. Berrangé [Fri, 2 Aug 2024 12:07:13 +0000 (13:07 +0100)]
man/systemd-detect-virt: fix row spanning for VM header
This fixes
commit
9b0688f491674b53ef7a52bdf561a430c53673d6
Author: Yu Watanabe <watanabe.yu+github@gmail.com>
Date: Tue Jan 9 10:52:49 2024 +0900
virt: add Google Compute Engine support
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Daniel P. Berrangé [Fri, 2 Aug 2024 10:03:10 +0000 (11:03 +0100)]
confidential-virt: add detection for s390x target
The s390x platform provides confidential VMs using the "Secure Execution"
technology, which is also referred to as "Protected Virtualization" or
just "prot virt" in Linux / QEMU.
This can be detected through a simple sysfs attribute.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
jauge-technica [Fri, 2 Aug 2024 15:31:20 +0000 (17:31 +0200)]
Added support for L2 BridgeMDB entries (#32894)
* Added support for L2 BridgeMDB entries
Daniel P. Berrangé [Fri, 2 Aug 2024 15:26:00 +0000 (16:26 +0100)]
confidential-virt: split caching of CVM detection into separate method
We have different impls of detect_confidential_virtualization per
architecture. The detection is cached in the x86_64 impl, and as we
add support for more targets, we want to use caching for all. It thus
makes sense to split caching out into an architecture independent
method.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Frantisek Sumsal [Fri, 2 Aug 2024 08:13:47 +0000 (10:13 +0200)]
test: don't use /skipped for subtests
Since, at least the old framework, checks for the presence of the file
at the end and marks the whole test as skipped if it exists.
Resolves: systemd/systemd-centos-ci#728
Mike Yuan [Tue, 30 Jul 2024 21:03:15 +0000 (23:03 +0200)]
core/unit: utilize cgroup.kill on client request + SIGKILL
Mike Yuan [Tue, 30 Jul 2024 20:43:49 +0000 (22:43 +0200)]
cgroup-util: clean up cg_kill() and friends, completely split out cg_kill_kernel_sigkill()
cg_kill_kernel_sigkill() has a narrow use case, and currently
no code really reaches that branch. Let's detach it from
cg_kill_recursive() hence, and call it explicitly later
where appropriate.
Mike Yuan [Tue, 30 Jul 2024 19:44:36 +0000 (21:44 +0200)]
core/unit: modernize log_kill() too
Mike Yuan [Tue, 30 Jul 2024 19:37:36 +0000 (21:37 +0200)]
core/unit: unexport cg_kill log funcs, rather take in bool
It seems unnecessary to duplicate the func ptrs everywhere.
Mike Yuan [Tue, 30 Jul 2024 20:29:00 +0000 (22:29 +0200)]
cgroup-util: drop unused cg_rmdir()
When removing a cgroup, we always want to eliminate subcgroups
first, i.e. use cg_trim(). And cg_rmdir() (along with
CGROUP_REMOVE flag) is simply unused. Kill it.
Mike Yuan [Tue, 30 Jul 2024 19:18:47 +0000 (21:18 +0200)]
cgroup-util: refactor cg_{ns,freezer,kill}_supported
Mike Yuan [Tue, 30 Jul 2024 18:35:10 +0000 (20:35 +0200)]
cgroup-setup: kernel threads can reside in arbitrary cgroups
Realistically this doesn't matter, as cg_migrate() is only
used to populate init.scope. But it's probably better to
make things clear.
Mike Yuan [Tue, 30 Jul 2024 15:45:19 +0000 (17:45 +0200)]
cgroup-setup: drop unneeded O_RDONLY when O_DIRECTORY
Mike Yuan [Tue, 30 Jul 2024 15:42:33 +0000 (17:42 +0200)]
cgroup-setup: use fchownat() + AT_EMPTY_PATH where appropriate
This already existed long before our kernel baseline.
While at it, switch to RET_GATHER().
Mike Yuan [Tue, 30 Jul 2024 14:10:06 +0000 (16:10 +0200)]
cgroup-setup: minor cleanups
Mike Yuan [Tue, 30 Jul 2024 14:15:59 +0000 (16:15 +0200)]
cgroup-setup: move cg_{,un}install_release_agent from cgroup-util
They're pid1-specific, so move them out of basic/.
Mike Yuan [Tue, 30 Jul 2024 13:52:02 +0000 (15:52 +0200)]
cgroup-setup: group v1-specific functions
Mike Yuan [Tue, 30 Jul 2024 13:40:25 +0000 (15:40 +0200)]
cgroup-setup: drop unused cg_migrate_callback for cg_attach_everywhere()
While at it, move the typedef from cgroup-util to -setup.
Yu Watanabe [Fri, 2 Aug 2024 04:56:47 +0000 (13:56 +0900)]
localectl: introduce -l/--full option
Closes #33906.
Yu Watanabe [Fri, 2 Aug 2024 03:41:53 +0000 (12:41 +0900)]
Merge pull request #33032 from yuwata/sd-device-monitor-low-level-api
sd-device-monitor: expose low-level functions
Yu Watanabe [Fri, 2 Aug 2024 02:37:05 +0000 (11:37 +0900)]
Merge pull request #33876 from dbnicholson/firstboot-root-creds-only
firstboot: fix root params with creds and prompting disabled
Ronan Pigott [Thu, 1 Aug 2024 17:59:12 +0000 (10:59 -0700)]
resolved: don't treat conn reset as packet loss
tcp reset / icmp port-unreachable are markedly different conditions than
packet loss. It doesn't make much sense to retry in this case. It's
actually not clear if there is any benefit at all retrying tcp
connections, which were presumably already retried as necessary by the
tcp stack.
Yu Watanabe [Thu, 1 Aug 2024 06:46:03 +0000 (15:46 +0900)]
test: add test case for restarting device monitor
Yu Watanabe [Wed, 31 Jul 2024 05:21:33 +0000 (14:21 +0900)]
sd-device-monitor: rename device_monitor_send_device() -> device_monitor_send()
Yu Watanabe [Mon, 27 May 2024 03:22:30 +0000 (12:22 +0900)]
sd-device-monitor: expose low-level functions
To make it work without sd-event.
Prompted by recent chat:
> Hey all!
> reading man libudev, it says to use sd-device instead now. I've read that
> APIs header file and it seems it no longer has an equivalent to libudev's
> udev_monitor_get_fd, which AFAICT means I have to use sd-event to watch
> for events I'm interested in. I know I can "embed" sd-event in other event
> loops I might already have, but that seems overkill when I'm only interested
> in this one type of event and don't need sd-event for anything else.
Yu Watanabe [Fri, 2 Aug 2024 02:20:43 +0000 (11:20 +0900)]
sd-device-monitor: make device_monitor_receive_device() always initialize ret on success
Yu Watanabe [Mon, 27 May 2024 03:12:50 +0000 (12:12 +0900)]
sd-device-monitor: remove device_monitor_disconnect()
It is not necessary to be exposed anymore.
Yu Watanabe [Mon, 27 May 2024 03:05:24 +0000 (12:05 +0900)]
udev: manage only socket address of device monitor
Previously, the main process of systemd-udevd manages worker process
with their sd_device_monitor object to save the destination address.
Let's save only destination address, and drop worker's sd_device_monitor
object.
Yu Watanabe [Mon, 27 May 2024 03:31:33 +0000 (12:31 +0900)]
sd-device-monitor: introduce device_monitor_get_address()
Currently it is used internally, but will be used later at other places.
Yu Watanabe [Mon, 27 May 2024 02:08:33 +0000 (11:08 +0900)]
sd-device: allow to restart device monitor
Previously, sd_device_monitor_stop() closes socket, hence we cannot
restart monitoring unless recreating sd_device_monitor object.
Let's allow to restart monitor by sd_device_monitor_start().
Yu Watanabe [Thu, 1 Aug 2024 03:26:44 +0000 (12:26 +0900)]
sd-device-monitor: introduce sd_device_monitor_is_running()
Yu Watanabe [Mon, 27 May 2024 01:43:54 +0000 (10:43 +0900)]
sd-device-monitor: bind socket in device_monitor_new_full()
Previously, device_monitor_enable_receiving() does
- update filter,
- bind socket.
But, binding socket can be done in when the socket is opened.
Let's remove device_monitor_enable_receiving() and bind the socket in
device_monitor_new_full().
Yu Watanabe [Wed, 31 Jul 2024 03:23:40 +0000 (12:23 +0900)]
sd-device-monitor: replace -1 with -EBADF
Yu Watanabe [Thu, 1 Aug 2024 04:14:47 +0000 (13:14 +0900)]
test: modernize test-sd-device-monitor.c
Yu Watanabe [Wed, 31 Jul 2024 04:21:08 +0000 (13:21 +0900)]
socket-util: introduce netlink_socket_get_multicast_groups()
No functional change. Preparation for later commits.