summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-04-27meson: add compiler flags for "--tpm" in EFI apps (#5829)Max Resch
Readds boot log tpm feature that was missing in meson by readding a defines in efi_conf.h
2017-04-27meson: do not install files from disabled features (#5811)userwithuid
Mirror conditions from Makefile.am.
2017-04-27Merge branch 'master' into meson-no-libudevZbigniew Jędrzejewski-Szmek
2017-04-27Merge pull request #5821 from mbiebl/meson-no-libiptcZbigniew Jędrzejewski-Szmek
Merge libfirewall into libshared, and link libshared to libip[46]tc directly.
2017-04-27build-sys: only install libexecdir/resolv.conf if resolved is enabled (#5826)userwithuid
as mentioned in https://github.com/systemd/systemd/pull/5811
2017-04-26improve readability (#5814)Matija Skala
2017-04-26update-done: Create using a temporary file (#5789)codekipper
'/etc/.updated' is created without using a temporary file, this can be problematic with filesystems that cache writes. Modify so that the timestamp is written to a temporary file and then use an atomic move to move it to its correct place.
2017-04-26meson: get rid of libfirewallMichael Biebl
2017-04-26meson: drop libiptc link dependencies from libsharedMichael Biebl
The only place where libiptc is needed is in libfirewall, which already takes care of linking against libiptc.
2017-04-26meson: drop implicit libudev link dependenciesMichael Biebl
Executables which link against libshared do not need an explicit dependency on libudev, as libshared will make sure that those symbols are available.
2017-04-26main: improve RLIMIT_NOFILE handling (#5795)Christian Brauner
This has systemd look at /proc/sys/fs/nr_open to find the current maximum of open files compiled into the kernel and tries to set the RLIMIT_NOFILE max to it. This has the advantage the value chosen as limit is less arbitrary and also improves the behavior of systemd in containers that have an rlimit set: When systemd currently starts in a container that has RLIMIT_NOFILE set to e.g. 100000 systemd will lower it to 65536. With this patch systemd will try to set the nofile limit to the allowed kernel maximum. If this fails, it will compute the minimum of the current set value (the limit that is set on the container) and the maximum value as soft limit and the currently set maximum value as the maximum value. This way it retains the limit set on the container.
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-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: 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-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: test-ns is manual, not just unsafeZbigniew 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: 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-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-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-23meson: use "sh -eu" and make .sh +x, .py -xZbigniew Jędrzejewski-Szmek
Shell scripts should be executable so that meson reports their invocation succinctly (does not print 'sh' '-e'). Python scripts should not be executable so that meson does the detection of the right python binary itself. Add -u everywhere to catch potential errors.
2017-04-23meson: add libblkid as libudev-core dep to fix include dirZbigniew Jędrzejewski-Szmek
Follow-up for 6b5cf3ea62. v2: - also link udevadm and systemd-udev statically if requested v3: - fix install_rpath for udevadm (Michael Biebl)
2017-04-23meson: reindent all files with 8 spacesZbigniew Jędrzejewski-Szmek
The indentation for emacs'es meson-mode is added .dir-locals. All files are reindented automatically, using the lasest meson-mode from git. Indentation should now be fairly consistent.
2017-04-23meson: use efi-includedir to look for headerZbigniew Jędrzejewski-Szmek
This change mirrors cba49f2deab481045408d5452ac8c84fc03bccd5.
2017-04-23meson: allow optional static linking of shared code in udev helpersZbigniew Jędrzejewski-Szmek
This makes the helper binaries significantly bigger (in some cases, the final size depends on link options and optimization level), and is only useful for distributions which want to provide the option to install udev without systemd. As the linking is improved, the difference between the columns might shrink, but it's unlikely that linking libshared statically could ever be more efficient. E.g. with -O0, no -flto: (static) (shared) src/udev/ata_id 999176 85696 src/udev/cdrom_id 1024344 111656 src/udev/collect 990344 81280 src/udev/scsi_id 1023592 115656 src/udev/v4l_id 811736 17744 When linked dynamically, install_rpath must be specified, so add that.
2017-04-23test-efi-create-disk.sh: allow running from separate build dir, hook up to mesonZbigniew Jędrzejewski-Szmek
This allow test-efi-disk.img to be created under meson. The invocation of qemu is not converted yet, in particular because the command-line used in Makefile.am is outdated.
2017-04-23meson: add dist-check-includes replacementZbigniew Jędrzejewski-Szmek
This is more-or-less the same as dist-check-includes. meson doesn't exactly make it easy to call a compiler with a custom set of options. The tests are included in the test listing.
2017-04-23meson: add journal-install and hwdb-update hooksZbigniew Jędrzejewski-Szmek
v2: - ignore errors in chown/chmod/setfacl - obey -Dadm-group=false, -Dwheel-group=false - fix reversed condition for systemd-hwdb update hook
2017-04-23meson: add test-dlopenZbigniew Jędrzejewski-Szmek
test-dlopen is a very simple binary that is only linked with libc and libdl. From it we do dlopen() on the nss and pam modules to check that they are linked to all necessary libs. (meson-compiled nss modules are linked to less libraries, for whatever reason. I suspected that some deps are missing, but it turns out that my suspicions weren't justified, and the modules load just fine. Let's keep the test though, it is very quick, and might detect missing linkage in the future.)
2017-04-23test-nss: fix loading of modules under mesonZbigniew Jędrzejewski-Szmek
There is no .libs dirs under meson. Just try both paths.
2017-04-23meson: eliminate libsystemd_journal_internal and use libsystemd_internal lessZbigniew Jędrzejewski-Szmek
This simplifies things and leads to a smaller installation footprint. libsystemd_internal and libsystemd_journal_internal are linked into libystemd-shared and available to all programs linked to libsystemd-shared. libsystemd_journal_internal is not needed anymore, and libsystemd-shared is used everwhere. The few exceptions are: libsystemd.so, test-engine, test-bus-error, and various loadable modules.
2017-04-23meson: replace yes/no/auto with true/false/autoZbigniew Jędrzejewski-Szmek
This doesn't feel as natural, but is more consistent with the boolean options which require true/false, and allows setting of options without knowing of which type the option is.