summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* mkosi: Add a postinstall script to setup .gdbinit.Daan De Meyer2021-01-301-0/+5
| | | | | | | systemd is compiled with relative source file paths so we need to issue a directory command to make sure gdb can find systemd's source files. Let's put this in a .gdbinit file so it's executed automatically when we run gdb.
* Merge pull request #18407 from keszybz/resolved-reference-counting-againDaan De Meyer2021-01-293-33/+32
|\ | | | | Use reference counting for DnsQueryCandidate
| * resolved: use reference counting for DnsQueryCandidate objectsZbigniew Jędrzejewski-Szmek2021-01-293-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | Follow-up for 4ea8b443de. The logic that manages DnsQueryCandidate is rather complicated: a calls to dns_query_complete() that wants to destroy a DnsQueryCandidate can be nested inside a deep chain of calls. Using reference counts seems like the simplest approach. DnsSearchDomain already uses reference counting. This patch effectively brings dns_query_candidate_go() to the state before 4ea8b443de, but wraps the iteration over DnsQueryCandidate.transactions in dns_query_candidate_ref+dns_query_candidate_unref.
| * resolved: minor cleanupsZbigniew Jędrzejewski-Szmek2021-01-292-12/+11
| |
* | Merge pull request #18399 from keszybz/man-proofreadingLennart Poettering2021-01-2920-165/+190
|\ \ | | | | | | Various man page cleanups
| * | man: use ellipses for ranges in range descriptionsZbigniew Jędrzejewski-Szmek2021-01-298-62/+67
| | | | | | | | | | | | … and in few other places ;)
| * | man: various typos and other small issuesZbigniew Jędrzejewski-Szmek2021-01-2911-83/+78
| | | | | | | | | | | | Fixes #18397.
| * | man: rework description of --timestampZbigniew Jędrzejewski-Szmek2021-01-281-7/+32
| | | | | | | | | | | | Existing markup would be rendered improperly by groff. For #18397.
| * | docs: add missing plural in title referenceZbigniew Jędrzejewski-Szmek2021-01-281-2/+2
| | |
| * | meson: fix indentation in one spotZbigniew Jędrzejewski-Szmek2021-01-281-12/+12
| |/
* | Merge pull request #18408 from poettering/import-fixlets3Lennart Poettering2021-01-299-71/+92
|\ \ | | | | | | 5 more small fixes to importd
| * | import: properly verify roothash_signature + verity download, tooLennart Poettering2021-01-294-17/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | Follow-up for 133b34f69a72dc90d4e336837d699245390c9f50 where this was forgotten. While we are at it, bring the parameters into the same order as we declare them in the PullRaw/PullTar objects, i.e. match them to the canonical order.
| * | import: make sure we can import empty filesLennart Poettering2021-01-294-36/+45
| | |
| * | import: don't invoke compress callbacks with empty dataLennart Poettering2021-01-291-9/+15
| | | | | | | | | | | | | | | It's pointless if no data was generated. (This happens if an empty file is compressed)
| * | import: use unlink_and_free() + rm_rf_subvolume_and_free() moreLennart Poettering2021-01-292-8/+2
| | |
| * | import: fix typo in help textLennart Poettering2021-01-291-1/+2
| | |
* | | hwdb: check for the right set of MOUSE_WHEEL_CLICK_ propertiesPeter Hutterer2021-01-291-3/+14
|/ / | | | | | | | | | | | | As documented at the top of the file we require the normal property if we have the horizontal property, and we require the CLICK_ANGLE property if the CLICK_COUNT property is present. Codify this into the hwdb parser so we can pick up on it.
* | Merge pull request #18395 from bluca/make_docs_img_cleanZbigniew Jędrzejewski-Szmek2021-01-292-3/+15
|\ \ | | | | | | Add Python 3.7 compat in update-dbus-docs and fix regression in integration tests 'make clean'
| * | test: fix 'make clean' not removing shared imageLuca Boccassi2021-01-291-0/+4
| | |
| * | tools: make update-dbus-docs compatible with Python 3.7Luca Boccassi2021-01-291-3/+11
| | | | | | | | | | | | | | | Debian Stable uses Python 3.7, but there are a couple of 3.8 features used in the script. Add fallbacks.
* | | New directives NoExecPaths= ExecPaths=Topi Miettinen2021-01-2915-37/+240
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement directives `NoExecPaths=` and `ExecPaths=` to control `MS_NOEXEC` mount flag for the file system tree. This can be used to implement file system W^X policies, and for example with allow-listing mode (NoExecPaths=/) a compromised service would not be able to execute a shell, if that was not explicitly allowed. Example: [Service] NoExecPaths=/ ExecPaths=/usr/bin/daemon /usr/lib64 /usr/lib Closes: #17942.
* | ci: build the Fedora RPMs with -WerrorFrantisek Sumsal2021-01-291-1/+3
|/
* Merge pull request #18392 from keszybz/update-target-renameZbigniew Jędrzejewski-Szmek2021-01-28103-59/+209
|\ | | | | Add various missing license headers and rename meson targets for consistency
| * po: specify LGPL-2.1+ for all translation filesZbigniew Jędrzejewski-Szmek2021-01-284-3/+6
| |
| * networkd: add header to distributed "config" filesZbigniew Jędrzejewski-Szmek2021-01-282-0/+6
| |
| * license: LGPL-2.1+ -> LGPL-2.1-or-laterZbigniew Jędrzejewski-Szmek2021-01-286-6/+6
| | | | | | | | | | Follow-up for db9ecf050165fd1033c6f81485917e229c4be537 and faa73d4e0c8095fedd98ff29851b9634810ff97e.
| * kernel-install: add boilerplate on installed .install filesZbigniew Jędrzejewski-Szmek2021-01-283-9/+57
| | | | | | | | | | Those files distribured, so they should have the same header as kernel-install itself. Let's fix indentation while at it.
| * tools: rename helper to match target nameZbigniew Jędrzejewski-Szmek2021-01-283-7/+7
| | | | | | | | | | | | The target is update-syscall-tables, so let's call the script update-syscall-tables.sh to reduce the cognitive overhead when trying to find the right file.
| * Use .txt as the extension of arch syscall listsZbigniew Jędrzejewski-Szmek2021-01-2818-2/+2
| | | | | | | | | | This makes it easier to filter those files and tells editors that they should be treated as plain text.
| * Use .txt as the extension for syscall list fileZbigniew Jędrzejewski-Szmek2021-01-284-3/+3
| | | | | | | | | | | | | | Upstream uses .text, but this is rather unusual. Let's use .txt as the usual suffix for text files. This tells various editors and such that the file should be treated as plain text. I also want to a script to summarize license status, and having an easy-to-recognize suffix makes this easier.
| * docs: expose GVARIANT-SERIALIZATION as markdownZbigniew Jędrzejewski-Szmek2021-01-282-3/+8
| |
| * timesync: add header to distributed fileZbigniew Jędrzejewski-Szmek2021-01-281-0/+3
| | | | | | | | | | | | We don't include a license header in .conf and similar files, but we should include a header that tells the user that this is our file and points to some docs.
| * tree-wide: add spdx header on source filesZbigniew Jędrzejewski-Szmek2021-01-283-1/+6
| | | | | | | | version.h is tiny, but the other two certainly deserve a license header.
| * tree-wide: add spdx header on all scripts and helpersZbigniew Jędrzejewski-Szmek2021-01-2857-1/+70
| | | | | | | | | | | | Even though many of those scripts are very simple, it is easier to include the header than to try to say whether each of those files is trivial enough not to require one.
| * missing-syscalls: add license header in the version-controlled generated fileZbigniew Jędrzejewski-Szmek2021-01-272-2/+8
| | | | | | | | | | | | | | If the file was always generated on the fly, the header would be pointless. But since we distribute it, it should be there. C.f. a0e150b2f4933ae7546fce9a2773b0208b2dc269. This was forgotten in 35b42e560039fd87d4ae4d99cd54d1d4e89710b1.
| * udev.pc: add license headerZbigniew Jędrzejewski-Szmek2021-01-271-0/+9
| | | | | | | | | | All other .pc files have the same header. Not sure why this one was forgotten.
| * sysv-install.skeleton: use CC0 as the licenseZbigniew Jędrzejewski-Szmek2021-01-271-0/+2
| | | | | | | | | | We didn't specify any license, which made the script awkward to use. Let's be maximally permissive. CC0 is used for other documentation-code already.
| * generate-dns_type-gperf: modernize python syntaxZbigniew Jędrzejewski-Szmek2021-01-271-6/+5
| |
| * generate-sys-test: modernize Python and C codeZbigniew Jędrzejewski-Szmek2021-01-271-4/+3
| | | | | | | | | | | | Meson itself requires Python 3.6, which has f-strings. So I think it's fine to use them here too. I wanted to use walrus for 'if m:= re.search(...)', but that'd require 3.8.
| * Drop obsolete vimrc fileZbigniew Jędrzejewski-Szmek2021-01-271-4/+0
| | | | | | | | | | We have another .vimrc in the root of the repo that has a superset of the content of this file.
* | ci: enable Packit integrationFrantisek Sumsal2021-01-281-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's enable the Packit integration and see if it's a viable option for us. This configuration builds systemd on Fedora (on x86_64, i386, and aarch64) and runs the unit test suite. To do that, it uses the specfile from Fedora Rawhide[0] with some minor modifications, thus dropping the need to have a specfile in the upstream repository. So far the builds took around 25 minutes each, so speed-wise it's pretty good. The two remaining supported architectures (s390x and armhfp) are excluded, for now, since they're emulated and build there takes a really long time (~4 hours). [0] https://src.fedoraproject.org/rpms/systemd/
* | seccomp_restrict_sxid: return ENOSYS for openat2()Mike Gilbert2021-01-271-2/+4
| | | | | | | | | | | | | | We reject all openat2() calls because it is currently not possible to inspect its flags parameter via seccomp. Fallback code is more likely to look for ENOSYS than EPERM.
* | Merge pull request #18388 from keszybz/update-target-renameLennart Poettering2021-01-2712-44/+42
|\ \ | |/ | | meson: rename update targets for consistency
| * meson: rename target to update-hwdb-autosuspendZbigniew Jędrzejewski-Szmek2021-01-273-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The script is renamed to match. Now all targets are named uniformly in a tab-completion-friendly fashion, with the exception of systemd-update-po which is generated by the i18n module automatically: $ ninja -C build -t targets | grep update systemd-update-po: phony update-syscall-tables: phony update-syscall-header: phony update-hwdb: phony update-hwdb-autosuspend: phony update-dbus-docs: CUSTOM_COMMAND update-man-rules: CUSTOM_COMMAND
| * meson: rename target to update-hwdbZbigniew Jędrzejewski-Szmek2021-01-274-4/+4
| | | | | | | | | | The goal is to have all "update-*" targets named uniformly so that tab-completion works. The script is renamed to match.
| * meson: rename target to update-man-rulesZbigniew Jędrzejewski-Szmek2021-01-277-16/+14
| | | | | | | | Same justification as for update-dbus-docs.
| * meson: rename target to update-dbus-docsZbigniew Jędrzejewski-Szmek2021-01-274-21/+21
|/ | | | | | | | | Very old versions of meson did not include the subdirectory name in the target name, so we started adding various "top-level" custom targets in subdirectories. This was nice because the main meson.build file wasn't as cluttered. But then meson started including the subdir name in the target name. So let's move the definition to the root so we can have all targets named uniformly.
* Merge pull request #18340 from ddstreet/integration-tests-no-buildZbigniew Jędrzejewski-Szmek2021-01-276-47/+144
|\ | | | | allow test/run-integration-tests.sh to work without a local build
| * test/TEST-01-BASIC: also install testsuite.targetDan Streetman2021-01-261-2/+3
| | | | | | | | | | | | | | | | | | This test doesn't require the tests to be installed, so it must manually install required test services and targets itself, including the default target of testsuite.target Also use $TEST_UNITS_DIR which is set by test-functions instead of calculating the path
| * test/run-integration-tests.sh: adjust arg processingDan Streetman2021-01-261-28/+54
| | | | | | | | | | | | | | The script currently parses either 'clean' or 'clean-again' as wanting to clean both before and after running tests. This fixes that to split the action up; clean runs before tests, clean-again after; and also verifies the parameter(s) before passing them to make.