Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | shell-completion: add systemctl list-automounts | David Tardon | 2022-07-25 | 2 | -1/+2 |
| | |||||
* | man: document systemctl list-automounts | David Tardon | 2022-07-25 | 1 | -0/+19 |
| | |||||
* | systemctl: add list-automounts verb | David Tardon | 2022-07-25 | 3 | -0/+188 |
| | | | | Fixes: #6056 | ||||
* | systemctl: simplify var. definition a bit | David Tardon | 2022-07-25 | 1 | -5/+3 |
| | |||||
* | systemctl: extract output of legend to a function | David Tardon | 2022-07-25 | 1 | -20/+17 |
| | |||||
* | systemctl: drop unneeded condition | David Tardon | 2022-07-25 | 1 | -32/+32 |
| | |||||
* | systemctl: reduce var. scope and shorten the code a bit | David Tardon | 2022-07-25 | 1 | -17/+10 |
| | |||||
* | boot: a couple of tweaks recommended by Coccinelle | Frantisek Sumsal | 2022-07-25 | 2 | -8/+8 |
| | |||||
* | systemctl: fix type used for array sizes to size_t | Lennart Poettering | 2022-07-25 | 1 | -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-reload | Lennart Poettering | 2022-07-25 | 10 | -84/+158 |
|\ | | | | | udev: reload rules and builtins only when mtime of a config changed | ||||
| * | test-network: reload udevd when .link file is copied/removed | Yu Watanabe | 2022-07-23 | 1 | -10/+33 |
| | | |||||
| * | udev-builtin: logs when needs reloading | Yu Watanabe | 2022-07-23 | 3 | -7/+21 |
| | | |||||
| * | udev: reload rules and builtins only when mtime of a config changed | Yu Watanabe | 2022-07-23 | 2 | -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 file | Yu Watanabe | 2022-07-23 | 5 | -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 Watanabe | 2022-07-23 | 3 | -23/+30 |
| | | | | | | | | | | | | drop-in configs are checked Preparation for later commits. | ||||
| * | udev: delay to start queued events on `udevadm control --start-exec-queue` | Yu Watanabe | 2022-07-23 | 1 | -1/+1 |
| | | |||||
| * | udev: use event_reset_time_relative() | Yu Watanabe | 2022-07-23 | 1 | -3/+4 |
| | | |||||
| * | udev: downgrade error level and mention that the error is ignored | Yu Watanabe | 2022-07-23 | 1 | -1/+1 |
| | | |||||
| * | udev: fix error check | Yu Watanabe | 2022-07-23 | 1 | -1/+1 |
| | | |||||
* | | sysctl: add --strict option to fail if sysctl does not exists | Quentin Deslandes | 2022-07-25 | 6 | -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 Heitbaum | 2022-07-24 | 4 | -1/+18 |
| | | | | | | | | conflict with glibc 2.36 | ||||
* | | unit-file: avoid (null) in debugging logs | Yu Watanabe | 2022-07-24 | 1 | -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-rfkill | Yu Watanabe | 2022-07-24 | 13 | -75/+456 |
|\ \ | | | | | | | network: fix wlan interface handling when its RF is killed | ||||
| * | | network: do not try to bring up wifi interface if rfkill is active | Yu Watanabe | 2022-07-23 | 3 | -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 object | Yu Watanabe | 2022-07-23 | 3 | -0/+99 |
| | | | | | | | | | | | | Preparation for later commits. | ||||
| * | | network: assign corresponding sd-device object to Wiphy object | Yu Watanabe | 2022-07-23 | 3 | -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 Watanabe | 2022-07-23 | 1 | -27/+36 |
| | | | | | | | | | | | | | | | Then, we can assume all Wiphy objects managed by Manager has both valid index and name. | ||||
| * | | network: add TODO about interface renaming | Yu Watanabe | 2022-07-23 | 1 | -0/+3 |
| | | | |||||
| * | | network: unref sd-device object assigned to Link on remove uevent | Yu Watanabe | 2022-07-23 | 1 | -13/+14 |
| | | | | | | | | | | | | Otherwise, outdated device information may be used in a short timespan. | ||||
| * | | network: introduce a tiny wrapper for manager_udev_process_link() | Yu Watanabe | 2022-07-23 | 3 | -24/+42 |
| | | | | | | | | | | | | Preparation for later commits. | ||||
| * | | network: rename Link.sd_device -> Link.dev | Yu Watanabe | 2022-07-23 | 5 | -11/+11 |
| | | | |||||
| * | | network: use device_unref_and_replace() | Yu Watanabe | 2022-07-23 | 1 | -3/+1 |
| | | | |||||
| * | | sd-device: introduce device_unref_and_replace() | Yu Watanabe | 2022-07-23 | 2 | -0/+14 |
| | | | |||||
| * | | sd-device: introduce device_clear_sysattr_cache() | Yu Watanabe | 2022-07-23 | 2 | -0/+5 |
| | | | |||||
| * | | sd-device: introduce device_get_sysattr_bool() | Yu Watanabe | 2022-07-23 | 2 | -0/+15 |
| | | | |||||
| * | | network: do not silently stop to process configuration on activation failure | Yu Watanabe | 2022-07-23 | 1 | -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-cleanups | Yu Watanabe | 2022-07-24 | 12 | -497/+638 |
|\ \ \ | |_|/ |/| | | sd-netlink: several cleanups for netfilter | ||||
| * | | sd-netlink: introduce sd_nfnl_{send,call}_batch() | Yu Watanabe | 2022-07-24 | 3 | -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 0 | Yu Watanabe | 2022-07-24 | 1 | -1/+1 |
| | | | |||||
| * | | firewall-util: introduce nfnl_close_expr_container() helper function | Yu Watanabe | 2022-07-24 | 1 | -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 Watanabe | 2022-07-24 | 3 | -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 Watanabe | 2022-07-23 | 2 | -23/+0 |
| | | | |||||
| * | | sd-netlink: introduce sd_netlink_message_append_container_data() | Yu Watanabe | 2022-07-23 | 5 | -41/+35 |
| | | | |||||
| * | | sd-netlink: several cleanups for netfilter | Yu Watanabe | 2022-07-23 | 2 | -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 attribute | Yu Watanabe | 2022-07-23 | 1 | -4/+0 |
| | | | | | | | | | | | | | | | As `sd_netlink_message_open_container_union()` also appends the string attribute. | ||||
| * | | firewall-util-nft: various cleanups | Yu Watanabe | 2022-07-23 | 1 | -183/+333 |
| | | | | | | | | | | | | | | | | | | - add missing assertions, - align enum elements, - use cleanup attribute, and so on. | ||||
| * | | tree-wide: drop unnecessary inclusion of netlink-util.h | Yu Watanabe | 2022-07-23 | 4 | -4/+0 |
| | | | |||||
| * | | sd-netlink: move rtnl_message_type_is_*() to netlink-message-rtnl.c | Yu Watanabe | 2022-07-23 | 2 | -40/+40 |
|/ / | |||||
* | | man: Fix typo | codefiles | 2022-07-23 | 1 | -5/+5 |
|/ | |||||
* | Merge pull request #24074 from yuwata/network-dhcp6-rapid-commit | Yu Watanabe | 2022-07-23 | 9 | -5/+81 |
|\ | | | | | network: dhcp6: re-introduce RapidCommit= setting |