Lennart Poettering
2f92e5c327
update TODO
2024-06-18 09:28:03 +02:00
Derek J. Clark
25dcd9a348
hwdb: add scancodes for AYANEO devices ( #33378 )
...
AYANEO has multiple models that all use the same AT Translated Set
2 Keyboard device with 3-4 buttons available. Starting with the
AYANEO 2 there was a change to the IMU programming they were using
that caused the scancodes to no longer present the correct values
in Linux. This change adds a blanket scancode mapping to present
the correct keycodes as designed by the OEM.
In some cases a kernel bug will cause the AT Translated Set 2
Keyboard to present as an AT Raw Set 2 keyboard. I have also
adjusted the scancodes for this scenario as well so they are
in line with expected behavior. Currently only the Kun is still
experiencing this bug.
Example userspace tool refs:
https://github.com/ShadowBlip/InputPlumber/blob/main/rootfs/usr/lib/udev/hwdb.d/59-inputplumber.hwdb
https://github.com/ShadowBlip/HandyGCCS/blob/main/usr/lib/udev/hwdb.d/59-handygccs-ayaneo.hwdb
https://github.com/hhd-dev/hhd/tree/master/usr/lib/udev/hwdb.d
2024-06-18 09:19:30 +09:00
Yu Watanabe
2dda7bd241
varlink-idl: fix typo
...
Follow-ups for fbb69c0306
.
2024-06-18 09:12:29 +09:00
Yu Watanabe
c33a65e1ba
catalog: fix typo
...
Follow-up for d6518003f8
.
2024-06-18 09:09:30 +09:00
Luca Boccassi
5d42acada4
Merge pull request #33376 from yuwata/strv_sort_uniq
...
strv: introduce strv_sort_uniq()
2024-06-18 00:22:19 +01:00
Luca Boccassi
3f4f065bab
Merge pull request #33359 from bluca/test_apparmor_unpriv
...
mkosi: enable unprivileged user ns for integration tests
2024-06-18 00:13:15 +01:00
Luca Boccassi
fcbe3e3b2e
Merge pull request #32724 from bluca/dynamic_user_no_private_tmp
...
core: do not imply PrivateTmp with DynamicUser, create a private tmpfs instead
2024-06-18 00:11:11 +01:00
Luca Boccassi
05c0671ce8
Merge pull request #33377 from yuwata/strbuf-cleanups
...
strbuf: several cleanups
2024-06-17 20:08:22 +01:00
Luca Boccassi
0cf5ebeffc
Merge pull request #33375 from yuwata/trivial-follow-ups
...
Trivial follow ups for recent PRs
2024-06-17 20:06:46 +01:00
Luca Boccassi
42a91b3131
Merge pull request #33374 from YHNdnzj/coverity-fixes-1
...
core: a few more fixes for serialization
2024-06-17 20:05:58 +01:00
Luca Boccassi
656b0f5031
Merge pull request #32559 from poettering/varlink-comments
...
varlink: add nice commenting to our varlink IDL data
2024-06-17 18:53:11 +01:00
Mike Yuan
f3d7ceb5c5
Merge pull request #32872 from YHNdnzj/pidref-inode
...
pidref: record pidfd inode number in PidRef struct
2024-06-17 18:47:44 +02:00
Luca Boccassi
3001339dc5
mkosi: bump to latest
2024-06-17 17:40:48 +01:00
Luca Boccassi
bdd0b45bfd
CI: disable secure boot in mkosi GHA runs
...
Booting a guest with secure boot is broken in Azure due to a hypervisor
bug. Disable it for now. Given there's no option, need to edit
the configuration on the fly.
2024-06-17 17:40:48 +01:00
Luca Boccassi
ac6f17987d
portable: drop explicit PrivateTmp=yes from profiles
...
It is already implied by DynamicUser=yes if not set, but dropping it
allows users to instead define TemporaryFileSystem=/tmp/ /var/tmp/
in their portable services, which has fewer side effects.
2024-06-17 17:05:55 +01:00
Luca Boccassi
0e551b04ef
core: do not imply PrivateTmp with DynamicUser, create a private tmpfs instead
...
DynamicUser= enables PrivateTmp= implicitly to avoid files owned by reusable uids
leaking into the host. Change it to instead create a fully private tmpfs instance
instead, which also ensures the same result, since it has less impactful semantics
with respect to PrivateTmp=yes, which links the mount namespace to the host's /tmp
instead. If a user specifies PrivateTmp manually, let the existing behaviour
unchanged to ensure backward compatibility is not broken.
2024-06-17 17:05:55 +01:00
Yu Watanabe
e367b42664
tree-wide: replace strv_sort() + strv_uniq() -> strv_sort_uniq()
2024-06-18 00:37:50 +09:00
Yu Watanabe
6548aef1cd
strbuf: use _cleanup_ attribute at one more place
2024-06-18 00:26:15 +09:00
Yu Watanabe
c616e30e9c
strbuf: several cleanups
...
- use FOREACH_ARRAY(),
- add one missing assertion,
- reduce indentation.
2024-06-18 00:26:15 +09:00
Yu Watanabe
7b12b86450
strbuf: use CMP() macro
...
strbuf_child_entry.c is uint8_t, so using CMP() is safer.
This also adds missing assertions.
2024-06-18 00:26:15 +09:00
Yu Watanabe
3dc546ad75
strv: introduce strv_sort_uniq()
...
We often call strv_sort() and strv_uniq(). If a strv is already sorted.
uniquifying can be faster.
Prompted by https://github.com/systemd/systemd/pull/33012#discussion_r1636633627 .
2024-06-18 00:22:33 +09:00
Yu Watanabe
4f6d8ab076
test-network: mention that the captive portal option is supported since v2.20
...
The current latest release is v2.19, hence the test is typically skipped now.
2024-06-18 00:20:27 +09:00
Yu Watanabe
87e30d0e56
json: const char *func() -> const char* func()
...
Follow-up for 309a747fa6
.
2024-06-18 00:19:59 +09:00
Yu Watanabe
abeb98d185
core/mount: suffix function name with paren
...
Follow-up for 88188e1ff1
.
2024-06-18 00:19:59 +09:00
Lennart Poettering
1b3449d8c1
logind: tweaklets
2024-06-17 16:12:55 +01:00
Lennart Poettering
1ad4e37da1
pretty-print: take console glyph width into account when drawing progress bar
...
So far this used string length, not character width. Fix that.
2024-06-17 16:12:11 +01:00
Mike Yuan
9f5d8c3da4
core/service: fix accept-socket deserialization
...
Follow-up for 45b1017488
2024-06-17 17:02:51 +02:00
Mike Yuan
42fdb14286
core: cast ignored retval of deserialize_* to void
...
Fixes CID#1547098
2024-06-17 16:56:19 +02:00
Mike Yuan
42e9967baf
core/socket: use FOREACH_ARRAY at one more place
2024-06-17 16:56:19 +02:00
Luca Boccassi
80468db8fa
test: use 'auto' instead of 'uefi' for automated fallback
...
mkosi will prefer UEFI if the architecture supports it, but fallback
to 'linux' if it doesn't.
2024-06-17 15:52:50 +01:00
Luca Boccassi
464d182b3e
test: support TEST_NO_QEMU in mkosi integration wrapper
...
Same as the old integration test suite, allow skipping tests that
require qemu.
ppc64el's vsock support doesn't appear to work, so we'll skip it,
as it is already done in the legacy framework.
2024-06-17 15:52:50 +01:00
Luca Boccassi
7d2701e7d1
test: support TEST_NO_KVM
...
The shell integration suite allows to manually deselect KVM, so
suppor the same env var for the same purpose in python.
2024-06-17 15:52:50 +01:00
Luca Boccassi
626518ecd5
test: drop obsolete comment
...
We want to keep various logic here instead of mkosi, so drop the
temporary comment
2024-06-17 15:52:50 +01:00
reDBo0n
64c34eb8d3
hwdb: add support for AIPTEK Media Tablet Ultimate ( #33371 )
...
The "AIPTEK Media Tablet Ultimate", detected as "Waltop International Corp. Batteryless Tablet",
is missing the resolution of the x-/y-axes.
Adding a new rule to 60-evdev.hwdb with the same values as another entry
"WALTOP International Corp. Batteryless Tablet" just with another matching string makes the
device usable.
Fixes #33362 .
2024-06-17 23:05:23 +09:00
Luca Boccassi
f44fc531c9
test: drop unneeded firmware: uefi setting
...
These tests no longer need this, as they are running in nspawn, drop it
2024-06-17 11:34:52 +01:00
Luca Boccassi
e1daedb4be
test: check the skip condition before installing additional files
2024-06-17 11:34:52 +01:00
Luca Boccassi
47fe3f29b4
mkosi: install EFI packages only on EFI architectures
...
sbsigntool, systemd-boot and systemd-boot-efi do not exist on other
architectures
2024-06-17 11:34:52 +01:00
Luca Boccassi
c01cb8cbff
mkosi: use ports.ubuntu.com for non-x86 backports
...
Follow-up for 46368556af
2024-06-17 11:12:36 +01:00
Luca Boccassi
4cfcde024f
mkosi: enable unprivileged user ns for integration tests
...
Ubuntu disables them by default in Noble, ship a sysctl to turn them back on
so that tests can use them
2024-06-17 11:12:36 +01:00
Luca Boccassi
9981bc210a
Merge pull request #33355 from YHNdnzj/shutdown-cad
...
shutdown: re-enable CAD handling in kernel at start, several other cleanups
2024-06-17 09:19:08 +01:00
Lennart Poettering
783236abd7
update TODO
2024-06-17 09:20:21 +02:00
Lennart Poettering
b4c91fbc07
creds: add comments to credential encryption/decryption method calls
2024-06-17 09:20:21 +02:00
Lennart Poettering
ce2d2260c9
varlink: parse comments too
2024-06-17 09:20:21 +02:00
Lennart Poettering
fbb69c0306
varlink: add concept for embedding comments into IDL structures
2024-06-17 09:20:21 +02:00
Lennart Poettering
aca093018c
strv: add new helper strv_rebreak_lines() with a simple line breaking algorithm
2024-06-17 09:20:21 +02:00
Lennart Poettering
9632f8b465
utf8: export utf8_char_console_width()
2024-06-17 09:20:21 +02:00
Luca Boccassi
f943fd9143
Merge pull request #33363 from YHNdnzj/service-serialization-cleanup
...
core/service: several cleanups for serialization logic
2024-06-16 23:01:35 +01:00
Luca Boccassi
65da79953b
Merge pull request #33364 from YHNdnzj/utf8-modernization
...
basic/utf8: some modernizations
2024-06-16 22:33:08 +01:00
Mike Yuan
e2b812c804
string-util: introduce string_is_safe_ascii helper
2024-06-16 19:07:35 +02:00
Mike Yuan
4d06bf5922
basic/utf8: modernize ascii_is_valid_n, make ascii_is_valid static inline
2024-06-16 19:07:35 +02:00