Luca Boccassi
e0699e067e
Merge pull request #31411 from poettering/build-path
...
userdbd,homed,importd,sysupdate,pid1: make it easier to run daemons that have callouts from build dir
2024-02-23 11:57:42 +00:00
Lennart Poettering
eb9b95f9d8
update TODO
2024-02-23 11:09:08 +01:00
Zbigniew Jędrzejewski-Szmek
0ace2560ea
Merge pull request #31352 from DaanDeMeyer/versioning
...
Rework meson-vcs-tag.sh
2024-02-23 11:07:56 +01:00
Yu Watanabe
d0a337bb72
sd-dhcp,sd-ndisc: drop mistakenly set copyright
...
Follow-ups for
6efa51f862 (sd-dhcp-client-id.h),
97c3506dcd (sd-dhcp-duid.h),
461dbb2fa9 (sd-dhcp-option.h),
dd8ab4a206 (sd-dhcp-server-lease.h),
ca34b43481 (sd-ndisc-protocol.h and sd-ndisc-router.h).
2024-02-23 10:09:26 +01:00
Jan Macku
a62013b382
ci(freezer): use GitHub Markdown magic for messages
...
It should make messages easier to notice.
GitHub docs: https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts
2024-02-23 08:44:10 +00:00
Max Staudt
04f19d6735
udev: Add /dev/media/by-path symlinks for media controllers
...
Add persistent symlinks for media controller ("mediaX") devices, based
on their ID_PATH udev properties.
For example, if the uvcvideo driver creates /dev/media0, a persistent
name may be:
/dev/media/by-path/pci-0000:04:00.3-usb-0:1:1.0-media-controller
Persistent links are a handy tool to make scripts self-documenting
during development or in tests, as well as less error prone in case of
devices changing enumeration order. For media controllers, one can
alternatively scan through all of them and look for a matching bus_info
in their struct media_device_info, but the links are much handier when
drafting something by hand.
A similar pattern already exists for Video4Linux /dev/videoX devices,
see 60-persistent-v4l.rules for those.
2024-02-22 19:27:29 +00:00
Yu Watanabe
3976c43092
network: introduce per-interface IP forwarding settings
...
This deprecates IPForward= setting, which unconditionally controled
the global setting, even though it is a setting in .network file.
Instead, this introduces new IPv4Forwarding= and IPv6Forwarding=
settings both in .network and networkd.conf.
If these settings are specified in a .network file, then the
per-interface forwarding setting will be configured.
If specified in networkd.conf, then the global IP forwarding setting will
be configured.
Closes #30648 .
2024-02-22 19:24:12 +00:00
zzywysm
755fdfffa0
README: mention fq_codel
...
In 2014, systemd started choosing fq_codel as the default_qdisc in order to fight internet bufferbloat.
https://github.com/systemd/systemd/commit/e6c253e363dee77ef7e5c5f44c4ca55cded3fd47
https://github.com/systemd/systemd/commit/fa98c99ea7f7c5bec3962fa52f4d3496a9777024
While the subsequent change made this change no longer trigger warnings if fq_codel wasn't present, it is still recommended to have this enabled. Add the necessary kernel configuration to the documentation.
2024-02-22 19:14:31 +00:00
Luca Boccassi
623af61df9
Merge pull request #31441 from yuwata/sd-ndisc-fix-timer
...
sd-ndisc: disable timer event source only when a valid RA received
2024-02-22 18:48:43 +00:00
Luca Boccassi
c0b5b74ae3
Merge pull request #31445 from keszybz/slow-tests
...
Mark more tests as slow
2024-02-22 14:14:23 +00:00
Luca Boccassi
909c4f8587
Merge pull request #31414 from poettering/bsod-tweaks
...
bsod: some small bsod tweaks
2024-02-22 12:48:38 +00:00
Zbigniew Jędrzejewski-Szmek
9df75c85a3
docs: fix typo in page name
...
Fixup for 163e2c8346 .
2024-02-22 13:01:17 +01:00
Luca Boccassi
a0d2c41ed6
Merge pull request #31432 from poettering/vmspawn-qemu-rename
...
vmspawn: drop "qemu" word from most switches
2024-02-22 11:04:45 +00:00
Zbigniew Jędrzejewski-Szmek
c27ba8fb67
Merge pull request #31178 from neighbourhoodie/add-old-website-content
...
Migrate the content of the old website
2024-02-22 12:04:29 +01:00
Zbigniew Jędrzejewski-Szmek
37eba4b302
test-nss-hosts: treat negative host lookup as slow
...
The negative lookup can be quite slow. On my local network, skipping
this test saves about half of the runtime of test-nss-hosts.
2024-02-22 11:37:17 +01:00
Zbigniew Jędrzejewski-Szmek
a181901ab2
test-ukify: skip signing in tests when slow tests are disabled
...
I have a large initrd (built with mkosi-initrd) and the test-ukify takes 30 s.
Let's use the usual approach of skipping the slowests tests.
(pytest has marks, and it would be nicer to mark tests with pytest.mark.slow,
and then use "-m 'not slow'" in the meson test invocation. But markers must be
pre-registered, otherwise pytest emits a warning. There are a few ways to
register markers, but they all require "project configuration", but because of
how we invoke pytest, this is hard to do. So let's just use an environment
variable.)
2024-02-22 11:37:17 +01:00
hulkoba
5e8ff010a1
docs: use collections to structure the data
2024-02-22 10:11:54 +01:00
hulkoba
4049d92fda
docs: add distributions and mastodon
2024-02-22 10:11:10 +01:00
hulkoba
6b2a277624
docs: add Manuals and Documentation for Users and Administrators
2024-02-22 10:11:10 +01:00
Mariano Giménez
163e2c8346
docs: add documentation for developers
2024-02-22 10:11:09 +01:00
Mariano Giménez
313f2ebc88
add related packages links
2024-02-22 10:11:09 +01:00
Mariano Giménez
b6d06b85f0
add The systemd for Developers Series pages
2024-02-22 10:11:08 +01:00
Mariano Giménez
1c4f6bb60a
add administrators blog series links to extra_pages.json
2024-02-22 10:11:08 +01:00
Mariano Giménez
65c63edcd9
add videos and presentations
2024-02-22 10:11:07 +01:00
Mariano Giménez
7d4afa76e3
add publications to extra_pages.json
2024-02-22 10:11:05 +01:00
Yu Watanabe
189eeddaec
sd-ndisc: actually refuse RA message from null address
2024-02-22 14:35:24 +09:00
Yu Watanabe
e7cb80474d
sd-ndisc: disable timer event source only when a valid RA received
...
Fixes #31439 .
2024-02-22 14:35:24 +09:00
Yu Watanabe
be66a80bc2
Merge pull request #31409 from ssahani/macvlan
...
netdev: macvlan - Allow to set the broadcast queueing threshold
2024-02-22 12:40:54 +09:00
Susant Sahani
2b98febe9d
test-network: add test for macvlan BroadcastQueueMulticastLength= and BroadcastQueueThreashold=
2024-02-22 09:46:55 +09:00
Yu Watanabe
0183d48ddb
test-network: use assertIn()
2024-02-22 09:46:45 +09:00
Susant Sahani
9adafeddac
netdev/macvlan: allow to set the broadcast queueing threshold
...
Allow to set the broadcast queueing threshold
on macvlan devices. This controls which multicast packets will be
processed in a workqueue instead of inline.
2024-02-22 09:36:19 +09:00
Yu Watanabe
9a7c555c68
Merge pull request #31429 from poettering/pcrlock-hash-order-fix
...
pcrlock: handle cases where order of hash algs in firmware binary logs differs in header and records
2024-02-22 08:29:56 +09:00
Yu Watanabe
0584e2aa7c
Merge pull request #31425 from YHNdnzj/fd-util-followup
...
fd-util: introduce fd_verify_safe_flags
2024-02-22 08:29:11 +09:00
Yu Watanabe
46be112082
Merge pull request #31403 from yuwata/pam-sd-bus-session
...
pam_systemd_home: close sd-bus connection on failure
2024-02-22 08:28:38 +09:00
Yu Watanabe
c6939752c1
basic/linux: update kernel headers from v6.8-rc5
2024-02-22 06:22:22 +08:00
Mike Yuan
f5cbe31374
journal-native: ignore server_process_native_file error on caller's side
...
Also, stop saying ", ignoring". It is unclear whether the message
or the error is ignored. "ignoring message" or "refusing" is OK.
2024-02-22 06:17:54 +08:00
Mike Yuan
14f38d179d
fd-util: introduce fd_verify_safe_flags
...
As per https://github.com/systemd/systemd/pull/31419#discussion_r1496921074
2024-02-22 06:17:54 +08:00
medusalix
ca4b6b269d
hwdb: Add headset form-factor override for Xbox Wireless Dongle
...
The Xbox Wireless Headset does not get assigned a sound form factor
when connected via the dongle using the `xone` driver.
Add USB IDs for the old & new dongle and built-in variants.
2024-02-22 06:36:38 +09:00
Yu Watanabe
6e2343c714
network/json: use DUID obtained by sd_dhcp6_client_get_duid()
...
Follow-up for e5aa8c193d .
2024-02-22 05:58:59 +09:00
Lennart Poettering
04a3af3c6d
tree-wide: be more careful when passing literal integers to "t" bus message fields
...
Since we use varargs for sd_message_append() we need to make sure the
parameters we pass are actually 64bit wide, if "t" is used. Hence cast
appropriately if necessary.
I went through the whole tree, and in most cases we got it right, but
there are some cases we missed so far.
Inspired by: #31420
2024-02-22 04:31:50 +09:00
Frantisek Sumsal
ff80bd2d6d
test: temporarily enable session lingering for the test user #2
...
Similarly to bbac11c993 we need to enable session lingering for the test
user, so the long-running test units are not killed prematurely:
[ 18.822261] testsuite-55.sh[403]: + systemctl start --machine testuser@.host --user testsuite-55-testchill.service
[ 18.852775] systemd[1]: Started run-u17.service.
[ 19.256431] (o-bridge)[526]: pam_unix(login:session): session opened for user testuser(uid=4711) by testuser(uid=0)
[ 19.288346] systemd[1]: Started session-2.scope.
[ 20.165874] systemd[392]: Created slice session.slice.
[ 20.166459] systemd[392]: Starting dbus-broker.service...
[ 20.220189] dbus-broker-launch[529]: Policy to allow eavesdropping in /usr/share/dbus-1/session.conf +31: Eavesdropping is deprecated and ignored
[ 20.220189] dbus-broker-launch[529]: Policy to allow eavesdropping in /usr/share/dbus-1/session.conf +33: Eavesdropping is deprecated and ignored
[ 20.220494] systemd[392]: Started dbus-broker.service.
[ 20.224276] dbus-broker-launch[529]: Ready
[ 20.231702] systemd[392]: Created slice testsuite.slice.
[ 20.231976] systemd[392]: Created slice testsuite-55.slice.
[ 20.232259] systemd[392]: Created slice testsuite-55-workload.slice.
[ 31.065294] testsuite-55.sh[403]: + systemctl start --machine testuser@.host --user testsuite-55-testbloat.service
[ 31.065641] (sd-pam)[528]: pam_unix(login:session): session closed for user testuser
[ 31.066103] (sd-pam)[528]: pam_systemd(login:session): Failed to release session: Access denied
[ 31.066152] systemd[392]: Started testsuite-55-testchill.service.
[ 31.068062] systemd[1]: run-u17.service: Deactivated successfully.
[ 31.068217] dbus-broker[389]: A security policy denied :1.20 to send method call /org/freedesktop/login1:org.freedesktop.login1.Manager.ReleaseSession to org.freedesktop.login1.
[ 31.075901] (o-bridge)[537]: pam_unix(login:session): session opened for user testuser(uid=4711) by testuser(uid=0)
[ 31.091098] systemd[1]: Stopping session-2.scope...
[ 31.092158] systemd[1]: Started run-u21.service.
[ 31.092993] systemd[1]: session-2.scope: Deactivated successfully.
[ 31.093287] systemd[1]: Stopped session-2.scope.
[ 31.095798] systemd[1]: Stopping user@4711.service ...
[ 31.103541] systemd[392]: Activating special unit exit.target...
[ 31.108359] systemd[392]: Stopped target default.target.
[ 31.109798] systemd[392]: Stopped target timers.target.
[ 31.110790] systemd[392]: Stopping testsuite-55-testchill.service...
[ 31.112154] systemd[392]: Stopped testsuite-55-testchill.service.
[ 31.114033] systemd[392]: Removed slice testsuite-55-workload.slice.
[ 31.114971] systemd[392]: Removed slice testsuite-55.slice.
[ 31.115858] systemd[392]: Removed slice testsuite.slice.
...
[ 31.475949] testsuite-55.sh[403]: + systemctl --machine testuser@.host --user status testsuite-55-testchill.service
[ 31.490464] systemd[1]: session-3.scope: Deactivated successfully.
[ 31.565929] systemd[1]: Started run-u33.service.
[ 31.592437] (o-bridge)[583]: pam_unix(login:session): session opened for user testuser(uid=4711) by testuser(uid=0)
[ 31.610210] systemd[1]: Started session-5.scope.
[ 31.616960] testsuite-55.sh[578]: ○ testsuite-55-testchill.service - No memory pressure
[ 31.616960] testsuite-55.sh[578]: Loaded: loaded (/usr/lib/systemd/tests/testdata/units/testsuite-55-testchill.service; static)
[ 31.616960] testsuite-55.sh[578]: Active: inactive (dead)
[ 31.617438] (sd-pam)[586]: pam_unix(login:session): session closed for user testuser
Addresses https://github.com/systemd/systemd/pull/31426#issuecomment-1956436844 .
2024-02-21 18:24:25 +00:00
Lennart Poettering
2c0061c784
vmspawn: rename "qemu" specific switches to not carry the "qemu" prefix
...
This renames a few of the switches vmspawn takes, such as --qemu-mem=
and --qemu-smp= to names without the "qemu" moniker and uses less
cryptic names (i.e. --ram= and --cpus=).
I think it's a bit unsystematic that so far we use the "qemu" prefix for
some options but not for others. At least I could not figure out a
system when we use it and when we don't. Hence let's clean it up and
just use simpler names without suffix.
After all we might want to plug other hypervisors behind vmspawn one
day, hence I think there's value in sticking to generic names for these
switches that allow us to switch out backends easily. In particular for
--ram= and --cpus= which are probably the most fundamental of VM settings
there are.
The old switches are support for compat, but not advertised in man page
or --help text anymore.
I left "--qemu-gui" under its current name, since it fundamentally is a
a qemu concept, exposing a qemu specific graphical UI.
2024-02-21 16:35:53 +01:00
Lennart Poettering
cf9de8ef21
vspawn: prefer "VSOCK" spelling over "vsock" and "VSock"
...
The vsock(7) man page appears to prefer "VSOCK" spelling for the
concept, let's also use it as much as we can.
2024-02-21 16:18:24 +01:00
Lennart Poettering
05b924048d
update TODO
2024-02-21 15:46:20 +01:00
Lennart Poettering
0d10b4f573
bsod: don't fail in an error path
...
If we fail in an error path, don't override the error we are processing,
just print a warning and continue.
2024-02-21 15:11:27 +01:00
Lennart Poettering
beb15ff639
bsod: remove one redundant variable
2024-02-21 15:11:27 +01:00
Lennart Poettering
5e0c2c3e71
bsod: normalize VT indexes
...
The 1-based VT indexes are what people usually expect, since the primary
name of VTs uses them (i.e. /dev/tty1, /dev/tty2, …). Hence, let's
always use 1-based VT indexes, and early on convert 0-based VT indexes
to minimize confusion.
2024-02-21 15:11:27 +01:00
Lennart Poettering
8f894121d1
bsod: correct log level on some messages
2024-02-21 15:11:27 +01:00
Lennart Poettering
0a1126c7c2
bsod: make sure "Press Any Key" has a blue background too
2024-02-21 15:11:27 +01:00
Lennart Poettering
8b23b9e5e5
bsod: remove some duplicate logging
...
display_emergency_message_fullscreen() already logs about all erros,
hence don't log again.
2024-02-21 15:11:27 +01:00