summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-27execute: filter out "." for ".." in EnvironmentFile= globs tooZbigniew Jędrzejewski-Szmek
This doesn't really matter much, only in case somebody would use something strange like EnvironmentFile=/etc/something/.* Make sure that "." and ".." is not returned by that glob. This makes all our globbing patterns behave the same.
2017-04-27tmpfiles: use safe_glob()Zbigniew Jędrzejewski-Szmek
This filters out "." and ".." from glob results. Fixes #5655 and #5644. Any judgements on whether the path is "safe" are removed. We will not remove "/" under any name (including "/../" and such), but we will remove stuff that is specified using paths that include "//", "/./" and "/../". Such paths can be created when joining strings automatically, or for other reasons, and people generally know what ".." and "." is. Tests are added to make sure that the helper functions behave as expected.
2017-04-27basic: add readdir_no_dot and safe_glob functionsZbigniew Jędrzejewski-Szmek
safe_glob filters out "." and "..". This converts all users of glob_extend() and glob_exists() to safe_glob.
2017-04-25importd: support SUSE style checksums supplementary (#5800)tblume
some small changes to make the code look better
2017-04-25bus: report builtins in GetManagedObjects() (#5799)David Herrmann
We already report builtin interfaces with InterfacesAdded and InterfacesRemoved. However, we never reported them in GetManagedObjects(). This might end up confusing callers that want to use those interfaces (or simply rely on the interface count to be coherent). Report the builtins for all objects that are queried.
2017-04-25Merge pull request #5803 from ssahani/utilZbigniew Jędrzejewski-Szmek
config_parser: add util function config_parse_uint8
2017-04-25Merge pull request #5805 from keszybz/apendv-man-ruleMichael Biebl
meson: add sd_bus_message_appendv alias to man list
2017-04-25meson: add sd_bus_message_appendv alias to man listZbigniew Jędrzejewski-Szmek
As generated by "nj update-man-rules".
2017-04-25Merge pull request #5804 from ssahani/geneveMichael Biebl
meson: add geneve to build system
2017-04-25meson: add geneve to build systemSusant Sahani
``` [107/1793] Compiling c object 'src/basic/basic@sta/log.c.o' In file included from ../src/basic/log.c:44:0: ../src/basic/missing.h:762:6: warning: "HAVE_DECL_IFLA_GENEVE_LABEL" is not defined, evaluates to 0 [-Wundef] ^~~~~~~~~~~~~~~~~~~~~~~~~~~ [108/1793] Compiling c object 'src/basic/basic@sta/path-util.c.o' In file included from ../src/basic/path-util.c:40:0: ../src/basic/missing.h:762:6: warning: "HAVE_DECL_IFLA_GENEVE_LABEL" is not defined, evaluates to 0 [-Wundef] ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
2017-04-25networkd: route add missing search for route object.Susant Sahani
Probaly this happened during rebase.
2017-04-25networkd: replace geneve parsers with generic config_parse_uint8Susant Sahani
2017-04-25config parser: Introduce config_parse_uint8Susant Sahani
2017-04-25Merge pull request #5704 from keszybz/mesonEvgeny Vereshchagin
meson: build systemd using meson
2017-04-25meson: require newest meson and revert m4 patchZbigniew Jędrzejewski-Szmek
This reverts 78b68dcb55.
2017-04-25meson: use name arg so check result is reportedZbigniew Jędrzejewski-Szmek
2017-04-25meson: fix checking of linker argsZbigniew Jędrzejewski-Szmek
Previous checks did nothing, because cc.has_argument only does compilation, without any linking. Unfortunately cc.links() cannot be used, because it does not accept any options. Providing the test file as a static source is easiest, even if not every elegant. https://github.com/mesonbuild/meson/issues/1676
2017-04-25meson: also indent scripts with 8 spacesZbigniew Jędrzejewski-Szmek
2017-04-25fix parenthesis in pager.c (#5798)Matija Skala
- result of dup2 should be compared against 0 - making parenthesis around comparisons just to be sure
2017-04-25Merge pull request #5752 from ssahani/geneveLennart Poettering
networkd: Introduce geneve GEneric NEtwork Virtualization Encapsulation
2017-04-25networkd: make IPv6 route preference configurable (#5700)Susant Sahani
The work supports route preference configurable. i.e. able to set low, medium and high.
2017-04-25Export sd_bus_message_append_ap. It is renamed to sd_bus_message_appendv to ↵Federico
follow systemd naming conventions. (#5753) Moreover, man page for sd_bus_message_append is updated with reference to new exposed function. Makefile-man is updated too, to reflect new alias.
2017-04-25load-fragment: don't print error about incorrect syntax when IPv6 is ↵Michal Sekletar
disabled (#5791)
2017-04-25docs: clarify ExecStop= implications for remaining processes (#5793)Amir Yalon
2017-04-25networkd: Introduce GENEVE netdevSusant Sahani
This work enables cration of geneve tunnel
2017-04-25sd-netlink: Add Geneve properties to netlinkSusant Sahani
2017-04-25Add Geneve netlink properties to missing.hSusant Sahani
2017-04-24meson: add git-snapshot targetZbigniew Jędrzejewski-Szmek
The output is systemd-<sha1abbrev>.tar.gz in source root.
2017-04-24meson: test-ns is manual, not just unsafeZbigniew Jędrzejewski-Szmek
2017-04-24meson: there is no smack libraryZbigniew Jędrzejewski-Szmek
Detection would always fail, so this was broken. Treat this as a binary enable/disable option.
2017-04-24meson: add forgotten tpm supportZbigniew Jędrzejewski-Szmek
2017-04-24meson: use -f{function,data}-sections for optimized buildsZbigniew Jędrzejewski-Szmek
2017-04-24meson: allow static linking of systemd-hwdbMichael Biebl
Various distros split udev and its helpers into a separate binary package. In case of Debian this also includes systemd-hwdb. In Debian, the udev package is not supposed to depend on systemd, so a dependency on libsystemd-shared.so is not desired. Allow the systemd-hwdb binary to be linked statically if link-udev-shared is set to false. Follow-up for 3a30f21ff8ddbef5eae61d6e4305ec1cd2e4e041.
2017-04-24meson: add forgotten parse_hwdb.py testZbigniew Jędrzejewski-Szmek
2017-04-24meson: fix gcrypt config optionMichael Biebl
Also detect libgpg-error. Require both to be present for HAVE_CRYPT, even though libgpg-error is only used in src/resolve. If one is available, the other should be too, so it doesn't seem worth the trouble to make two separate conditions.
2017-04-24meson: add option to disable libacl supportZbigniew Jędrzejewski-Szmek
2017-04-24meson: $DESTDIR might be undefinedZbigniew Jędrzejewski-Szmek
This causes an error with -u. Just add an empty fallback.
2017-04-24meson: define gnu_efi_arch for the arch efi name, fix ldsdir detectionZbigniew Jędrzejewski-Szmek
This fixes ldsdir detection under Debian. v2: - define gnu_efi_arch for the arch efi include directory name In the autotools naming convention, efi_arch and this directory always had the same name. But meson.cpu_family() uses a slightly different convention, so those two don't always match.
2017-04-24hwdb: add IBM USB Travel Mouse (MO32BO) (#5787)Zbigniew Jędrzejewski-Szmek
Contributed by rderooy. Closes #5785.
2017-04-24importd: support SUSE style checksums (#5206)tblume
In order to verify a pulled container or disk image, importd only supports SHA256SUMS files with the detached signature in SHA256SUMS.gpg. SUSE is using an inline signed file with the name of the image itself and the suffix .sha256 instead. This commit adds support for this type of signature files. It is first attempted to pull the .sha256 file. If this fails with error 404, the SHA256SUMS and SHA256SUMS.gpg files are pulled and used for verification.
2017-04-24Merge pull request #5354 from msekletar/issue-518Lennart Poettering
service: serialize information about currently executing command
2017-04-24update TODOLennart Poettering
2017-04-24fstab-generator: do not skip Before= ordering for noauto mountpoints (#5547)Ivan Shapovalov
2017-04-24sd-journal: return SD_JOURNAL_INVALIDATE only if journal files were actually ↵Michal Sekletar
deleted/moved (#5580) When caller invokes sd_journal_open() we usually open at least one directory with journal files. add_root_directory() function increments current_invalidate_counter. After sd_journal_open() returns current_invalidate_counter != last_invalidate_counter. After caller waits for journal events (e.g. waits for new messages in journal) then it usually calls sd_journal_process(). However, on first call to sd_journal_process(), function determine_change() returns SD_JOURNAL_INVALIDATE even though no journal files were deleted/moved. This is because current_invalidate_counter != last_invalidate_counter. After the fix we make sure counters has the same value before we begin processing inotify events.
2017-04-24redirect stdout/stderr back when closing the pager (#5661)Matija Skala
2017-04-24load-fragment: resolve specifiers in BindPaths/BindReadOnlyPaths (#5687)Danielle Church
2017-04-24man: clarify udevadm monitor --tag-match/--filter-match (#5726)Julian Mehne
--tag-match only filters tags, not properties --tag-match only has an effect on udev events --subsystem-match filters both event types
2017-04-24man: systemd.journal-fields: Note about originator PID (#5724)Michal Koutný
2017-04-23meson: detect getrandom in sys/random.h, fall back to linux/random.hZbigniew Jędrzejewski-Szmek
This is analogous to commit e84397d95c3da2b9722ff265843ad4a8874643d8.
2017-04-23meson: check string.h not strings.h for explicit_bzeroZbigniew Jędrzejewski-Szmek
I used strings.h because that's what explicit_bzero(3) says. But glibc defines it in string.h. There are no other available implementations atm (musl does not define it, bionic aliases it to memset in openbsd-compat.h, yikes). We also include just string.h from the code. So just look for the function in string.h, and if it ever appears in other places, we can change the detection and includes.