summaryrefslogtreecommitdiffstats
path: root/src/ask-password (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-03-27test-sd-path: basic test for the sd-path APIZbigniew Jędrzejewski-Szmek2-0/+65
2020-03-27{systemd,udev}.pc: add names with underscores, deprecate the old onesZbigniew Jędrzejewski-Szmek2-30/+88
The names with multiple lowercase words run together are hard to read. We started that way with very short names like rootprefix, but then same pattern was applied to longer and longer names. Looking at the body of .pc files available on my machine, many packages use underscores; let's do the same. Old names are kept for compatiblity, so this is backwards compatible.
2020-03-27path: align columnsZbigniew Jędrzejewski-Szmek1-41/+40
Without that it's really hard to see what items are in the table...
2020-03-27Add Lenovo IdeaPad Miix 300 ACCEL_MOUNT_MATRIXTom1-0/+4
2020-03-27user-util: Allow names starting with a digitBalint Reczey2-5/+19
In 1a29610f5fa1bcb2eeb37d2c6b79d8d1a6dbb865 the change inadvertedly disabled names with digit as the first character. This follow-up change allows a digit as the first character in compat mode. Fixes: #15141
2020-03-27core/unit: print info when unit_add_name failedWen Yang1-12/+21
When there are hundreds of mounts on the server, it will take a long time to analyze the failure of a certain mount unit. So it is useful to print the reason why unit_add_name() failed.
2020-03-27Remove stale doc about PrivateNetwork and typeZhu Li1-2/+1
2020-03-27systemd-network-generator.service: network-pre.target is a passive target unitFranck Bui1-1/+2
2020-03-27Add `shell` to machinectl ZSH completionPieter Lexis1-0/+1
2020-03-26shared- bride util allign bridge_state_tableSusant Sahani1-1/+1
2020-03-26po: update Ukrainian translation (#15228)Yuri Chornoivan1-41/+50
2020-03-26path-lookup: Use default value for XDG_CONFIG_DIRS if environment is not setDavid Edmundson1-4/+5
If XDG_CONFIG_DIRS is unset, the specification says we should assume /etc/xdg.
2020-03-25systemctl: exit with 1 if no unit files foundGiedrius Statkevičius1-0/+3
Add a simple check on the number of unit files that were found: return `-ENOENT` when none is found from the function and thus `systemctl` consequently exits with `1` (`EXIT_FAILURE`) if none were found. Verification: ```bash root@image:~# systemctl list-unit-files dbus-nonexistant.service; echo $? UNIT FILE STATE VENDOR PRESET 0 unit files listed. 1 root@image:~# systemctl list-unit-files dbus.service; echo $? UNIT FILE STATE VENDOR PRESET dbus.service static enabled 1 unit files listed. 0 ``` Fixes #15082.
2020-03-25networkctl: Display more geneve prepertiesSusant Sahani1-0/+59
2020-03-25network: Introduce geneve utilSusant Sahani3-0/+31
2020-03-25cgroup-util: cg_get_xattr_malloc helperAnita Zhang2-0/+20
`cg_get_xattr_malloc` to read a cgroup xattr value and allocate space to hold said value (simple helper combining existing functions).
2020-03-25cgroup-util: helper to cg_get_attribute and convert to uint64_tAnita Zhang4-60/+34
A common pattern in the codebase is reading a cgroup memory value and converting it to a uint64_t. Let's make it a helper and refactor a few places to use it so it's more concise.
2020-03-24network: attach sd-event in link_load() when creating link dhcp_client or ipv4llDan Streetman1-0/+8
Commit 08c588d18b1e337f856e6541f3f711be48718279 moved attachment of the sd-event into creation of the dhcp_client or ipv4ll in dhcp4_configure() or ipv4ll_configure(), but these can also be created in link_load(), so that creation needs to also perform sd-event attachment. Without this, dhcp_client or ipv4ll created in link_load() will not have an ->event and will fail assertion, causing networkd to fail, e.g.: Assertion 'client->event' failed at src/libsystemd-network/sd-dhcp-client.c:1283, function client_start_delayed(). Ignoring. ens2: Could not acquire DHCPv4 lease: Invalid argument ens2: Failed
2020-03-24networkctl: Use string table for bridge stateSusant Sahani1-11/+2
2020-03-24shared: Introduce bridge utilSusant Sahani3-0/+35
2020-03-24networkctl: Add more bridge propertiesSusant Sahani1-1/+25
2020-03-24davfs is a network file systempelzvieh1-1/+2
2020-03-24Fall back to kexec when no kexec binary existsArusekk1-0/+3
This may be not a popular setup, but in case kexec resides somewhere different than the default location for KEXEC (`/usr/sbin/kexec`), don't just reboot and try doing `reboot(RB_KEXEC)` instead, just like what `kexec -e` normally does.
2020-03-23units: Don't mount tracefs in LXCBalint Reczey1-0/+1
Mounting tracefs fails in unprivileged LXC containers and latest LXD (3.23) bind mounts tracefs already. Fixes https://github.com/lxc/lxd/issues/7059
2020-03-23swap: check p->what for NULLVito Caputo1-1/+1
Commit 61f9cf4e4c introduced swap_get_parameters(s) but only checked its return for NULL and not its ->what. Fixes https://github.com/systemd/systemd/issues/15070
2020-03-22man: fix typo in loader.conf(5)ml1-1/+1
2020-03-22sd-bus: Add sd_bus_send docs + cleanups.Daan De Meyer5-4/+142
2020-03-22networkctl: Add support to display SIP serversSusant Sahani1-1/+5
``` ❯ build/networkctl status veth99 ─╯ ● 17: veth99 Link File: /usr/lib/systemd/network/99-default.link Network File: /usr/lib/systemd/network/veth99.network Type: ether State: routable (configured) Driver: veth HW Address: 1e:04:f8:b8:2f:d4 MTU: 1500 (min: 68, max: 65535) QDisc: noqueue IPv6 Address Generation Mode: eui64 Queue Length (Tx/Rx): 1/1 Auto negotiation: no Speed: 10Gbps Duplex: full Port: tp Address: 192.168.5.35 (DHCP4) fe80::1c04:f8ff:feb8:2fd4 Gateway: 192.168.5.1 DNS: 192.168.5.1 NTP: 192.168.5.1 SIP: 192.168.5.4 192.168.5.5 Time Zone: Europe/Berlin Mar 21 23:26:32 Zeus systemd-networkd[671]: veth99: Link DOWN Mar 21 23:26:32 Zeus systemd-networkd[671]: veth99: Lost carrier Mar 22 10:25:35 Zeus systemd-networkd[671]: veth99: Link UP Mar 22 10:25:35 Zeus systemd-networkd[671]: veth99: Gained carrier Mar 22 10:25:36 Zeus systemd-networkd[671]: veth99: Gained IPv6LL Mar 22 10:29:02 Zeus systemd-networkd[671]: veth99: Link DOWN Mar 22 10:29:02 Zeus systemd-networkd[671]: veth99: Lost carrier Mar 22 10:29:13 Zeus systemd-networkd[671]: veth99: Link UP Mar 22 10:29:13 Zeus systemd-networkd[671]: veth99: Gained carrier Mar 22 10:29:14 Zeus systemd-networkd[671]: veth99: Gained IPv6LL ```
2020-03-22sd-network: Provice APIs to access SIP servers given by DHCP4 serverSusant Sahani2-0/+8
2020-03-21Silence Wstring-plus-int warning when using clangd with GCC.Daan De Meyer1-1/+1
2020-03-21network: DHCP lease load SIP copy paste errorSusant Sahani1-1/+1
2020-03-19sd-bus: whitespace adjustmentsZbigniew Jędrzejewski-Szmek3-7/+5
2020-03-19sd-bus: support SD_BUS_DEFAULT* and don't crash in functions where bus is ↵Zbigniew Jędrzejewski-Szmek1-12/+16
optional In those functions where bus defaults to the m->bus, we should also resolve the magic parameters. And if neither called with bus=NULL and an unattached message, return properly instead of crashing in assert later.
2020-03-19sd-bus: make sure SD_BUS_DEFAULT* works everywhereZbigniew Jędrzejewski-Szmek3-5/+14
I'm not sure why those functions were not touched in 45b1f410ba699990e4033805fe64cc369b835f10. Anyway, it seems easier to just support the magic parameters everywhere.
2020-03-19sd-bus: Add sd_bus_reply_method_return docs + cleanupsDaan De Meyer5-74/+176
2020-03-19sd-bus: add sd_bus_message_seal docs + cleanupsDaan De Meyer4-1/+108
2020-03-19Fix keys on Medion Akoya P6669Finn1-0/+1
2020-03-19login: allow non-console sessions to change vtArnaud Ferraris1-1/+1
When starting a wayland session through a systemd service for a non-root user, the compositor (based on wlroots) is denied the authorization to change vt. Once the user logs in, either through a local console or via ssh, the compositor can work properly. This is related to the login polkit policy: - `allow_inactive` has value `auth_admin_keep`, denying any non-root user session the authorization to change vt - `allow_active` has value `yes`, which explains why the vt change becomes possible once the user logs in through another channel By changing the `allow_inactive` value to `yes`, any user session setup in a service file can switch vt, allowing wayland sessions for non-root users.
2020-03-19logind: log a more accurate error when we failed at session creationFranck Bui1-4/+4
We used to log the following error: "Start job for unit user-1000.slice failed with 'canceled'" which can be really misleading if the actual job failed at *stopping* a unit. Indeed "Start" was hard coded but it was wrong since we can also fail with stop jobs which are enqueued when a session is stopped.
2020-03-19network: Fix split in `SendOption=` on client and serverDavid Wood12-15/+131
When specifying `DHCPv4.SendOption=`, it is used by systemd-networkd to set the value of that option within the DHCP request that is sent out. This differs to setting `DHCPServer.SendOption=`, which will place all the options together as suboptions into the vendor-specific information (code 43) option. This commit adds two new config options, `DHCPv4.SendVendorOption=` and `DHCPServer.SendVendorOption=`. These both have the behaviour of the old `DHCPServer.SendOption=` flag, and set the value of the suboption in the vendor-specific information option. The behaviour of `DHCPServer.SendOption=` is then changed to reflect that of `DHCPv4.SendOption=`. It will set the value of the corresponding option in the DHCP request.
2020-03-19networkctl: Add support to display IPv6 addrgenmodeSusant Sahani1-0/+33
2020-03-19selinux: delay mac_selinux_enforcing call after SELinux was determined to be ↵Christian Göttsche1-1/+4
enabled Calling `mac_selinux_enforcing()`, which calls `security_getenforce()`, on a SELinux disabled system causes the following error message to be printed: Failed to get SELinux enforced status: No such file or directory Fixes: 257188f80ce1a083e3a88b679b898a73fecab53b ("selinux: cache enforced status and treat retrieve failure as enforced mode") Supersedes: #15145
2020-03-18sd-bus: sd_bus_set/get_method_call_timeout docs + cleanups.Daan De Meyer5-11/+114
2020-03-18man: say "is" not "has been"Zbigniew Jędrzejewski-Szmek1-3/+3
2020-03-18man: mention sd_bus_is_anonymous() and sd_bus_is_trusted()Zbigniew Jędrzejewski-Szmek2-1/+21
2020-03-18sd-bus: mark sd_bus_try_close() as deprecatedZbigniew Jędrzejewski-Szmek2-2/+2
codesearch.debian.net shows no uses (except for the definition in systemd and elogind). $ cat > test.c int main() { sd_bus_try_close(NULL); return 0; } $ gcc -Isrc/systemd -Wall -o testbus test.c -lsystemd test.c: In function ‘main’: test.c:4:3: warning: ‘sd_bus_try_close’ is deprecated [-Wdeprecated-declarations] 4 | sd_bus_try_close(NULL); | ^~~~~~~~~~~~~~~~ In file included from test.c:1: src/systemd/sd-bus.h:180:5: note: declared here 180 | int sd_bus_try_close(sd_bus *bus) _sd_deprecated_; /* deprecated */ | ^~~~~~~~~~~~~~~~
2020-03-18bus: drop dead code for kdbus supportZbigniew Jędrzejewski-Szmek1-26/+6
sd_bus_try_close() always returns -EOPNOTSUPP if bus is a valid object. It nevers returns -EBUSY. So we'd always go into the "fallback" path.
2020-03-18man: describe sd_bus_default_flush_close()Zbigniew Jędrzejewski-Szmek3-1/+17
2020-03-18man: add sd_bus_set_address(3)Zbigniew Jędrzejewski-Szmek4-8/+187
2020-03-18sd-bus: make bus_set_address_user always go through sd_bus_set_addressZbigniew Jędrzejewski-Szmek1-22/+19
This way all the checks are done, and we don't leak a pointer if bus_set_address_user() is called twice.