summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* basic/fs-util: change CHASE_OPEN flag into a separate output parameterchase-symlinks-reworkZbigniew Jędrzejewski-Szmek2019-10-2433-180/+197
| | | | | | | | | | | | | chase_symlinks() would return negative on error, and either a non-negative status or a non-negative fd when CHASE_OPEN was given. This made the interface quite complicated, because dependning on the flags used, we would get two different "types" of return object. Coverity was always confused by this, and flagged every use of chase_symlinks() without CHASE_OPEN as a resource leak (because it would this that an fd is returned). This patch uses a saparate output parameter, so there is no confusion. (I think it is OK to have functions which return either an error or an fd. It's only returning *either* an fd or a non-fd that is confusing.)
* test: drop duplicated 's'Yu Watanabe2019-10-241-1/+1
| | | | | | | | This fixes the following log message ``` Container TEST-07-ISSUE-1981 terminated by signal KILL. E: test timed out after 30s s ```
* Merge pull request #13828 from keszybz/networkctl-print-wlanYu Watanabe2019-10-245-131/+222
|\ | | | | networkctl support for ssid and bssid
| * networkctl: print ssid and bssidZbigniew Jędrzejewski-Szmek2019-10-241-0/+61
| |
| * networkctl: create the sd_device structure just onceZbigniew Jędrzejewski-Szmek2019-10-241-26/+33
| | | | | | | | | | This is mostly in preparation for future changes: a proper freeing function is now called on the LinkInfo items.
| * network: split out functions to get ssid and bssidZbigniew Jędrzejewski-Szmek2019-10-244-95/+112
| |
| * networkctl: split out helper functionZbigniew Jędrzejewski-Szmek2019-10-231-5/+10
| |
| * networkctl: show carrier in green for loopback ifaceZbigniew Jędrzejewski-Szmek2019-10-231-5/+6
| | | | | | | | | | We don't ever expect anything different, so let's hightlight that carrier in this case is OK.
* | udev/cdrom_id: Do not open CD-rom in exclusive mode.Michal Suchanek2019-10-241-23/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When you have a CD automunt solution that talks directly to the kernel independently of udev it races with cdrom_id for exclusive access to the device failing unpredictably. The whole is_mounted function in cdrom_id is broken: there is no saying what happens between calling is_mounted and opening the device. Hence assume that the device can be mounted asynchronously at any time, do not use exclusive access, and do away with is_mouted. Signed-off-by: Michal Suchanek <msuchanek@suse.de>
* | Merge pull request #13807 from 1848/ip6gre_key_fixYu Watanabe2019-10-232-0/+46
|\ \ | | | | | | networkd: Set key (IFLA_GRE_IKEY,IFLA_GRE_OKEY) on ip6gre interfaces.
| * | Added ip6gre example to man18482019-10-221-0/+10
| | |
| * | Set key (IFLA_GRE_IKEY,IFLA_GRE_OKEY) on ip6gre interfaces.18482019-10-201-0/+36
| | |
* | | l10n(zh_TW): update translationspan934122019-10-231-25/+152
| | |
* | | run: add -u as a synonym for --unitDavid Tardon2019-10-232-5/+5
| | | | | | | | | | | | | | | Other tools that do have --unit= option (journalctl and systemd-cgls) already do this, so let's be consistent.
* | | Merge pull request #13825 from keszybz/nspawn-console-helpYu Watanabe2019-10-232-42/+55
|\ \ \ | | | | | | | | nspawn: fix handling of --console=help
| * | | man: reorder description of nspawn --consoleZbigniew Jędrzejewski-Szmek2019-10-231-23/+25
| | | | | | | | | | | | | | | | | | | | | | | | The default value was described at the end of two long paragraphs. Make the first para self contained, and move the description of --console=pipe into the second para.
| * | | nspawn: fix handling of --console=helpZbigniew Jędrzejewski-Szmek2019-10-231-19/+30
| | | | | | | | | | | | | | | | We shouldn't continue to run the container after printing help.
* | | | Merge pull request #13142 from yuwata/network-wifi-ssid-support-nl80211Zbigniew Jędrzejewski-Szmek2019-10-2326-70/+542
|\ \ \ \ | | |_|/ | |/| | network: wifi ssid support with nl80211
| * | | network: add support matching based on BSSID=Yu Watanabe2019-10-1510-11/+33
| | | |
| * | | network: also read BSSIDYu Watanabe2019-10-154-20/+93
| | | |
| * | | network: support matching based on wifi SSIDYu Watanabe2019-10-1514-11/+129
| | | |
| * | | network: introduce link_reconfigure()Yu Watanabe2019-10-152-0/+74
| | | | | | | | | | | | | | | | Will be used in later commits.
| * | | network: split link_free() into two partsYu Watanabe2019-10-151-15/+20
| | | |
| * | | sd-netlink: add nl80211 type systemsYu Watanabe2019-10-153-0/+36
| | | |
| * | | sd-netlink: introduce sd_genl_message_get_family()Yu Watanabe2019-10-152-0/+17
| | | |
| * | | sd-netlink: support NLMSG_DONEYu Watanabe2019-10-153-1/+5
| | | |
| * | | sd-netlink: save dynamic general netlink message typeYu Watanabe2019-10-1511-35/+130
| | | |
| * | | sd-netlink: drop unnecessarily exported variablesYu Watanabe2019-10-151-2/+0
| | | |
| * | | sd-netlink: introduce sd_netlink_message_read_string_strdup()Yu Watanabe2019-10-152-0/+27
| | | |
| * | | sd-netlink: use structured initializerYu Watanabe2019-10-151-4/+6
| | | |
| * | | sd-netlink: drop unused variableYu Watanabe2019-10-151-2/+0
| | | |
| * | | sd-netlink: add missing license identifierYu Watanabe2019-10-151-0/+2
| | | |
| * | | bus-util: make map_basic handle SD_BUS_TYPE_OBJECT_PATH typeYu Watanabe2019-10-151-1/+2
| | | |
* | | | Merge pull request #13820 from keszybz/dead-code-removalYu Watanabe2019-10-233-19/+15
|\ \ \ \ | |_|/ / |/| | | Dead code removal
| * | | update-utmp: remove dead conditionalZbigniew Jędrzejewski-Szmek2019-10-211-12/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Coverity was complaining that runlevel>0 is guaranteed at this point. CID #1404262. While at it, shorten the code a bit.
| * | | tty-ask-password: fix dead code pathZbigniew Jędrzejewski-Szmek2019-10-211-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Coverity was complaining that watch==1 always at this point. CID #1405882. Use structured initialization while at it.
| * | | journal-remote: reduce scope of variableZbigniew Jędrzejewski-Szmek2019-10-211-1/+2
| | | | | | | | | | | | | | | | https://github.com/systemd/systemd/pull/11953/files#r264188513
* | | | Revert "sysusers: properly mark generated accounts as locked"Zbigniew Jędrzejewski-Szmek2019-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts the gist of commit 636e72bce63e7e99b76357f7d524d16f61558775. The comment and the tiny cleanup are left alone. We shouldn't lock the accounts because people actually need to use them, and if they are locked, various tools will refuse. See https://github.com/systemd/systemd/pull/13277#issuecomment-529964578 and follow-up comments.
* | | | journal: Consistently capitalize printed header entriesThibault Nélis2019-10-221-19/+19
| | | | | | | | | | | | | | | | Per comments in https://github.com/systemd/systemd/pull/13808.
* | | | Remove unprintable non-ASCII char from special glyph ASCII fallback tableMarko Myllynen2019-10-221-1/+1
| | | |
* | | | Merge pull request #13811 from keszybz/logind-signal-emitting-fixAnita Zhang2019-10-216-9/+3
|\ \ \ \ | | | | | | | | | | Logind signal emitting fix
| * | | | mailmap: add entry to fix authorship of commitZbigniew Jędrzejewski-Szmek2019-10-212-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 471cffcfb0e005b7c4044b3b52cc4f25d217efac was committed on a debug VM where I didn't have git set up properly.
| * | | | logind: fix emission of PropertiesChanged for usersZbigniew Jędrzejewski-Szmek2019-10-212-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The same as parent commit, but users. This is the third and last foo_object_find() function in logind, so I think that this particular family of bugs is finally squashed.
| * | | | logind: fix emission of PropertiesChanged on seatsZbigniew Jędrzejewski-Szmek2019-10-212-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The story is the same as in 471cffcfb0e005b7c4044b3b52cc4f25d217efac: device_attach() → seat_send_changed() → sd_bus_emit_properties_changed_strv() → emit_properties_changed_on_interface() → node_vtable_get_userdata() → seat_object_find(), which returns 0 because message == NULL. But when we are emitting a signal, message is always NULL. Removing the overeager check and assert in the called function allow the signal to be emitted. Fixes #13769.
| * | | | logind: drop {}Zbigniew Jędrzejewski-Szmek2019-10-211-2/+1
| | | | |
* | | | | resolved: fix connection failures with TLS 1.3 and GnuTLSPeter Wu2019-10-211-1/+1
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prefer TLS 1.3 before TLS 1.2 for DNS-over-TLS support, otherwise servers compliant with RFC 8446 might end up agreeing TLS 1.2 plus a downgrade signal which is not expected by GnuTLS clients. This manifests in the following error: Failed to invoke gnutls_handshake: An illegal parameter has been received. Fixes: #13528 Fixes: v242-962-g9c0624dcdb ("resolved: support TLS 1.3 when using GnuTLS for DNS-over-TLS")
* | | | hwdb: Add Medion Akoya E2215T MD60198 sensor orientation quirkHans de Goede2019-10-211-0/+4
| | | | | | | | | | | | | | | | | | | | Add sensor orientation quirk for the Medion Akoya E2215T so that desktop-environments show their graphics the right way up.
* | | | Add Schneider SCT101CTM to sensor hwdbDaniel2019-10-211-0/+8
| |_|/ |/| |
* | | udev: tag any display devices as master-of-seat when nomodeset is usedZbigniew Jędrzejewski-Szmek2019-10-191-0/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #13773. See also https://bugzilla.redhat.com/show_bug.cgi?id=1728240, https://github.com/sddm/sddm/issues/1204. When nomodeset is used on the kernel command line, there is no graphics device that the kernel knows, so we don't tag anything as master-of-seat, and seat0 has CanGraphical=no. $ loginctl seat-status seat0 ; loginctl show-seat seat0 seat0 Devices: ├─/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 │ input:input0 "Power Button" ├─/sys/devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb1 │ usb:usb1 │ └─/sys/devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb1/1-1/1-1:1.0/0003:0627:0001.0001/input/input4 │ input:input4 "QEMU QEMU USB Tablet" ├─/sys/devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb2 │ usb:usb2 ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0 │ sound:card0 "Intel" ├─/sys/devices/platform/i8042/serio0/input/input1 │ input:input1 "AT Translated Set 2 keyboard" │ ├─/sys/devices/platform/i8042/serio0/input/input1/input1::capslock │ │ leds:input1::capslock │ ├─/sys/devices/platform/i8042/serio0/input/input1/input1::numlock │ │ leds:input1::numlock │ └─/sys/devices/platform/i8042/serio0/input/input1/input1::scrolllock │ leds:input1::scrolllock └─/sys/devices/platform/i8042/serio1/input/input3 input:input3 "ImExPS/2 Generic Explorer Mouse" Id=seat0 CanMultiSession=yes CanTTY=yes CanGraphical=no Sessions= IdleHint=yes IdleSinceHint=0 IdleSinceHintMonotonic=0 Let's tag the PCI device with "master-of-seat", so we get CanGraphical=yes, and "seat", so it is show as part of the seat: [fedora@f31-bios ~]$ loginctl seat-status seat0 ; loginctl show-seat seat0 seat0 Devices: ├─/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 │ input:input0 "Power Button" ├─/sys/devices/pci0000:00/0000:00:01.0 │ [MASTER] pci:0000:00:01.0 ├─/sys/devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb1 │ usb:usb1 │ └─/sys/devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb1/1-1/1-1:1.0/0003:0627:0001.0001/input/input4 │ input:input4 "QEMU QEMU USB Tablet" ├─/sys/devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb2 │ usb:usb2 ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0 │ sound:card0 "Intel" ├─/sys/devices/platform/i8042/serio0/input/input1 │ input:input1 "AT Translated Set 2 keyboard" │ ├─/sys/devices/platform/i8042/serio0/input/input1/input1::capslock │ │ leds:input1::capslock │ ├─/sys/devices/platform/i8042/serio0/input/input1/input1::numlock │ │ leds:input1::numlock │ └─/sys/devices/platform/i8042/serio0/input/input1/input1::scrolllock │ leds:input1::scrolllock └─/sys/devices/platform/i8042/serio1/input/input3 input:input3 "ImExPS/2 Generic Explorer Mouse" Id=seat0 CanMultiSession=yes CanTTY=yes CanGraphical=yes Sessions= IdleHint=yes IdleSinceHint=0 IdleSinceHintMonotonic=0
* | Merge pull request #13795 from ddstreet/test-41Anita Zhang2019-10-182-9/+21
|\ \ | | | | | | WIP: test: debug TEST-41 failure on Ubuntu CI