summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* units: uppercase the descriptionZbigniew Jędrzejewski-Szmek2020-06-021-1/+1
| | | | https://github.com/systemd/systemd/pull/15982#pullrequestreview-422536495
* man,mkosi: bump Fedora versionZbigniew Jędrzejewski-Szmek2020-06-022-3/+3
|
* test: temporarily block test 48 on Ubuntu's autopkgtestLuca Boccassi2020-06-021-0/+0
| | | | | | This test runs fine locally (both on Qemu and nspawn) but sporadically fails on autopkgtest for some reason. Disable it while the issue is investigated to reduce noise.
* Merge pull request #16030 from yuwata/network-read-mtime-of-dropin-configs-15521Zbigniew Jędrzejewski-Szmek2020-06-015-10/+33
|\ | | | | network: also read mtime of drop-in configs
| * network: also read mtime of drop-in configsYu Watanabe2020-06-015-7/+31
| | | | | | | | Fixes #15521.
| * network: do not propagte error on stat()Yu Watanabe2020-06-011-3/+2
| |
* | Merge pull request #15991 from keszybz/uids-gids-only-decimalYu Watanabe2020-06-013-21/+31
|\ \ | |/ |/| Only use base 10 for numeric uids/gids
| * basic/user-util: always use base 10 for user/group numbersZbigniew Jędrzejewski-Szmek2020-05-312-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We would parse numbers with base prefixes as user identifiers. For example, "0x2b3bfa0" would be interpreted as UID==45334432 and "01750" would be interpreted as UID==1000. This parsing was used also in cases where either a user/group name or number may be specified. This means that names like 0x2b3bfa0 would be ambiguous: they are a valid user name according to our documented relaxed rules, but they would also be parsed as numeric uids. This behaviour is definitely not expected by users, since tools generally only accept decimal numbers (e.g. id, getent passwd), while other tools only accept user names and thus will interpret such strings as user names without even attempting to convert them to numbers (su, ssh). So let's follow suit and only accept numbers in decimal notation. Effectively this means that we will reject such strings as a username/uid/groupname/gid where strict mode is used, and try to look up a user/group with such a name in relaxed mode. Since the function changed is fairly low-level and fairly widely used, this affects multiple tools: loginctl show-user/enable-linger/disable-linger foo', the third argument in sysusers.d, fourth and fifth arguments in tmpfiles.d, etc. Fixes #15985.
| * loginctl: define loop iterators in the loop headerZbigniew Jędrzejewski-Szmek2020-05-311-20/+20
| |
* | udev: single binary replacing udevd and udevadmNorbert Lange2020-06-015-23/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the separate binaries contain mostly the same code, this almost halves the size of the installation. before: 398K /bin/udevadm 391K /lib/systemd/systemd-udevd after: 431K /bin/udevadm 0 /lib/systemd/systemd-udevd -> ../../bin/udevadm Fixes: #14200
* | network: fix double free in macsec_receive_channel_free()Yu Watanabe2020-06-012-1/+11
| | | | | | | | | | Fixes #15941. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22547
* | Merge pull request #16029 from yuwata/network-wireguard-without-peers-15786Zbigniew Jędrzejewski-Szmek2020-06-014-3/+25
|\ \ | | | | | | network: configure wireguard without no peers
| * | test-network: add test for wireguard without peersYu Watanabe2020-06-013-2/+21
| | |
| * | network: wireguard: set ListenPort= when no peers are configuredYu Watanabe2020-06-011-1/+4
| | | | | | | | | | | | Closes #15786.
* | | Merge pull request #15990 from jwrdegoede/hwdb-accel-quirksZbigniew Jędrzejewski-Szmek2020-06-011-0/+11
|\ \ \ | | | | | | | | Hwdb accel quirks
| * | | hwdb: Add accel orientation quirk for Trekstor Surftab Twin 10.1 ST10432-8Hans de Goede2020-05-311-0/+3
| | | | | | | | | | | | | | | | | | | | The Trekstor Surftab Twin 10.1 ST10432-8 accelerometer has its x-axis inverted, add a quirk for this.
| * | | hwdb: Add accel orientation quirk for Toshiba Encore WT10A tabletHans de Goede2020-05-311-0/+8
| | |/ | |/| | | | | | | | | | Add a quirk to correct the accelerometer orientation on Toshiba Encore WT10A tablets.
* | | Merge pull request #15982 from keszybz/shell-completion-and-helpYu Watanabe2020-06-014-5/+20
|\ \ \ | |_|/ |/| | Shell completion and udevd help update
| * | udevd: update snippet stringZbigniew Jędrzejewski-Szmek2020-05-302-2/+2
| | | | | | | | | | | | | | | Repeating the unit name in the description is not useful, and "manages devices" is too cryptic.
| * | shell-completions: update bootctlZbigniew Jędrzejewski-Szmek2020-05-302-3/+18
| | | | | | | | | | | | | | | Entries in the completion lists are reordered to follow --help output: this makes it much easier to see what is missing.
* | | Merge pull request #15884 from ssahani/dhcpv6-vendorYu Watanabe2020-06-0113-7/+136
|\ \ \ | | | | | | | | DHCPv6: Introduce vendor specific
| * | | network: dhcp6 - fix memory leakSusant Sahani2020-05-291-0/+1
| | | |
| * | | network: Inroduce DHCP6- send vendor optionsSusant Sahani2020-05-297-4/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | network: Inroduce DHCP6- send vendor options ``` 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OPTION_VENDOR_OPTS | option-len | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | enterprise-number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ . . . vendor-option-data . . . +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ``` ``` 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | sub-opt-code | sub-option-len | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ . . . sub-option-data . . . +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Figure 31: Vendor-specific Options Format sub-opt-code The code for the sub-option. A 2-octet field. sub-option-len An unsigned integer giving the length of the sub-option-data field in this sub-option in octets. A 2-octet field. sub-option-data The data area for the sub-option. The length, in octets, is specified by sub-option-len. ```
| * | | sd-dhcp6: Introduce vendor specific informationSusant Sahani2020-05-296-3/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC: 8415 21.17. Vendor-specific Information Option This option is used by clients and servers to exchange vendor- specific information. The format of the Vendor-specific Information option is: 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OPTION_VENDOR_OPTS | option-len | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | enterprise-number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ . . . vendor-option-data . . . +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Figure 30: Vendor-specific Information Option Format option-code OPTION_VENDOR_OPTS (17). option-len 4 + length of vendor-option-data field. enterprise-number The vendor's registered Enterprise Number as maintained by IANA [IANA-PEN]. A 4-octet field containing an unsigned integer. vendor-option-data Vendor options, interpreted by vendor-specific code on the clients and servers. A variable-length field (4 octets less than the value in the option-len field). The definition of the information carried in this option is vendor specific. The vendor is indicated in the enterprise-number field. Use of vendor-specific information allows enhanced operation, utilizing additional features in a vendor's DHCP implementation. A DHCP client that does not receive requested vendor-specific information will still configure the node's IPv6 stack to be functional. The vendor-option-data field MUST be encoded as a sequence of code/length/value fields of format identical to the DHCP options (see Section 21.1). The sub-option codes are defined by the vendor identified in the enterprise-number field and are not managed by IANA. Each of the sub-options is formatted as follows: 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | sub-opt-code | sub-option-len | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ . . . sub-option-data . . . +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Figure 31: Vendor-specific Options Format sub-opt-code The code for the sub-option. A 2-octet field. sub-option-len An unsigned integer giving the length of the sub-option-data field in this sub-option in octets. A 2-octet field. sub-option-data The data area for the sub-option. The length, in octets, is specified by sub-option-len. Multiple instances of the Vendor-specific Information option may appear in a DHCP message. Each instance of the option is interpreted according to the option codes defined by the vendor identified by the Enterprise Number in that option. Servers and clients MUST NOT send more than one instance of the Vendor-specific Information option with the same Enterprise Number. Each instance of the Vendor-specific Information option MAY contain multiple sub-options. A client that is interested in receiving a Vendor-specific Information option: - MUST specify the Vendor-specific Information option in an Option Request option. - MAY specify an associated Vendor Class option (see Section 21.16). - MAY specify the Vendor-specific Information option with appropriate data. Servers only return the Vendor-specific Information options if specified in Option Request options from clients and: - MAY use the Enterprise Numbers in the associated Vendor Class options to restrict the set of Enterprise Numbers in the Vendor-specific Information options returned. - MAY return all configured Vendor-specific Information options. - MAY use other information in the packet or in its configuration to determine which set of Enterprise Numbers in the Vendor-specific Information options to return.
* | | | Merge pull request #15993 from mrc0mmand/news-updateDaan De Meyer2020-05-311-10/+10
|\ \ \ \ | | | | | | | | | | NEWS: fix several typos
| * | | | NEWS: fix several typosFrantisek Sumsal2020-05-311-10/+10
| | |_|/ | |/| |
* | | | tests: add a testcase triggering https://github.com/systemd/systemd/issues/15968Evgeny Vereshchagin2020-05-311-0/+14
|/ / / | | | | | | | | | It's just a follow-up to https://github.com/systemd/systemd/pull/15976
* | | core: reload cache if it's dirty when starting a UNIT_NOT_FOUND unitLuca Boccassi2020-05-307-10/+81
| | | | | | | | | | | | | | | | | | | | | | | | The time-based cache allows starting a new unit without an expensive daemon-reload, unless there was already a reference to it because of a dependency or ordering from another unit. If the cache is out of date, check again if we can load the fragment.
* | | Merge pull request #15935 from poettering/cache-more-efi-varsZbigniew Jędrzejewski-Szmek2020-05-3010-64/+211
|\ \ \ | | |/ | |/| logind + efi-loader: cache more efi vars
| * | efi: add more logging for all EFI variable readsLennart Poettering2020-05-291-7/+10
| | |
| * | bootctl: add simple, low-level reboot-to-firmware verb for controlling the flagLennart Poettering2020-05-292-3/+51
| | |
| * | bootctl: show reboot-to-firmware info, tooLennart Poettering2020-05-291-0/+12
| | |
| * | efi: cache OsIndications tooLennart Poettering2020-05-291-8/+37
| | |
| * | efi: explicitly update mtime of EFI variables when changing themLennart Poettering2020-05-291-0/+8
| | |
| * | efi: as extra paranoia NUL terminate UTF-16 strings with three NUL bytesLennart Poettering2020-05-291-3/+5
| | | | | | | | | | | | | | | | | | | | | This is a safey net anyway, let's make it fully safe: if the data ends on an uneven byte, then we need to complete the UTF-16 codepoint first, before adding the final NUL byte pair. Hence let's suffix with three NULs, instead of just two.
| * | efi: cache OsIndicationsSupportedLennart Poettering2020-05-291-5/+16
| | | | | | | | | | | | | | | | | | As suggested by: https://github.com/systemd/systemd/issues/14828#issuecomment-634202054
| * | efi: avoid weirdly double }} by indenting differentlyLennart Poettering2020-05-291-13/+14
| | |
| * | efi: cache LoaderEntries EFI variableLennart Poettering2020-05-297-25/+58
| | | | | | | | | | | | | | | | | | Based-on: https://github.com/systemd/systemd/issues/14828#issuecomment-634202054
* | | po: update Brazilian Portuguese translationRafael Fontenelle2020-05-301-42/+138
| | |
* | | Merge pull request #15915 from poettering/journal-external-linkZbigniew Jędrzejewski-Szmek2020-05-308-19/+115
|\ \ \ | | | | | | | | journal: show external links in log output
| * | | man: briefly document the DOCUMENTATION= structure log fieldLennart Poettering2020-05-291-0/+10
| | | |
| * | | logs: strndupa() cannot failLennart Poettering2020-05-291-3/+0
| | | |
| * | | journal: show documentation hyperlink if known in log outputLennart Poettering2020-05-291-10/+93
| | | |
| * | | pretty-print: export urlify_enabled()Lennart Poettering2020-05-292-1/+3
| | | |
| * | | locale-util: add glyph for external linksLennart Poettering2020-05-293-0/+6
| | | |
| * | | catalog: normalize how we link to documentationLennart Poettering2020-05-291-5/+3
| | | |
* | | | update NEWSDaan De Meyer2020-05-301-0/+4
| | | |
* | | | sd-dhcp: clean-up of DHCP lease server codeLennart Poettering2020-05-3015-299/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an attempt to clean-up the DHCP lease server type code a bit. We now strictly use the same enum everywhere, and store server info in an array. Moreover, we use the same nomenclature everywhere. This only makes the changes in the sd-dhcp code. The networkd code is untouched so far (but should be fixed up like this too. But it's more complicated since this would then touch actual settings in .network files). Note that this also changes some field names in serialized lease files. But given that these field names have not been part of a released version of systemd yet, such a change should be ok. This is pure renaming/refactoring, shouldn't actually change any behaviour.
* | | | fix_test_function_timeoutJay Burger2020-05-301-2/+2
| | | |
* | | | hwdb: Add accel orientation quirk for Chuwi Hi10 XChristian Oder2020-05-301-0/+4
| | | | | | | | | | | | | | | | | | | | Add a quirk to fix the accelerometer orientation on the Chuwi Hi10 X so that the display is not rotated 90 degree counter clockwise anymore.