summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* hwdb: Allow end-users root-less access to USB analyzerswip/hadess/usb-analysers-uaccessBastien Nocera2021-09-024-0/+38
| | | | | | | | | | Procotol analyzers are external devices used to capture traffic over a wire so that it could be analysed. End-users at the console should be able to access those devices without requiring root access. This change obsoletes the need to install Total Phase's "Linux drivers", which are really just udev rules and hotplug usermap files to do that: https://www.totalphase.com/products/usb-drivers-linux/
* udev: Import hwdb matches for USB devicesBastien Nocera2021-09-011-0/+1
| | | | | | Import hwdb matches for USB devices (not interfaces) which don't usually have a modalias so that it's possible to, for example, make them available for unprivileged users.
* core: fix typo: they -> theYu Watanabe2021-08-301-1/+1
|
* hwdb: remove double empty line in --help textLennart Poettering2021-08-301-1/+1
|
* Add matrix for the Chuwi SurBook Mini (CWI540)jlempen2021-08-301-0/+4
|
* hwdb: add a generic rule for trackpoints (#20543)José Expósito2021-08-301-0/+7
| | | | | | | Check for "TrackPoint" in the device name and add the ID_INPUT_POINTINGSTICK property. In reference to libinput issue: https://gitlab.freedesktop.org/libinput/libinput/-/issues/651
* Merge pull request #20057 from yuwata/sd-netlink-genl-cleanupsYu Watanabe2021-08-2932-2653/+2801
|\ | | | | sd-netlink: cleanups for generic netlink
| * sd-netlink: make type_system_get_*() and friends return value directlyYu Watanabe2021-08-297-145/+121
| |
| * sd-netlink: introduce sd_genl_add_match()Yu Watanabe2021-08-295-3/+180
| | | | | | | | By using this, we can listen multicast messages for generic netlink.
| * sd-netlink: split sd_netlink_add_match() into two partsYu Watanabe2021-08-293-71/+87
| | | | | | | | | | This also makes netlink_slot_disconnect() correctly unref multicast groups.
| * sd-netlink: introduce sd_genl_message_get_command()Yu Watanabe2021-08-293-0/+42
| |
| * sd-netlink: determine header size of genl message by using CTRL_ATTR_HDRSIZE ↵Yu Watanabe2021-08-291-2/+8
| | | | | | | | | | | | | | attribute Fortunately, all genl families we currently use do not require additional header size.
| * sd-netlink: read protocol version of each genl familyYu Watanabe2021-08-291-1/+7
| |
| * sd-netlink: drop sd_genl_family_t and introduce GenericNetlinkFamilyYu Watanabe2021-08-2918-199/+363
| | | | | | | | | | | | | | | | | | | | | | Kernel manages each genl family by its name, e.g. "nlctrl" or WG_GENL_NAME, and its ID (used for nlmsg_type) is determined dynamically when the corresponding module is loaded. This commit makes sd-netlink follow the same way; now, sd_genl_family_t is dropped, and sd_genl_message_new() takes a genl family name. Each genl family is resolved when it is used first time, and its information is stored in GenericNetlinkFamily.
| * sd-netlink: split message_new() into two parts and introduces message_new_full()Yu Watanabe2021-08-292-18/+40
| |
| * sd-netlink: introduce several macros to define type systemYu Watanabe2021-08-295-455/+188
| |
| * sd-netlink: drop redundant string table lookup functions to handle type ↵Yu Watanabe2021-08-294-298/+202
| | | | | | | | system union
| * sd-netlink: split type system for nfnlYu Watanabe2021-08-292-47/+37
| | | | | | | | | | | | | | This makes the root type system for nfnl indexed by subsystem, and itroduces a next level type system for each subsystem. The second level type systems are indexed by message types correspond to each subsystem.
| * sd-netlink: drop 'flags' argument from sd_nfnl_nft_message_new_table()Yu Watanabe2021-08-293-5/+4
| |
| * sd-netlink: wrap long function declarationsYu Watanabe2021-08-291-23/+67
| |
| * sd-netlink: add several missing attributesYu Watanabe2021-08-291-0/+19
| |
| * basic: copy genetlink.h to repositoryYu Watanabe2021-08-292-0/+103
| |
| * sd-netlink: introduce basic_type_systemYu Watanabe2021-08-298-21/+22
| | | | | | | | Preparation for later commits.
| * sd-netlink: unify two spurious type system root for genlYu Watanabe2021-08-293-35/+11
| |
| * sd-netlink: drop genl type system indexed by commandYu Watanabe2021-08-292-104/+11
| | | | | | | | | | | | | | | | | | All type systems of currently supported genl families do not depend on commands. Hence, at least tentatively, let's drop the tables. Note that type system for genl ethtool depends on commands. Let's reintroduce a mechanism to support the deps when we support ethtool on netlink.
| * sd-netlink: rename several type systems for generic netlinkYu Watanabe2021-08-293-103/+84
| |
| * sd-netlink: split netlink-types.[ch] into small filesYu Watanabe2021-08-2912-1813/+1847
| | | | | | | | Also renames several files.
| * sd-netlink: make several type systems staticYu Watanabe2021-08-292-5/+4
| |
| * sd-netlink: move type systemsYu Watanabe2021-08-291-350/+365
| |
| * sd-netlink: introduce two helper functions for type system unionYu Watanabe2021-08-293-18/+32
| |
| * sd-netlink: rename functionsYu Watanabe2021-08-293-16/+20
| |
| * sd-netlink: make type_get_type_system{,_union}() return value directlyYu Watanabe2021-08-295-24/+13
| |
| * sd-netlink: make message_seal() accept already sealed messagesYu Watanabe2021-08-291-3/+1
| | | | | | | | | | The function can be idempotent. It is not necessary to refuse already sealed messages.
| * sd-netlink: rename variables, arguments, and functionsYu Watanabe2021-08-2910-307/+301
| | | | | | | | Most changes are 'rtnl' -> 'nl' where the function is not only for rtnl.
| * test: add usual log messages in test-netlinkYu Watanabe2021-08-291-1/+37
| |
| * sd-netlink: drop unused typeYu Watanabe2021-08-291-1/+0
|/
* update TODOLennart Poettering2021-08-281-42/+32
|
* core: Add information on which condition failed to the job done messageDaan De Meyer2021-08-283-11/+64
| | | | | | | | When a job is skipped, it's useful to know exactly which condition failed so let's add this information to the error message. To avoid having to dynamically generate a format string, we special case the formatting of condition failed messages.
* core: Unit's condition_result field is a booleanLennart Poettering2021-08-271-1/+1
| | | | | | | | | | | | Let's only assign boolean values to a boolean variable. Unit's condition_result is not of type ConditionResult, slightly confusingly. Let's hence not assign one of ConditionResult's values to it, but simple booleans. This effectively doesn't make a difference, since CONDITION_ERROR is true when cast to bool. But it's still ugly to rely on that. And confusing.
* Fix another crash due to missing NHDRKevin Orr2021-08-271-0/+2
|
* Merge pull request #20547 from poettering/home-4kLennart Poettering2021-08-272-19/+52
|\ | | | | homed: round fs offset and sizes to multiples of 4K
| * update TODOLennart Poettering2021-08-251-2/+0
| |
| * homed: always align home file systems to 4K boundariesLennart Poettering2021-08-251-17/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's carefully align all home file systems to 4K sector boundaries. It's the safest thing to do, to ensure good perfomance on 4K sector drives, i.e. today's hardware. Yes, this means we'll waste 3.5K when resizing home dirs, but I think we can live with that. This ensures both the offsets where we start and the sizes of the file systems/partitions/disk images are multiples of 4K always, both when creating a new image and when resizing things. Note that previously we aligned everything to 1024, but weren't quite as careful.
* | Merge pull request #20553 from weblate/weblate-systemd-masterYu Watanabe2021-08-272-123/+86
|\ \ | | | | | | Translations update from Weblate
| * | po: Translated using Weblate (Finnish)Jan Kuparinen2021-08-261-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | Currently translated at 9.5% (18 of 189 strings) Co-authored-by: Jan Kuparinen <copper_fin@hotmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/fi/ Translation: systemd/main
| * | po: Translated using Weblate (Spanish)Adolfo Jayme Barrientos2021-08-261-112/+68
|/ / | | | | | | | | | | | | | | Currently translated at 89.4% (169 of 189 strings) Co-authored-by: Adolfo Jayme Barrientos <fitoschido@gmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/es/ Translation: systemd/main
* | Revert "core: Add information on which condition failed to job skipped ↵Lennart Poettering2021-08-271-34/+11
| | | | | | | | | | | | format string" This reverts commit c97bef458b6e59079c9613ec755c1c6513c1c655.
* | cryptsetup: drop an unused variableFrantisek Sumsal2021-08-261-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes compilation with new-enough libcryptsetup (2.4.0+) & clang: ``` $ CC=clang CXX=clang++ meson build --werror -Dlibcryptsetup-plugins=true ... $ ninja -C build ... ../src/cryptsetup/cryptsetup-tokens/luks2-fido2.c:23:53: error: unused variable 'v' [-Werror,-Wunused-variable] _cleanup_(json_variant_unrefp) JsonVariant *v = NULL; ... ```
* | hwdb: Add sensor rule for Hometech Wi101Wind/owZ2021-08-261-0/+10
| | | | | | | | | | | | | | This commit was done to add sensor rule for Hometech Wi101. Note that this rule might be too general and need fixes. I couldn't test this on any other device since this one is the only one I have. Co-authored-by: Simeonlps <Simeonlps@users.noreply.github.com> Signed-off-by: Wind/owZ <windowz414@gnuweeb.org>
* | hwdb: Add force-release for HP Omen 15 calculator key. (#20538)I-dont-need-name2021-08-261-0/+4
| | | | | | | | | | * Add force-release for HP Omen 15 calculator key. The key doesn't create release event so I have come up with this fix to make it work properly.