summaryrefslogtreecommitdiffstats
path: root/test/unit-.service.d (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-11-28shared/ask-password-api: modify keyctl break valueKevin Kuehler1-1/+1
We can break if KEYCTL_READ return value is equal to our buffer size. From keyctl(2): On a successful return, the return value is always the total size of the payload data. To determine whether the buffer was of sufficient size, check to see that the return value is less than or equal to the value supplied in arg4.
2019-11-27systemctl: fix indentation of cgroup treeLennart Poettering1-1/+1
Follow-up for 0d588deae21234c9a9d64d9eddbcbe7da5c9a39d. In that commit the output got moved a 2 chars to the right, hence make sure to also shift the cgroup tree to the right, so that it gets properly aligned under the cgroup path again.
2019-11-27cryptsetup: reduce the chance that we will be OOM killedMichal Sekletár1-0/+6
cryptsetup introduced optional locking scheme that should serialize unlocking keyslots which use memory hard key derivation function (argon2). Using the serialization should prevent OOM situation in early boot while unlocking encrypted volumes.
2019-11-27core: prefer non-@ syntax for ExecStart=Lennart Poettering1-8/+14
If the zeroth and first argv[] element on the same we don't need to generate the "@" syntax for ExecStart= and friends.
2019-11-27core: write out correct field name when creating transient service unitsLennart Poettering1-1/+1
2019-11-27man/systemd.link: Add missing verb *be*Paul Menzel1-1/+1
2019-11-26udevd: don't use monitor after manager_exit()Martin Wilck1-4/+6
If udevd receives an exit signal, it releases its reference on the udev monitor in manager_exit(). If at this time a worker is hanging, and if the event timeout for this worker expires before udevd exits, udevd crashes in on_sigchld()->udev_monitor_send_device(), because the monitor has already been freed. Fix this by testing the validity of manager->monitor in on_sigchld().
2019-11-26Revert "udevd: fix crash when workers time out after exit is signal caught"Martin Wilck1-2/+2
This reverts commit 5db454b8031c58a743cc4ee3d5d1dd01dcff17e8. See https://github.com/systemd/systemd/issues/14128
2019-11-26test-fileio: cast EOF to (char) before comparing with char explicitlyLennart Poettering1-5/+10
EOF is defined to -1, hence on platforms that have "char" unsigned we can't compare it as-is, except if we accept an implicit cast. let's make it an explicit cast, acknowledging the issue. Fixes: #14118
2019-11-26udev: tiny update for log messagesYu Watanabe2-3/+3
2019-11-26network: also assume Table=local for ipv6 route if Type=local, broadcast, ↵Yu Watanabe2-16/+21
anycast or nat (#14148) Also, if Type=multicast and scope is not set, then assume Scope=link. Fixes #14122.
2019-11-26core.timer: fix "systemd-analyze dump" and docs syntax inconsistencies wrt ↵Mike Kazantsev2-2/+2
OnTimezoneChange=
2019-11-25process-util: shortcut get_process_state() for our own processLennart Poettering1-1/+5
2019-11-25process-util: shortcut get_process_comm() for our own processLennart Poettering1-9/+20
Let's bypass /proc if we can.
2019-11-25process-util: tweak get_process_cwd() when calling for own processLennart Poettering1-1/+5
Let's bypass /proc if we can.
2019-11-25man: refer to systemd.syntax(7) from systemd.nspawn(5)Zbigniew Jędrzejewski-Szmek2-48/+24
systemd.nspawn(5) contained a partial repeat of the stuff that is now in the dedicated man page. Let's just refer to that. While at it, do s/searched/searched for/ where appropriate and reword some sentences for brevity.
2019-11-25fuzz-unit-file: add new items to the corpusZbigniew Jędrzejewski-Szmek1-0/+2
2019-11-25pid1: fix the names of AllowedCPUs= and AllowedMemoryNodes=Zbigniew Jędrzejewski-Szmek3-6/+6
The original PR was submitted with CPUSetCpus and CPUSetMems, which was later changed to AllowedCPUs and AllowedMemmoryNodes everywhere (including the parser used by systemd-run), but not in the parser for unit files. Since we already released -rc1, let's keep support for the old names. I think we can remove it in a release or two if anyone remembers to do that. Fixes #14126. Follow-up for 047f5d63d7a1ab75073f8485e2f9b550d25b0772.
2019-11-25test-proc-cmdline: disable EFI-dependent tests when EFI is disabledMike Gilbert1-0/+2
Fixes: https://github.com/systemd/systemd/issues/14116
2019-11-25hwdb: add bluetooth entry for Logitech MX Anywhere 2SHaochen Tong1-1/+5
2019-11-25man: restores ConditionVirtualization documentation (#14138)Steve Ramage1-1/+1
Resolves #14137. Error introduced in 337b733449924860eb71190e6eff95729909ede6.
2019-11-24man: document all pager variables for systemctl and systemdZbigniew Jędrzejewski-Szmek2-2/+7
In those two pages, we need to include individual entries with xi:include to merge the list less-variables.xml with the other entries, which is obviously error prone. All variables are supported in both tools so add them.
2019-11-24basic/terminal-util: add support for $NO_COLORZbigniew Jędrzejewski-Szmek2-0/+19
See inline comments. Fixes #13752.
2019-11-24travis: add missing closing quote signYu Watanabe1-1/+1
Fixes #14127.
2019-11-24hwdb: add accel sensor entry for Jumper EZpad GoJ. Xing1-0/+4
This commit fix the accelerometer orientation on the Jumper EZpad Go tablet. The tablet does not have its product name filled in dmi table, make the match string a bit generic. Here we assume that the use of a KIOX000A + bios-vendor + chassis-type combo is unique enough to match the currently available product in Jumper's x86 tablet series. For future reference, as in 2019, the tablet has a dmialias of: dmi:bvnAmericanMegatrendsInc.:bvrZB-BI-11.6-SF133AR200-059-J \ :bd05/21/2019:svnjumper:pnEZpad:pvrTobefilledbyO.E.M.:rvnTob \ efilledbyO.E.M.:rnTobefilledbyO.E.M.:rvrTobefilledbyO.E.M.:c \ vnTobefilledbyO.E.M.:ct31:cvrTobefilledbyO.E.M.:
2019-11-22meson: bump version numbers for v244v244-rc1Zbigniew Jędrzejewski-Szmek1-3/+3
2019-11-22systemd-tmpfiles: don't install timer when service isn't installed eitherPascal de Bruijn1-1/+1
Fixes: systemd-tmpfiles-clean.timer: Refusing to start, unit systemd-tmpfiles-clean.service to trigger not loaded.
2019-11-22core/service: downgrade "scheduling restart" message to debugZbigniew Jędrzejewski-Szmek1-5/+5
I see we log this during every boot, even though it is a routine expected event: Nov 12 14:50:01 krowka systemd[1]: systemd-journald.service: Service has no hold-off time (RestartSec=0), scheduling restart. (and for other services too). Let's downgrade this to debug level. https://bugzilla.redhat.com/show_bug.cgi?id=1614871
2019-11-22varlink: fix enablement of varlink timeout event sourceLennart Poettering1-2/+5
2019-11-22varlink: drop too much whitespaceLennart Poettering1-3/+0
2019-11-22varlink: port varlink code over to use getdtablesize() for sizing number of ↵Lennart Poettering1-4/+5
concurrent connections Use the official glibc API for determining this parameter. In most other cases in our tree it's better to go directly for RLIMIT_NOFILE since it's semantically what we want, but for this case it appears more appropriate to use the friendlier, shorter, explicit API.
2019-11-22varlink: move connection fds > fd2Lennart Poettering1-0/+4
We want to use this code in NSS modules, and we never know the execution environment we are run in there, hence let's move our fds up to ensure we won't step into dangerous fd territory. This is similar to how we already do it in sd-bus for client connection fds.
2019-11-22varlink: fix support for more/continues method callsLennart Poettering2-17/+84
2019-11-22machine: fold machine_stop_scope() into machine_stop()Zbigniew Jędrzejewski-Szmek1-21/+12
No functional change.
2019-11-22machined: simplify reference handling for unitsZbigniew Jędrzejewski-Szmek1-14/+17
Before, we'd unref from machine_stop_unit, still keeping the unit name around, and only forget the name later, when garbage collecting. If we didn't call manager_stop_unit(), then we wouldn't do the unref. Let's unref at the same point where we do garbage collection, so that it is always true that iff we have the name generated with AddRef=1, then have a reference to the unit, and as soon as we forget the name, we drop the reference. This should fix the issue when repeated systemd-nspawn --register=yes fails with "scope already exists" error. Incidentally, this fixes an error in the code path where r was used instead of q.
2019-11-22machine: simplify machine_start_scope()Zbigniew Jędrzejewski-Szmek1-59/+38
It is called from only one place, and we can make things simpler by calculating the necessary stuff directly in the function. No functional change.
2019-11-22machine: make machine_start_scope() staticZbigniew Jędrzejewski-Szmek3-96/+95
Having this function which is called only from one place in a separate file makes the code harder to follow. In preparation for subsequent changes, let's make it static.
2019-11-22nspawn: log syscalls we cannot add at debug levelZbigniew Jędrzejewski-Szmek1-4/+3
Without out at least a debug log line it is hard to figure out when something goes wrong. Reduce scope of a variable while at it.
2019-11-22man: use <constant> for capability names in nspawn pageZbigniew Jędrzejewski-Szmek1-11/+18
2019-11-22nspawn: dump capability list with --capabilities=helpZbigniew Jędrzejewski-Szmek2-30/+56
2019-11-22NEWS: add contributors for v244Zbigniew Jędrzejewski-Szmek1-1/+25
2019-11-22mailmap: updateZbigniew Jędrzejewski-Szmek1-0/+3
2019-11-22hwdb: Dell venue 10 pro 5055 accel mount matrix (#14104)ksbex1-0/+4
2019-11-21man: sort options without "=" in the directives indexZbigniew Jędrzejewski-Szmek1-0/+3
Some options would appear twice in the index, e.g. --collect= and --collect. Some man pages use one form, some the other, and the argument might be mandatory for some commands but not others. Anyway, let's display them as one entry, to reduce the total number of items listed.
2019-11-21man: fix a few bogus entries in directives indexZbigniew Jędrzejewski-Szmek13-23/+27
When wrong element types are used, directives are sometimes placed in the wrong section. Also, strip part of text starting with "'", which is used in a few places and which is displayed improperly in the index.
2019-11-21man: change noindex="true" to index="false"Zbigniew Jędrzejewski-Szmek17-44/+44
We nowadays prefer positive options over negative.
2019-11-21man: use <command> not <option> for commands in resolvectl(1)Zbigniew Jędrzejewski-Szmek1-39/+45
2019-11-21bootctl: make 'random-seed' handle inability to write system token EFI ↵Lennart Poettering3-5/+35
variable gracefully Apparently some firmwares don't allow us to write this token, and refuse it with EINVAL. We should normally consider that a fatal error, but not really in the case of "bootctl random-seed" when called from the systemd-boot-system-token.service since it's called as "best effort" service after boot on various systems, and hence we shouldn't fail loudly. Similar, when we cannot find the ESP don't fail either, since there are systems (arch install ISOs) that carry a boot loader capable of the random seed logic but don't mount it after boot. Fixes: #13603
2019-11-21resolve: rename define fixing a typoZbigniew Jędrzejewski-Szmek1-2/+2
2019-11-20update TODOLennart Poettering1-4/+0