summaryrefslogtreecommitdiffstats
path: root/src/udev/udev-manager.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tree-wide: use LOG_PRI() and LOG_FAC()Yu Watanabe2024-05-121-1/+1
|
* daemon-util: introduce notify_reloading helperMike Yuan2024-03-261-8/+2
| | | | Prompted by #31951
* signal-util: imply sentinel -1 in sigprocmask_many() + sigset_add_many() ↵Lennart Poettering2024-02-231-1/+1
| | | | args list
* udev: add upper bound of 5 hours to SYSTEMD_UDEV_EXTRA_TIMEOUT_SEC=Luca Boccassi2024-01-041-1/+7
| | | | | | Follow-up for b16c6076cb334c9da9602d4bafbf60381d6d630e CID#1533111
* udev: wait for an extra time before the manager kills workersYu Watanabe2024-01-021-1/+27
| | | | | | | | | | Otherwise, udev workers cannot detect slow programs invoked by IMPORT{program}=, PROGRAM=, or RUN=, and whole worker process may be killed. Fixes #30436. Co-authored-by: sushmbha <sushmita.bhattacharya@oracle.com>
* Merge pull request #30594 from yuwata/udev-timeout-cleanupsLuca Boccassi2023-12-241-8/+23
|\ | | | | udev: several cleanups for timeout settings
| * udev: refuse too short timeout valueYu Watanabe2023-12-221-1/+21
| | | | | | | | | | | | | | | | Setting zero or too short timeout for each uevent is meaningless, and causes the system fails to boot. Let's refuse such values. Also, delaying execution of RUN= commands too long also makes many uevents enter the failed state. So, let's refuse such misconfiguration.
| * udev-manager: use ASSERT_PTR()Yu Watanabe2023-12-221-7/+2
| |
* | udev: use SD_EVENT_SIGNAL_PROCMASKYu Watanabe2023-12-231-6/+7
|/
* udev-manager: fix log messageDavid Tardon2023-11-161-1/+1
|
* udev-manager: mark old_key as unused tooDavid Tardon2023-11-081-2/+2
|
* udev-manager: actually remove the propertyDavid Tardon2023-11-081-8/+2
| | | | | | | | AFAICT there's no reason to keep removed entries in the Hashmap (although it doesn't break anything either). The only use of this hashmap is in udev_rule_apply_token_to_event(), which just retrieves the value using hashmap_get(), hence there's no difference there between an existing entry with a NULL value and a missing entry.
* sd-device-monitor: unconditionally increase buffer size by ↵Yu Watanabe2023-11-061-9/+0
| | | | | | | | sd_device_monitor_new() As suggested at https://github.com/systemd/systemd/pull/29872#discussion_r1382932633: > socket memory is these days accounted to the process that owns a socket, > hence we shouldn't be too concerned that this might waste memory.
* process-util: add new FORK_DEATHSIG_SIGKILL flag, rename FORK_DEATHSIG → ↵Lennart Poettering2023-11-021-1/+1
| | | | | | | | | | | | | | | | | | FORK_DEATHSIG_SIGTERM Sometimes it makes sense to hard kill a client if we die. Let's hence add a third FORK_DEATHSIG flag for this purpose: FORK_DEATHSIG_SIGKILL. To make things less confusing this also renames FORK_DEATHSIG to FORK_DEATHSIG_SIGTERM to make clear it sends SIGTERM. We already had FORK_DEATHSIG_SIGINT, hence this makes things nicely symmetric. A bunch of users are switched over for FORK_DEATHSIG_SIGKILL where we know it's safe to abort things abruptly. This should make some kernel cases more robust, since we cannot get confused by signal masks or such. While we are at it, also fix a bunch of bugs where we didn't take FORK_DEATHSIG_SIGINT into account in safe_fork()
* fd-uitl: rename PIPE_EBADF → EBADF_PAIR, and add EBADF_TRIPLETLennart Poettering2023-10-261-1/+1
| | | | | | | | We use it for more than just pipe() arrays. For example also for socketpair(). Hence let's give it a generic name. Also add EBADF_TRIPLET to mirror this for things like stdin/stdout/stderr arrays, which we use a bunch of times.
* io-util: split out "struct iovec" related calls into their own .c/.h filesLennart Poettering2023-10-201-1/+1
| | | | | | | | | This is preparation for #28891, which adds a bunch more helpers around "struct iovec", at which point this really deserves its own .c/.h file. The idea is that we sooner or later can consider "struct iovec" as an entirely generic mechanism to reference some binary blob, and is the go-to type for this purpose whenever we need one.
* cgroup-util: drop "controller" argument from various cgroup helper callsLennart Poettering2023-10-051-1/+1
| | | | | | | | | | | | | | | | systemd's own cgroup hierarchy is special to us, we use it to actually manage processes. Because of that many calls tha apply to cgroups are only ever called with the SYSTEMD_CGROUP_CONTROLLER as controller argument. Let's hence remove the argument altogether. This in particular touches the kill and xattr routines. This changes no behaviour, we just drop an argument that is always set to the same value anyway. This is preparation to eventually getting rid of the cgroupvs1, because on cgroupvs2 the cgroup paths do not change for different controllers, there's only a single hierarchy there.
* udev: allow to set the maximum number of worker process to 0Yu Watanabe2023-08-051-1/+4
| | | | In that case, the maximum is calculated based on the system resources.
* udev: split out manager_set_default_children_max()Yu Watanabe2023-08-051-0/+28
|
* udev: split udevd.c into twoYu Watanabe2023-07-311-0/+1336