summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* shared/virt: update link to vmware articlekeszybz-patch-1Zbigniew Jędrzejewski-Szmek2019-08-301-3/+2
| | | As suggested in https://github.com/systemd/systemd/pull/13430#issuecomment-526551085.
* Merge pull request #13384 from yuwata/core-runtime-directory-preserveZbigniew Jędrzejewski-Szmek2019-08-309-12/+95
|\ | | | | core: make RuntimeDirectoryPreserve= works with non-service units
| * test: add tests for RuntimeDirectoryPreserve=yesYu Watanabe2019-08-233-0/+64
| |
| * core: make RuntimeDirectoryPreserve= works with non-service unitsYu Watanabe2019-08-236-8/+22
| |
| * core: introduce unit_destroy_runtime_directory()Yu Watanabe2019-08-223-4/+9
| | | | | | | | | | Currently `unit_will_restart()` can return true only when the unit is service. Hence, should not change anything.
* | Add System76 touchpad toggle supportJeremy Soller2019-08-301-0/+8
| |
* | Merge pull request #13433 from keszybz/new-security-mailing-listZbigniew Jędrzejewski-Szmek2019-08-303-2/+13
|\ \ | | | | | | docs: new systemd-security mailing list
| * | docs: create new SECURITY.md pageZbigniew Jędrzejewski-Szmek2019-08-302-2/+9
| | | | | | | | | | | | | | | github has special support for that name: https://help.github.com/en/articles/adding-a-security-policy-to-your-repository.
| * | docs: new systemd-security mailing listZbigniew Jędrzejewski-Szmek2019-08-302-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the past, we asked people to open a security bug on one of the "big" distros. This worked OK as far as getting bugs reported and notifying some upstream developers went. But we always had trouble getting information to all the appropriate parties, because each time a bug was reported, a big thread was created, with a growing CC list. People who were not CCed early enough were missing some information, etc. To clean this up, we decided to create a private mailing list. The natural place would be freedesktop.org, but unfortunately the request to create a mailing list wasn't handled (https://gitlab.freedesktop.org/freedesktop/freedesktop/issues/134). And even if it was, at this point, if there was ever another administrative issue, it seems likely it could take months to resolve. So instead, we asked for a list to be created on the redhat mailservers. Please consider the previous security issue reporting mechanisms rescinded, and send any senstive bugs to systemd-security@redhat.com.
* | | basic/virt: Fix current virtualbox detectionJan Losinski2019-08-301-9/+10
|/ / | | | | | | | | | | | | | | | | | | In a current VirtualBox installation the board_vendor is set to "Oracle Corporation". So we need to add this to the dmi_vendor_table for a relieable detection. This fixes #13429 Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
* | man: install runlevel.8 unconditionallyJan Chren2019-08-291-2/+1
| | | | | | | | | | | | | | systemctl supports runlevel invocation name without utmp. The runlevel symlink is installed unconditionally. So it's reasonable to install runlevel manpage with it as well. Signed-off-by: Jan Chren (rindeal) <dev.rindeal@gmail.com>
* | meson: fix incomplete option descriptionsJan Chren2019-08-291-2/+2
| | | | | | Signed-off-by: Jan Chren (rindeal) <dev.rindeal@gmail.com>
* | Merge pull request #13244 from keszybz/allow-dots-in-usernamesYu Watanabe2019-08-2910-35/+146
|\ \ | | | | | | Allow dots in usernames
| * | shared/user-util: emit a warning on names with dotsZbigniew Jędrzejewski-Szmek2019-08-281-7/+20
| | |
| * | shared/user-util: allow usernames with dots in specific fieldsZbigniew Jędrzejewski-Szmek2019-08-197-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | People do have usernames with dots, and it makes them very unhappy that systemd doesn't like their that. It seems that there is no actual problem with allowing dots in the username. In particular chown declares ":" as the official separator, and internally in systemd we never rely on "." as the seperator between user and group (nor do we call chown directly). Using dots in the name is probably not a very good idea, but we don't need to care. Debian tools (adduser) do not allow users with dots to be created. This patch allows *existing* names with dots to be used in User, Group, SupplementaryGroups, SocketUser, SocketGroup fields, both in unit files and on the command line. DynamicUsers and sysusers still follow the strict policy. user@.service and tmpfiles already allowed arbitrary user names, and this remains unchanged. Fixes #12754.
| * | shared/user-util: add compat forms of user name checking functionsZbigniew Jędrzejewski-Szmek2019-08-193-15/+113
| | | | | | | | | | | | | | | | | | New functions are called valid_user_group_name_compat() and valid_user_group_name_or_id_compat() and accept dots in the user or group name. No functional change except the tests.
| * | core: remove one {}Zbigniew Jędrzejewski-Szmek2019-08-191-3/+3
| | |
* | | hwdb: Add HP laptop accelerometer location quirkHans de Goede2019-08-281-1/+4
| | | | | | | | | | | | | | | | | | | | | Add another HP laptop to the list of HP laptops with their accelerometer in the base. While at it also fixup the indentation of a neighboring quirk.
* | | zsh: update journalctl completionsRonan Pigott2019-08-281-6/+12
| | |
* | | Merge pull request #13412 from yuwata/network-check-and-warn-moreYu Watanabe2019-08-283-5/+51
|\ \ \ | | | | | | | | network: check more static IPv6 configurations and add more warnings
| * | | network: add more warnings in network_verify()Yu Watanabe2019-08-271-0/+20
| | | |
| * | | network: enable ipv6 when the network has static ipv6 configurationsYu Watanabe2019-08-273-5/+31
| | | |
* | | | kernel-install: do not require non-empty kernel cmdlineZbigniew Jędrzejewski-Szmek2019-08-271-10/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When booting with Fedora-Server-dvd-x86_64-30-20190411.n.0.iso, /proc/cmdline is empty (libvirt, qemu host with bios, not sure if that matters), after installation to disk, anaconda would "crash" in kernel-core %posttrans, after calling kernel-install, because dracut would fail with > Could not determine the kernel command line parameters. > Please specify the kernel command line in /etc/kernel/cmdline! I guess it's legitimate, even if unusual, to have no cmdline parameters. Two changes are done in this patch: 1. do not fail if the cmdline is empty. 2. if /usr/lib/kernel/cmdline or /etc/kernel/cmdline are present, but empty, ignore /proc/cmdline. If there's explicit configuration to have empty cmdline, don't ignore it. The same change was done in dracut: https://github.com/dracutdevs/dracut/pull/561.
* | | | manager: put bin before sbin for user instancesZbigniew Jędrzejewski-Szmek2019-08-273-18/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Traditionally, user logins had a $PATH in which /bin was before /sbin, while root logins had a $PATH with /sbin first. This allows the tricks that consolehelper is doing to work. But even if we ignore consolehelper, having the path in this order might have been used by admins for other purposes, and keeping the order in user sessions will make it easier the adoption of systemd user sessions a bit easier. Fixes #733. https://bugzilla.redhat.com/show_bug.cgi?id=1744059 OOM handling in manager_default_environment wasn't really correct. Now the (theorertical) malloc failure in strv_new() is handled. Please note that this has no effect on: - systems with merged /bin-/sbin (e.g. arch) - when there are no binaries that differ between the two locations. E.g. on my F30 laptop there is exactly one program that is affected: /usr/bin/setup -> consolehelper. There is less and less stuff that relies on consolehelper, but there's still some. So for "clean" systems this makes no difference, but helps with legacy setups. $ dnf repoquery --releasever=31 --qf %{name} --whatrequires usermode anaconda-live audit-viewer beesu chkrootkit driftnet drobo-utils-gui hddtemp mate-system-log mock pure-ftpd setuptool subscription-manager system-config-httpd system-config-rootpassword system-switch-java system-switch-mail usermode-gtk vpnc-consoleuser wifi-radar xawtv
* | | | core: stop removing non-existent and duplicate lookup pathsZbigniew Jędrzejewski-Szmek2019-08-274-74/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we would iterate over the lookup paths for each unit, making the list as short as possible was important for performance. With the current cache, it doesn't matter much. Two classes of paths were being removed: - paths which don't exist in the filesystem - paths which symlink to a path earlier in the search list Both of those points cause problems with the caching code: - if a user creates a directory that didn't exist before and puts units there, now we will notice the new mtime an properly load the unit. When the path was removed from list, we wouldn't. - we now properly detect whether a unit path is on the path or not. Before, if e.g. /lib/systemd/system, /usr/lib/systemd/systemd were both on the path, and /lib was a symlink to /usr/lib, the second directory would be pruned from the path. Then, the code would think that a symlink /etc/systemd/system/foo.service→/lib/systemd/system/foo.service is an alias, but /etc/systemd/system/foo.service→/usr/lib/systemd/system/foo.service would be considered a link (in the systemctl link sense). Removing the pruning has a slight negative performance impact in case of usr-merge systems which have systemd compiled with non-usr-merge paths. Non-usr-merge systems are deprecated, and this impact should be very small, so I think it's OK. If it turns out to be an issue, the loop in function that builds the cache could be improved to skip over "duplicate" directories with same logic that the cache pruning did before. I didn't want to add this, becuase it complicates the code to improve a corner case. Fixes #13272.
* | | | Merge pull request #13382 from keszybz/network-ipv6-enableYu Watanabe2019-08-287-71/+16
|\ \ \ \ | |/ / / |/| | | Network ipv6 enable
| * | | network: drop all checks of ipv6_disabled sysctlZbigniew Jędrzejewski-Szmek2019-08-277-64/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *We* control the sysctl setting. If the user configured IPv6, then we apply the settings, and just make sure that at some point during the configuration the sysctl is disabled (i.e. ipv6 enabled) if we have IPv6 configured. Replaces #13283.
| * | | network: Do not disable IPv6 by writing to sysctlSusant Sahani2019-08-221-12/+13
| | | | | | | | | | | | | | | | Only enable is and do not disable IPv6
* | | | Merge pull request #13402 from jwrdegoede/accel-quirksZbigniew Jędrzejewski-Szmek2019-08-271-0/+28
|\ \ \ \ | | | | | | | | | | hwdb: Accel quirks for 2 devices
| * | | | hwdb: Add accel. mount matrix and location for the Trekstor Primebook C11BHans de Goede2019-08-251-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | The Trekstor Primebook C11B 2-in-1 has 2 accelerometers. Add mount-matrix and location info for both to 60-sensor.hwdb.
| * | | | hwdb: Add accel location quirk for the GPD winHans de Goede2019-08-251-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The acceleromater in the GPD win is in the base, mark it as such so that iio-sensor-proxy does not try to use it for display rotation. Note as mentioned in the added comment the DMI strings are unfortunately somewhat generic, but the combination of using all DMI strings including the BIOS build data + the sensor modalias should be unique enough.
* | | | | Add accel mount matrix for Medion Akoya E2293VD-Lycos2019-08-261-0/+4
| | | | | | | | | | | | | | | Add ACCEL_MOUNT_MATRIX for Medion Akoya E2293 MD61130
* | | | | test/TEST-10-ISSUE-2467: remove testsuite.service TimeoutStartSecDan Streetman2019-08-261-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test runs under qemu, which may run on some testbeds without acceleration; in those cases, a 10s timeout is frequently too short. Simply removing the timeout to allow the default timeoutsec should be enough time for the test to finish, even on very slow testbeds.
* | | | | test/TEST-18-FAILUREACTION: fix typo to actually run firstphase actionDan Streetman2019-08-261-1/+1
|/ / / / | | | | | | | | | | | | | | | | The if test for running the firstphase of the test should be negated so the firstphase is actually executed.
* | | | test/test-functions: use truncate instead of dd to create testbed imageDan Streetman2019-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids unnecessary noise in the stderr logs which dd always produces, such as: 0+0 records in 0+0 records out 0 bytes copied, 0.000155284 s, 0.0 kB/s Using truncate should not result in any functional change; the image will still be created as a sparse file of the size specified.
* | | | test/test-functions: use binaries from $BUILD_DIR or installed systemDan Streetman2019-08-251-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Ubuntu CI, we test binaries from the installed system, not from $BUILD_DIR, so use the appropriate binary. Most of the calls to the binaries are part of checking/processing asan-built binaries, and so did not apply to Ubuntu CI, except for generating noise in the stderr log like: objdump: '/tmp/autopkgtest.83yGoI/build.fHB/src/test/TEST-01-BASIC/systemd-journald': No such file However this also applies to the call to systemd-nspawn, which the debian upstream test wrapper was sed-adjusting to use the installed binary instead of the binary in $BUILD_DIR. This commit allows removing that sed processing of the test-functions file during Ubuntu CI test.
* | | | semaphore: switch back to the master branchEvgeny Vereshchagin2019-08-241-1/+1
| | | |
* | | | Fix typo in sd_event_set_watchdog manpage (#13393)Arian van Putten2019-08-241-1/+1
| |_|/ |/| |
* | | NEWS: update contributors listv243-rc2Zbigniew Jędrzejewski-Szmek2019-08-221-24/+28
| | |
* | | hwdb: update for v243-rc2Zbigniew Jędrzejewski-Szmek2019-08-2210-5054/+7608
| | | | | | | | | | | | | | | Diff on the hwdb/*.hwdb files shows that again, this is only additions and minor corrections.
* | | journalctl: Make journalctl --user-unit= match on _SYSTEMD_USER_SLICEArian van Putten2019-08-223-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | journalctl --unit= already did this, and allows you to tail all the logs for a certain slice easily. It seemed only natural to make --user-unit behave in a similar way. The _SYSTEMD_USER_SLICE field was not documented as being added by journald, so I have added that to the documentation too. Furthermore, I have documented the existing behaviour of --unit= and the new behaviour of --user-unit= The behaviour was actually not documented before, so I am also OK with removing the match for the --unit= command instead. The user would then have to manually provide _SYSTEMD_SLICE= filter to journalctl in both cases. Both options work for me.
* | | core: TAKE_PTR in timer_add_one_calendar_specAnita Zhang2019-08-221-1/+1
| | | | | | | | | | | | | | | | | | Introduced in d00a52c Fixes #13373
* | | hwdb: add sensor location for HP ProBook4535sHans de Goede2019-08-221-2/+7
| | | | | | | | | | | | https://bugzilla.redhat.com/show_bug.cgi?id=1717712
* | | journald: slightly bump OOM adjust for journald (#13366)Lennart Poettering2019-08-224-3/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | If logging disappears issues are hard to debug, hence let's give journald a slight edge over other services when the OOM killer hits. Here are the special adjustments we now make: systemd-coredump@.service.in OOMScoreAdjust=500 systemd-journald.service.in OOMScoreAdjust=-250 systemd-udevd.service.in OOMScoreAdjust=-1000 (i.e. the coredump processing is made more likely to be killed on OOM, and udevd and journald are less likely to be killed)
* | Merge pull request #13365 from keszybz/fix-commits-from-pr-13246Zbigniew Jędrzejewski-Szmek2019-08-225-7/+11
|\ \ | | | | | | Fix commits from #13246
| * | id128: actually support --prettyZbigniew Jędrzejewski-Szmek2019-08-201-0/+1
| | | | | | | | | | | | We must be all lazy, at least I know I always used -p ;).
| * | test-journal-flush: provide at least *some* logsZbigniew Jędrzejewski-Szmek2019-08-201-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ubunut autopkgtest fails with: 405/501 test-journal-flush FAIL 0.74 s (killed by signal 6 SIGABRT) --- command --- SYSTEMD_KBD_MODEL_MAP='/tmp/autopkgtest.BgjJJv/build.yAM/systemd/src/locale/kbd-model-map' SYSTEMD_LANGUAGE_FALLBACK_MAP='/tmp/autopkgtest.BgjJJv/build.yAM/systemd/src/locale/language-fallback-map' PATH='/tmp/autopkgtest.BgjJJv/build.yAM/systemd/build-deb:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games' /tmp/autopkgtest.BgjJJv/build.yAM/systemd/build-deb/test-journal-flush --- stderr --- Assertion 'r >= 0' failed at src/journal/test-journal-flush.c:48, function main(). Aborting. ------- It's hard to say what is going on here without any error messages whatsoever. The test goes into deep details of journal file handling, so it needs to also do logging on its own.
| * | test-event: stop debugging spewZbigniew Jędrzejewski-Szmek2019-08-201-2/+2
| | | | | | | | | | | | | | | Ubuntu autopkgtests print output from all tests, and test-event produces a lot of it. Let's cut it down to reasonable size.
| * | basic/build.h: fix typoZbigniew Jędrzejewski-Szmek2019-08-202-3/+3
| |/
* | Add Chuwi Hi10 to 60-sensor.hwdb (#13351)Albrecht Lohofener2019-08-221-0/+4
| |