summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* NEWS: describe the new user slicesoomd-and-user-slicesZbigniew Jędrzejewski-Szmek2020-11-121-0/+7
|
* meson: allow oomd to be enabled even in release modeZbigniew Jędrzejewski-Szmek2020-11-122-6/+8
| | | | | | A distro (Fedora in particular) may want to enable oomd in a unstable branch for testing, even though the package as a whole is compiled in release mode. Let's emit a warning but otherwise allow this.
* Merge pull request #17561 from yuwata/manv247-rc2Zbigniew Jędrzejewski-Szmek2020-11-1243-119/+128
|\
| * man: set constant tag to NUL or NULLYu Watanabe2020-11-1224-47/+51
| |
| * man: append parentheses for function nameYu Watanabe2020-11-1220-69/+67
| |
| * man: fix tagYu Watanabe2020-11-121-1/+1
| |
| * man: mention that sd_bus_call() may return a negative errno mapped from ↵Yu Watanabe2020-11-121-2/+8
| | | | | | | | | | | | D-Bus error reply Closes #17556.
| * man: add missing periodYu Watanabe2020-11-122-2/+2
| |
* | meson: add option to skip installing to $sysconfdirJörg Thalheim2020-11-1220-63/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is useful for development where overwriting files out side the configured prefix will affect the host as well as stateless systems such as NixOS that don't let packages install to /etc but handle configuration on their own. Alternative to https://github.com/systemd/systemd/pull/17501 tested with: $ mkdir inst build && cd build $ meson \ -Dcreate-log-dirs=false \ -Dsysvrcnd-path=$(realpath ../inst)/etc/rc.d \ -Dsysvinit-path=$(realpath ../inst)/etc/init.d \ -Drootprefix=$(realpath ../inst) \ -Dinstall-sysconfdir=false \ --prefix=$(realpath ../inst) .. $ ninja install
* | license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-124-4/+4
| | | | | | | | Follow-up for db9ecf050165fd1033c6f81485917e229c4be537.
* | Merge pull request #17567 from keszybz/various-small-cleanupsYu Watanabe2020-11-1217-115/+96
|\ \ | |/ |/| Various small cleanups
| * basic/fileio: constify struct timespec argumentsZbigniew Jędrzejewski-Szmek2020-11-102-6/+6
| |
| * libsystemd-network: add comment explaining unusual memory accessZbigniew Jędrzejewski-Szmek2020-11-101-1/+1
| | | | | | | | | | Inspired by coverity CID#1435984. I'm confused by the union definion every time I look at it... Let's at least add a comment to help future readers.
| * tree-wide: unsetenv cannot failZbigniew Jędrzejewski-Szmek2020-11-108-32/+22
| | | | | | | | | | | | ... when called with a valid environment variable name. This means that any time we call it with a fixed string, it is guaranteed to return 0. (Also when the variable is not present in the environment block.)
| * basic/env-util: add little helper to call setenv or unsetenvZbigniew Jędrzejewski-Szmek2020-11-105-14/+21
| |
| * sd-event: minor modernizationZbigniew Jędrzejewski-Szmek2020-11-101-9/+4
| | | | | | | | | | With this change the pattern used for epoll_ctl() is the same in all calls in this file. Consistency FTW!
| * sd-event: increase n_enabled_child_sources just onceZbigniew Jędrzejewski-Szmek2020-11-101-28/+12
| | | | | | | | | | Neither source_child_pidfd_register() nor event_make_signal_data() look at n_enabled_child_sources.
| * sd-event: update state at the end in event_source_enableZbigniew Jędrzejewski-Szmek2020-11-101-25/+30
| | | | | | | | | | | | | | | | | | | | | | Coverity in CID#1435966 was complaining that s->enabled is not "restored" in all cases. But the code was actually correct, since it should only be "restored" in the error paths. But let's still make this prettier by not setting the state before all operations that may fail are done. We need to set .enabled for the prioq reshuffling operations, so move those down. No functional change intended.
* | meson: use "_" as separator in test namesZbigniew Jędrzejewski-Szmek2020-11-111-1/+1
| | | | | | | | | | | | | | | | | | ":" is prettier, but meson 0.56+ doesn't like it: src/systemd/meson.build:73: DEPRECATION: ":" is not allowed in test name "cc-sd-bus.h:c", it has been replaced with "_" src/systemd/meson.build:73: DEPRECATION: ":" is not allowed in test name "cc-sd-bus.h:c-ansi", it has been replaced with "_" ... Fixes #17568.
* | Merge pull request #16603 from benzea/benzea/special-app-sliceLennart Poettering2020-11-1112-38/+166
|\ \ | | | | | | Use app.slice by default in user manager (and define special user slices)
| * | user: move "extrinsic" units to their root sliceZbigniew Jędrzejewski-Szmek2020-11-101-9/+10
| | | | | | | | | | | | | | | | | | | | | With the grandparent change to move most units to app.slice, those units would be ordered After=app.slice which doesn't make any sense. Actually they appear earlier, before the manager is even started, and conceputally it doesn't seem useful to put them under any slice.
| * | pid1: expose "extrinsic" status of swaps and mountsZbigniew Jędrzejewski-Szmek2020-11-104-32/+52
| | | | | | | | | | | | | | | The only visible change from this is that we show Extrinsic: yes/no in dumps for swap units (this was already done for mount units).
| * | units: Move user tmpfiles clean service into background.sliceBenjamin Berg2020-10-231-0/+1
| | |
| * | man: Document app, session and background special user slice unitsBenjamin Berg2020-10-231-0/+54
| | | | | | | | | | | | Add documentation for the special slice user slice units.
| * | core: Move user units into app.slice by defaultBenjamin Berg2020-10-231-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the default from putting all units into the root slice to placing them into the app slice in the user manager. The advantage is that we get the right behaviour in most cases, and we'll need special case handling in all other cases anyway. Note that we have currently defined that applications *should* start their unit names with app-, so we could also move only these by creating a drop-in for app-.scope and app-.service. However, that would not answer the question on how we should manage session.slice. And we would end up placing anything that does not fit the system (e.g. anything started by dbus-broker currently) into the root slice.
| * | basic: Define macros for special user slicesBenjamin Berg2020-10-231-0/+5
| | |
| * | units: Add special Desktop Environment user related unitsBenjamin Berg2020-10-235-0/+43
| | | | | | | | | | | | This adds app.slice, session.slice and background.slice.
* | | NEWS,man: tweak the description of FixedRandomDelay=Zbigniew Jędrzejewski-Szmek2020-11-112-38/+33
| | | | | | | | | | | | | | | Explain why this is useful, but don't describe the implementation exactly, since we're likely to want to change details in the future.
* | | Merge pull request #17566 from poettering/v247-rc2-prepZbigniew Jędrzejewski-Szmek2020-11-1013-929/+2492
|\ \ \ | | | | | | | | V247 rc2 prep
| * | | man: properly list relative time event source API in man pageLennart Poettering2020-11-102-1/+5
| | | | | | | | | | | | | | | | | | | | The content was already there, but it wasn't listed in the header metadata. Fix that.
| * | | hwdb: updateLennart Poettering2020-11-109-895/+2443
| | | |
| * | | git-contrib: exclude -rc tagsLennart Poettering2020-11-101-1/+1
| | | |
| * | | update NEWSLennart Poettering2020-11-101-32/+43
|/ / /
* | | Merge pull request #17497 from anitazha/randomizeonceLennart Poettering2020-11-1010-6/+66
|\ \ \ | | | | | | | | timer: add new feature FixedRandomDelay=
| * | | timer: add new feature FixedRandomDelay=Kristijan Gjoshev2020-11-0510-2/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FixedRandomDelay=yes will use `siphash24(sd_id128_get_machine() || MANAGER_IS_SYSTEM(m) || getuid() || u->id)`, where || is concatenation, instead of a random number to choose a value between 0 and RandomizedDelaySec= as the timer delay. This essentially sets up a fixed, but seemingly random, offset for each timer iteration rather than having a random offset recalculated each time it fires. Closes #10355 Co-author: Anita Zhang <the.anitazha@gmail.com>
| * | | man: add <option> around default booleans in systemd.timerAnita Zhang2020-11-031-4/+4
| | | |
* | | | Add Logitech G403 Prodigy Gaming Mouse to hwdb. (#17537)onlybugreports2020-11-101-0/+4
| | | | | | | | | | | | | | | | This PR adds logitech G403 to the hwdb. Settings were obtained with 'sudo mouse-dpi-tool /dev/input/event3' and 'ratbagctl hollering-marmot info'.
* | | | Merge pull request #17555 from yuwata/ethtool-get-driverLennart Poettering2020-11-101-23/+80
|\ \ \ \ | | | | | | | | | | ethtool: make ethtool_get_driver() return -ENODATA if driver is an empty string.
| * | | | ethtool: make ethtool_get_driver() return -ENODATA if ioctl succeeds but ↵Yu Watanabe2020-11-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | driver name is empty Inspired by #17532.
| * | | | ethtool: add several assertionsYu Watanabe2020-11-101-23/+77
| | | | |
* | | | | journal: refuse skip parameter for sd_journal_next_skip() larger than INT_MAXYu Watanabe2020-11-102-3/+4
| |_|_|/ |/| | | | | | | | | | | Fixes #17502.
* | | | Merge pull request #17431 from msekletar/udev-link-update-raceZbigniew Jędrzejewski-Szmek2020-11-106-480/+1834
|\ \ \ \ | | | | | | | | | | udev: make algorithm that selects highest priority devlink less susceptible to race conditions
| * | | | udev: make algorithm that selects highest priority devlink less susceptible ↵Michal Sekletár2020-11-062-15/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to race conditions Previously it was very likely, when multiple contenders for the symlink appear in parallel, that algorithm would select wrong symlink (i.e. one with lower-priority). Now the algorithm is much more defensive and when we detect change in set of contenders for the symlink we reevaluate the selection. Same happens when new symlink replaces already existing symlink that points to different device node.
| * | | | basic/stat-util: make mtime check stricter and use entire timestampMichal Sekletár2020-11-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that st_mtime member of struct stat is defined as follows, #define st_mtime st_mtim.tv_sec Hence we omitted checking nanosecond part of the timestamp (struct timespec) and possibly would miss modifications that happened within the same second.
| * | | | test/sys-script.py: add missing DEVNAME entries to ueventsMartin Wilck2020-11-021-0/+7
| | | | |
| * | | | test/udev_test.pl: add "expected good" countMartin Wilck2020-11-021-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since 'test/udev-test.pl: count "good" results', we know how many checks succeeded. Add an "expected good" count to make that number more meaningful.
| * | | | test/udev-test.pl: suppress umount error message at startupMartin Wilck2020-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | umount emits an error message "no mount point specified" if the tmpfs isn't mounted yet, which is the normal case. Suppress that by redirecting stderr.
| * | | | test/sd-script.py: new helper script for udev testingMartin Wilck2020-11-021-0/+342
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Script for generating LOTS of SCSI disk and partition devices in the fake sysfs we use for udev testing. This script is supposed to be run after sys-script.py. It uses code from sys-script.py as template to generate additional SCSI disk data structures. Together with the "generator" code in udev-test.pl added in the previous patch, it allows to run udev tests with almost arbitrarily many devices, and thus to do performance scaling tests.
| * | | | test/udev-test.pl: generator for large list of block devicesMartin Wilck2020-11-021-1/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manually listing all devices in the test definition becomes cumbersome with lots of devices. Add a function that scans on all block devices in the test sysfs and generates a list of devices to test.
| * | | | test/udev-test.pl: add repeat countMartin Wilck2020-11-021-0/+5
| | | | | | | | | | | | | | | | | | | | for easier reproduction of sporadic test failures.