summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-bus/bus-objects.h (unfollow)
Commit message (Collapse)AuthorFilesLines
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_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.
2020-03-18man: add sd_bus_start(3)Zbigniew Jędrzejewski-Szmek5-7/+131
2020-03-18networkctl: Add support to display bondSusant Sahani1-1/+40
2020-03-18sd-bus: sd_bus_call/sd_bus_call_async_docs + cleanups.Daan De Meyer6-9/+200
2020-03-18networkctl: Add support to display vti and vti6 tunnelsSusant Sahani1-2/+8
2020-03-18networkctl: add support to display ip6gre, ip6gretap, ip6erspanSusant Sahani1-1/+21
2020-03-17docs: Add syntax for templated units to systemd.preset man pageJoerg Behrmann1-1/+15
This documents the syntax enable template@.service foo bar baz that was introduced in #9901 to preset templated units.
2020-03-17networkctl: Add support to display gre gretap and erspanSusant Sahani1-2/+4
2020-03-17networkctl: Add support to display geneve tunnel infoSusant Sahani1-0/+67
2020-03-17hwdb: add support for Lenovo Legion Y9000X2020 (#15127)duguxy1-0/+7
2020-03-17po: update Polish translationPiotr Drąg1-7/+16
2020-03-17Fix volume control keys on Lenovo Yoga S940Alexander Malafeev1-0/+9
With the default config repeated press of fn+VolumeUp or fn+VolumeDown lead to repeated presses even after release, which leads to volume going to 100% or 0%.
2020-03-17systemctl: print a notice when set-default is not effectiveZbigniew Jędrzejewski-Szmek1-10/+30
$ sudo ln -svf multi-user.target /run/systemd/generator.early/default.target '/run/systemd/generator.early/default.target' -> 'multi-user.target' $ sudo build/systemctl set-default --root=/ sysinit.target Removed /etc/systemd/system/default.target. Created symlink /etc/systemd/system/default.target → /usr/lib/systemd/system/sysinit.target. Note: "multi-user.target" is the default unit (possibly a runtime override). The output is not super informative, but it should be enough to point the user in the right direction. Fixes #3645.
2020-03-17networkctl: Add support to show tunnel (ipip/sit) local and remote addressSusant Sahani1-0/+27
2020-03-17sd-bus: Add sd_bus_method_call/sd_bus_method_call_async docs + cleanups.Daan De Meyer5-8/+129
2020-03-16sd-bus: Remove unused man cite of `sd_bus_slot_new_signal`.Daan De Meyer1-1/+0
2020-03-16network: do not re-attach sd-event objectYu Watanabe2-8/+8
Fixes #15126.
2020-03-16network: can: add support for listen-only modeYu Watanabe5-5/+24
Closes #15129.
2020-03-16networkctl: Add support to display master deviceSusant Sahani1-0/+12
2020-03-16networkctl: Add support to display vlan IDSusant Sahani1-1/+12
2020-03-16test-network: add a test case for DHCPv4.UseGateway=noYu Watanabe2-0/+23
2020-03-16network: add a flag to ignore gateway provided by DHCP serverYu Watanabe6-2/+15
Closes #15117.
2020-03-16core: add support for setting CPUAffinity= to special "numa" valueMichal Sekletár9-13/+125
systemd will automatically derive CPU affinity mask from NUMA node mask. Fixes #13248
2020-03-16shared: split out NUMA code from cpu-set-util.c to numa-util.cMichal Sekletár8-114/+173
2020-03-16home: fix segfault when parsing arguments in PAM moduleHaochen Tong1-1/+1
2020-03-16NEWS: fix use of tabs instead of spaces for one itemMike Kazantsev1-2/+2
2020-03-16sd-bus: Add sd_bus_set_fd documentation along with some cleanups.Daan De Meyer1-9/+37
2020-03-16test: wait a bit after starting the test serviceFrantisek Sumsal1-0/+1
otherwise we might end up being faster than the unit itself, causing unexpected fails, like: ``` testsuite.sh[297]: + systemctl start issue_14566_test testsuite.sh[297]: + systemctl status issue_14566_test testsuite.sh[304]: ● issue_14566_test.service - Issue 14566 Repro testsuite.sh[304]: Loaded: loaded (/etc/systemd/system/issue_14566_test.service; static; vendor preset: enabled) testsuite.sh[304]: Active: active (running) since Sat 2020-03-14 02:02:23 UTC; 417ms ago testsuite.sh[304]: Main PID: 301 ((repro.sh)) testsuite.sh[304]: Tasks: 1 (limit: 535) testsuite.sh[304]: Memory: 180.0K testsuite.sh[304]: CPU: 122ms testsuite.sh[304]: CGroup: /system.slice/issue_14566_test.service testsuite.sh[304]: └─301 [(repro.sh)] testsuite.sh[307]: ++ cat /leakedtestpid testsuite.sh[307]: cat: /leakedtestpid: No such file or directory testsuite.sh[297]: + leaked_pid= ```
2020-03-13systemctl: emit notice about some kernel commandline optionsZbigniew Jędrzejewski-Szmek1-1/+39
Things can be pretty confusing when there's a commandline option overrding the configured default... Let's be nice to the user and emit a warning.
2020-03-13core: consistently emit oom warning when parsing argsZbigniew Jędrzejewski-Szmek1-11/+6
In practice we are very unlikely to fail at this point, but for consistency, we should always warn when allocation fails, and we have free_and_strdup_warn() for this.
2020-03-13networkctl: Add support to display qdiscSusant Sahani1-1/+19
./networkctl status ens38 ─╯ ● 4: ens38 Link File: /usr/lib/systemd/network/99-default.link Network File: /usr/lib/systemd/network/10-ens38.network Type: ether State: routable (configured) Alternative Names: enp2s6 Path: pci-0000:02:06.0 Driver: e1000 Vendor: Intel Corporation Model: 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter) HW Address: 00:0c:29:d2:42:7c (VMware, Inc.) MTU: 1500 (min: 46, max: 16110) QDisc: fq_codel <============================ Queue Length (Tx/Rx): 1/1 Auto negotiation: yes Speed: 1Gbps Duplex: full Port: tp Address: 192.168.5.123 fe80::20c:29ff:fed2:427c
2020-03-13sd-netlink: Add IFLA_QDISCSusant Sahani1-3/+1
2020-03-13fix journalctl regression (#15099)Georg Müller1-1/+0
This regression was introduced in #14913. The current_file variable can be NULL, as, for example, with the following commands: * journalctl --list-boots * journalctl -b -1 --no-pager Since current_file is only checked for pointer equality with f, removing the assertion is safe here.
2020-03-12shared/ask-password-api: do not show hint on echoChristian Hesse1-1/+1
Giving --echo to systemd-ask-password allows to echo the user input instead of masking it. This is useful when querying for usernames or similar. Showing "(press TAB for no echo)" does not make sense there, so do not. Note that pressing TAB or ESC still disables echo.