summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* shell-completion: add systemctl list-automountsDavid Tardon2022-07-252-1/+2
|
* man: document systemctl list-automountsDavid Tardon2022-07-251-0/+19
|
* systemctl: add list-automounts verbDavid Tardon2022-07-253-0/+188
| | | | Fixes: #6056
* systemctl: simplify var. definition a bitDavid Tardon2022-07-251-5/+3
|
* systemctl: extract output of legend to a functionDavid Tardon2022-07-251-20/+17
|
* systemctl: drop unneeded conditionDavid Tardon2022-07-251-32/+32
|
* systemctl: reduce var. scope and shorten the code a bitDavid Tardon2022-07-251-17/+10
|
* boot: a couple of tweaks recommended by CoccinelleFrantisek Sumsal2022-07-252-8/+8
|
* systemctl: fix type used for array sizes to size_tLennart Poettering2022-07-251-10/+10
| | | | | | | | | | We always should use size_t for sizes of arrays (and any size of memory, in fact), unless there's a strong reason to use something else. Hence, let's fix these cases where we sloppily used "unsigned" or "int" instead. No change in behaviour, this is just to make things less surprising for the random reader.
* Merge pull request #23991 from yuwata/udev-reloadLennart Poettering2022-07-2510-84/+158
|\ | | | | udev: reload rules and builtins only when mtime of a config changed
| * test-network: reload udevd when .link file is copied/removedYu Watanabe2022-07-231-10/+33
| |
| * udev-builtin: logs when needs reloadingYu Watanabe2022-07-233-7/+21
| |
| * udev: reload rules and builtins only when mtime of a config changedYu Watanabe2022-07-232-27/+33
| | | | | | | | | | | | | | This makes udevd reload rules only when the timestamp is updated, even on SIGHUP or `udevadm control --reload`. So, we can call `udevadm control --reload` without huge performance penalty when no rules, .link files, and so on are changed.
| * udev: save stats of all udev rules fileYu Watanabe2022-07-235-12/+35
| | | | | | | | | | The mtime of directory is not updated when an existing rule file is changed. Hence, paths_check_timestamp() is not reliable.
| * conf-parser: add a boolean flag for config_get_stats_by_path() to control if ↵Yu Watanabe2022-07-233-23/+30
| | | | | | | | | | | | drop-in configs are checked Preparation for later commits.
| * udev: delay to start queued events on `udevadm control --start-exec-queue`Yu Watanabe2022-07-231-1/+1
| |
| * udev: use event_reset_time_relative()Yu Watanabe2022-07-231-3/+4
| |
| * udev: downgrade error level and mention that the error is ignoredYu Watanabe2022-07-231-1/+1
| |
| * udev: fix error checkYu Watanabe2022-07-231-1/+1
| |
* | sysctl: add --strict option to fail if sysctl does not existsQuentin Deslandes2022-07-256-6/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | systemd-sysctl currently fails silently under any of these conditions: - Missing permission to write a sysctl. - Invalid sysctl (path doesn't exists). - Ignore failure flag ('-' in front of the sysctl name). Because of this behaviour, configuration issues can go unnoticed as there is no way to detect those unless going through the logs. --strict option forces systemd-sysctl to fail if a sysctl is invalid or if permission are insufficient. Errors on sysctl marked as "ignore failure" will still be ignored.
* | glibc: Remove #include <linux/fs.h> to resolve fsconfig_command/mount_attr ↵Rudi Heitbaum2022-07-244-1/+18
| | | | | | | | conflict with glibc 2.36
* | unit-file: avoid (null) in debugging logsYu Watanabe2022-07-241-4/+1
| | | | | | | | | | | | | | | | | | The variable `inst` was set to NULL by TAKE_PTR(). This fixes the following log message: ``` systemd[1]: Unit getty@tty2.service has alias (null). ```
* | Merge pull request #24020 from yuwata/network-rfkillYu Watanabe2022-07-2413-75/+456
|\ \ | | | | | | network: fix wlan interface handling when its RF is killed
| * | network: do not try to bring up wifi interface if rfkill is activeYu Watanabe2022-07-233-2/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following error: --- systemd-networkd[465]: wlan0: Could not bring up interface: Operation not possible due to RF-kill --- Fixes #23649.
| * | network: also assign rfkill device to Wiphy objectYu Watanabe2022-07-233-0/+99
| | | | | | | | | | | | Preparation for later commits.
| * | network: assign corresponding sd-device object to Wiphy objectYu Watanabe2022-07-233-0/+81
| | | | | | | | | | | | | | | | | | As an analogy for Link object, let's each Wiphy object has the corresponding sd-device object. The sd-device object will be used in later commits.
| * | network: set wiphy name in wiphy_new()Yu Watanabe2022-07-231-27/+36
| | | | | | | | | | | | | | | Then, we can assume all Wiphy objects managed by Manager has both valid index and name.
| * | network: add TODO about interface renamingYu Watanabe2022-07-231-0/+3
| | |
| * | network: unref sd-device object assigned to Link on remove ueventYu Watanabe2022-07-231-13/+14
| | | | | | | | | | | | Otherwise, outdated device information may be used in a short timespan.
| * | network: introduce a tiny wrapper for manager_udev_process_link()Yu Watanabe2022-07-233-24/+42
| | | | | | | | | | | | Preparation for later commits.
| * | network: rename Link.sd_device -> Link.devYu Watanabe2022-07-235-11/+11
| | |
| * | network: use device_unref_and_replace()Yu Watanabe2022-07-231-3/+1
| | |
| * | sd-device: introduce device_unref_and_replace()Yu Watanabe2022-07-232-0/+14
| | |
| * | sd-device: introduce device_clear_sysattr_cache()Yu Watanabe2022-07-232-0/+5
| | |
| * | sd-device: introduce device_get_sysattr_bool()Yu Watanabe2022-07-232-0/+15
| | |
| * | network: do not silently stop to process configuration on activation failureYu Watanabe2022-07-231-11/+4
| | | | | | | | | | | | | | | | | | | | | | | | Previously, if activation failed, link did not enter the failed state, but still Link.activated flag not set. Hence, nothing processed even if the interface is manually brought up later. Partially fixes #23649.
* | | Merge pull request #23828 from yuwata/nfnl-cleanupsYu Watanabe2022-07-2412-497/+638
|\ \ \ | |_|/ |/| | sd-netlink: several cleanups for netfilter
| * | sd-netlink: introduce sd_nfnl_{send,call}_batch()Yu Watanabe2022-07-243-91/+185
| | | | | | | | | | | | | | | This also introduces sd_nfnl_message_new() which can be also used for non-nftables subsystems.
| * | sd-netlink: do not compare pointer with 0Yu Watanabe2022-07-241-1/+1
| | |
| * | firewall-util: introduce nfnl_close_expr_container() helper functionYu Watanabe2022-07-241-88/+40
| | | | | | | | | | | | And merge nfnl_add_expr_lookup_set() and nfnl_add_expr_lookup_map().
| * | sd-netlink: merge sd_nfnl_nft_message_{new,del}_setelems_begin()Yu Watanabe2022-07-243-83/+52
| | | | | | | | | | | | | | | | | | | | | And this makes the new merged function `sd_nfnl_nft_message_new_setelems()` not open container, as containers should be opened and closed in the same function in general. Otherwise, it is hard to understand which level we are in the nested attribute tree.
| * | sd-netlink: drop unused sd_nfnl_nft_message_del_table()Yu Watanabe2022-07-232-23/+0
| | |
| * | sd-netlink: introduce sd_netlink_message_append_container_data()Yu Watanabe2022-07-235-41/+35
| | |
| * | sd-netlink: several cleanups for netfilterYu Watanabe2022-07-232-39/+52
| | | | | | | | | | | | | | | | | | | | | | | | - rename family -> nfproto, and other arguments, - check specified nfproto, - change type of several function arguments that specify data length, - add several assertions, - drop unnecessary headers.
| * | firewall-util: drop unnecessary string attributeYu Watanabe2022-07-231-4/+0
| | | | | | | | | | | | | | | As `sd_netlink_message_open_container_union()` also appends the string attribute.
| * | firewall-util-nft: various cleanupsYu Watanabe2022-07-231-183/+333
| | | | | | | | | | | | | | | | | | - add missing assertions, - align enum elements, - use cleanup attribute, and so on.
| * | tree-wide: drop unnecessary inclusion of netlink-util.hYu Watanabe2022-07-234-4/+0
| | |
| * | sd-netlink: move rtnl_message_type_is_*() to netlink-message-rtnl.cYu Watanabe2022-07-232-40/+40
|/ /
* | man: Fix typocodefiles2022-07-231-5/+5
|/
* Merge pull request #24074 from yuwata/network-dhcp6-rapid-commitYu Watanabe2022-07-239-5/+81
|\ | | | | network: dhcp6: re-introduce RapidCommit= setting