summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* man: fix typo in resolvectl(1) man pageRonan Pigott2019-08-061-1/+1
|
* unit: drop Before=sysinit.target from systemd-random-seed.serviceYu Watanabe2019-08-051-1/+1
| | | | | | | | | | | | | Follow-up for 26ded55709947d936634f1de0f43dcf88f594621. The commit says, > Note that with this change sysinit.target (and thus early boot) is NOT systematically delayed until the entropy pool is initialized, But the dependency was not dropped. This was found by David Seifert (@SoapGentoo).
* meson: create (empty) /etc/systemd/system during installationZbigniew Jędrzejewski-Szmek2019-08-061-4/+3
| | | | | | | | | We explicitly create /etc/systemd/user and other parts of the basic directory tree. I think we should create /etc/systemd/system too. (The alternative would be to not create those other directories too, but I think it's nice to have the basic directory structure in place after installation.) https://bugzilla.redhat.com/show_bug.cgi?id=1737362
* Merge pull request #12884 from mrc0mmand/numapolicy-testFrantisek Sumsal2019-08-056-3/+390
|\ | | | | test: introduce TEST-36-NUMAPOLICY
| * shared/exit-status: fix off-by-one in commentZbigniew Jędrzejewski-Szmek2019-08-051-2/+2
| |
| * shared/exit-status: fix lookupZbigniew Jędrzejewski-Szmek2019-08-052-1/+12
| | | | | | | | | | | | | | FLAGS_SET() is the wrong operator here, because we want to see if *any* bits are set. Add test. https://github.com/systemd/systemd/pull/12884#issuecomment-518238410
| * test: add a simple sanity check for systems without NUMA supportFrantisek Sumsal2019-08-051-170/+180
| |
| * test: give strace some time to initializeFrantisek Sumsal2019-08-051-0/+2
| | | | | | | | | | | | | | The `coproc` implementation seems to be a little bit different in older bash versions, so the `strace` is sometimes started AFTER `systemctl daemon-reload`, which causes unexpected fails. Let's help it a little by sleeping for a bit.
| * test: skip the test on systems without NUMA supportFrantisek Sumsal2019-08-051-1/+12
| |
| * test: make sure the strace process is indeed deadFrantisek Sumsal2019-08-052-1/+4
| | | | | | | | | | It may take a few moments for the strace process to properly terminate and write all logs to the backing storage
| * test: support MPOL_LOCAL matching in unpatched strace versionsFrantisek Sumsal2019-08-051-4/+8
| | | | | | | | | | | | The MPOL_LOCAL constant is not recognized in current strace versions. Let's match at least the numerical value of this constant until the strace patch is approved & merged.
| * test: replace `tail -f` with journal cursor which should be...Frantisek Sumsal2019-08-051-6/+7
| | | | | | | | more reliable
| * test: introduce TEST-36-NUMAPOLICYFrantisek Sumsal2019-08-053-0/+344
| |
| * test: allow overriding QEMU_OPTIONS from the outsideFrantisek Sumsal2019-08-051-0/+1
| |
* | Merge pull request #13258 from yuwata/login-revert-handle-ignore-assertionZbigniew Jędrzejewski-Szmek2019-08-052-3/+7
|\ \ | |/ |/| Revert "logind: remove unused check"
| * Revert "logind: remove unused check"Yu Watanabe2019-08-041-2/+6
| | | | | | | | | | | | This reverts commit f2330acda408a34451d5e15380fcdd225a672473. Fixes #13255.
| * login: drop space in empty lineYu Watanabe2019-08-041-1/+1
| |
* | udev: do not try to import properties on commented out linesYu Watanabe2019-08-041-2/+8
| | | | | | | | Fixes #13257.
* | Merge pull request #13256 from keszybz/minor-sd-network-cleanupYu Watanabe2019-08-043-39/+38
|\ \ | |/ |/| Minor sd-network cleanup and other coverity-inspired changes
| * pid1: replace asprintf() with strjoin()Zbigniew Jędrzejewski-Szmek2019-08-031-10/+5
| | | | | | | | | | It's nicer. And coverity doesn't need to complain about unchecked return value (CID#1401780).
| * sd-hwdb: use return value from ordered_hashmap_iterate()Zbigniew Jędrzejewski-Szmek2019-08-031-2/+1
| | | | | | | | Why not? Coverity CID#1402329.
| * libsystemd-network: make option_append() atomic and make the code a bit clearerZbigniew Jędrzejewski-Szmek2019-08-031-27/+32
|/ | | | | | | | | | | | | | Comparisons are done in the normal order (if (need > available), not if (available < need)), variables have reduced scope and are renamed for clarity. The only functional change is that if we return -ENAMETOOLONG, we do that without modifying the options[] array. I also added an explanatory comment. The use of one offset to point into three buffers is not obvious. Coverity (in CID#1402354) says that sname might be accessed at bad offset, but I cannot see this happening. We check for available space before writing anything.
* unit: make logind can access ESPYu Watanabe2019-08-031-0/+1
| | | | | | | Fixes the following error: ``` logind[601]: Failed to open file system "/dev/block/259:1": Operation not permitted ```
* Merge pull request #13253 from yuwata/udev-update-logsZbigniew Jędrzejewski-Szmek2019-08-032-24/+43
|\ | | | | udev: update log messages
| * udev-node: fix misleading log messagesYu Watanabe2019-08-031-5/+15
| | | | | | | | | | | | | | | | This fixes the following logs: ``` drm_dp_aux2: Handling device node '/dev/drm_dp_aux2', devnum=c238:2, mode=037777777777, uid=4294967295, gid=4294967295 drm_dp_aux2: Preserve permissions of /dev/drm_dp_aux2, 037777777777, uid=4294967295, gid=4294967295 ```
| * udev-event: log device name on spawning commandsYu Watanabe2019-08-031-19/+28
|/
* time-util: improve detection of synchronized clockMiroslav Lichvar2019-08-011-1/+4
| | | | | | | | | | Instead of checking for the STA_UNSYNC flag in the timex status, check the maximum error. It is updated by the kernel, increasing at a rate of 500 ppm. The maximum value is 16 seconds, which triggers the STA_UNSYNC flag. This follows timedatex and allows timedated to correctly detect a clock synchronized by chronyd when configured to not synchronize the RTC.
* Merge pull request #13243 from keszybz/two-cryptsetup-quickfixesZbigniew Jędrzejewski-Szmek2019-08-011-11/+15
|\ | | | | Two cryptsetup quickfixes
| * cryptsetup: don't assert on variable which is optionalZbigniew Jędrzejewski-Szmek2019-08-011-2/+6
| | | | | | | | | | | | | | https://github.com/systemd/systemd/commit/50d2eba27b9bfc77ef6b40e5721713846815418b#commitcomment-34519739 In add_crypttab_devices() split_keyspec is called on the keyfile argument, which may be NULL.
| * cryptsetup: use unabbrieviated variable namesZbigniew Jędrzejewski-Szmek2019-08-011-9/+9
| | | | | | | | | | Now that "ret_" has been added to the output variables, we can name the internal variables without artificial abbrevs.
* | Merge pull request #13225 from ↵Frantisek Sumsal2019-07-311-2/+5
|\ \ | | | | | | | | | | | | mrc0mmand/networkd-test-replace-adduser-with-useradd test: use `useradd` instead of `adduser`
| * | test: print an error when networkctl returns an unexpected ECFrantisek Sumsal2019-07-311-1/+3
| | | | | | | | | | | | | | | | | | If networkctl crashes, like recently with SIGABRT, it returns absolutely no output, which may be confusing during debugging. Help it a little with a short informative message.
| * | test: use `useradd` instead of `adduser`Frantisek Sumsal2019-07-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | `adduser` is in certain cases a standalone package which provides a better user experience. In other cases it's just a symlink to `useradd`. And some distributions don't have `adduser` at all, like Arch Linux. Let's use the `useradd` binary instead, which should provide the same functionality everywhere.
* | | analyze-security: move assert above first use of the variable (#13238)Jan Synacek2019-07-311-1/+2
| |/ |/|
* | Merge pull request #13239 from poettering/coverity-fixesZbigniew Jędrzejewski-Szmek2019-07-314-12/+19
|\ \ | | | | | | four coverity fixes
| * | job: fix coverity issueLennart Poettering2019-07-311-2/+5
| | | | | | | | | | | | Fixes coverity issue 1403550
| * | test-chase-symlinks: fix coverity issueLennart Poettering2019-07-311-1/+5
| | | | | | | | | | | | Fixes coverity issue 1403708
| * | unit-file: fix coverity issueLennart Poettering2019-07-311-1/+1
| | | | | | | | | | | | Fixes coverity issue 1403820
| * | cryptsetup-generator: fix coverity issueLennart Poettering2019-07-311-8/+8
| | | | | | | | | | | | Fixes coverity issue 1403772
* | | man: reword DeviceAllow= documentationLennart Poettering2019-07-311-31/+26
|/ / | | | | | | | | | | | | | | Don't claim we'd use cgroup.deny much. It's just a way to remove stuff from device lists, which is nothing we allow users to explicitly configure. Also, extend documentation when wildcards may be used, and when not.
* | NEWS: Remove DisableControllers from v243Chris Down2019-07-311-4/+0
| | | | | | | | We already released this in v240 and had a NEWS entry then.
* | test-execute: skip test_exec_systemcallfilter_system under ASanFrantisek Sumsal2019-07-311-1/+6
| | | | | | | | | | | | | | This particular test case keeps intermittently failing due to crashing LSan when running under clang+ASan. Generally, sanitizers don't like seccomp filters, so the best option here is to just switch this test off for this scenario.
* | analyze: declare dump_exit_status outside of HAVE_SECCOMP blockMike Gilbert2019-07-311-46/+46
| | | | | | | | | | Fixes: 76ed04d936f757763c32db5dbaaebd8b13785d7b Closes: https://github.com/systemd/systemd/issues/13230
* | po: update Polish translationPiotr Drąg2019-07-301-10/+102
|/
* boot: fix build with gnu-efi older than 3.0.5v243-rc1Yu Watanabe2019-07-303-0/+57
|
* Merge pull request #13119 from keszybz/unit-loading-2Lennart Poettering2019-07-3025-433/+962
|\ | | | | Rework unit loading to take into account all aliases
| * test-unit-file: allow printing of information about specific unitsZbigniew Jędrzejewski-Szmek2019-07-301-2/+22
| | | | | | | | Useful for manual debugging.
| * pid1: drop unit caches only based on mtimeZbigniew Jędrzejewski-Szmek2019-07-308-16/+83
| | | | | | | | | | | | | | | | | | v2: - do not watch mtime of transient and generated dirs We'd reload the map after every transient unit we created, which we don't need to do, since we create those units ourselves and know their fragment path.
| * analyze: add "unit-files" to dump the unit fragment mapZbigniew Jędrzejewski-Szmek2019-07-301-0/+50
| | | | | | | | | | I'm not convinced that this is useful enough to be included... But it is certainly nice when debugging.
| * pid1: use a cache for all unit aliasesZbigniew Jędrzejewski-Szmek2019-07-309-378/+520
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reworks how we load units from disk. Instead of chasing symlinks every time we are asked to load a unit by name, we slurp all symlinks from disk and build two hashmaps: 1. from unit name to either alias target, or fragment on disk (if an alias, we put just the target name in the hashmap, if a fragment we put an absolute path, so we can distinguish both). 2. from a unit name to all aliases Reading all this data can be pretty costly (40 ms) on my machine, so we keep it around for reuse. The advantage is that we can reliably know what all the aliases of a given unit are. This means we can reliably load dropins under all names. This fixes #11972.