summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-27meson: add version check for libseccompZbigniew Jędrzejewski-Szmek
Compilation fails because of the missing arm64 bits with old seccomp versions.
2017-04-27meson: also search for libcap directlyZbigniew Jędrzejewski-Szmek
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-26meson: add address label to build systemSusant Sahani
2017-04-26networkd: add support for address labelSusant Sahani
IPv6 address labels are used for address selection; they are described in RFC 3484. Precedence is managed by userspace, and only the label itself is stored in the kernel. enp0s25.network [Match] Name=enp0s25 [Network] DHCP=yes Address = 2001:db8:f00:baa::b [AddressLabel] Label=199 Prefix=2001:db8:41::/64 [AddressLabel] Label=11 Prefix=2001:db8:31::/64 [AddressLabel] Label=123 Prefix=2001:db8:21::/64 [AddressLabel] Label=124 Prefix=2001:db8:11::/64 [sus@maximus label]$ ip addrlabel list prefix ::1/128 label 0 prefix ::/96 label 3 prefix ::ffff:0.0.0.0/96 label 4 prefix 2001:db8:41::/64 dev enp0s25 label 199 prefix 2001:db8:31::/64 dev enp0s25 label 11 prefix 2001:db8:21::/64 dev enp0s25 label 123 prefix 2001:db8:11::/64 dev enp0s25 label 124 prefix 2001::/32 label 6 prefix 2001:10::/28 label 7 prefix 3ffe::/16 label 12 prefix 2002::/16 label 2 prefix fec0::/10 label 11 prefix fc00::/7 label 5 prefix ::/0 label 1
2017-04-26sd-netlink: add support for address labelSusant Sahani
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-25test-sizeof: print the size of an enumZbigniew Jędrzejewski-Szmek
2017-04-25shared/extract-word: replace enum with unsigned int to avoid undefined behaviourZbigniew Jędrzejewski-Szmek
../src/basic/extract-word.c:255:22: warning: passing an object that undergoes default argument promotion to 'va_start' has undefined behavior [-Wvarargs] va_start(ap, flags); ^ ../src/basic/extract-word.c:244:77: note: parameter of type 'ExtractFlags' (aka 'enum ExtractFlags') is declared here int extract_many_words(const char **p, const char *separators, ExtractFlags flags, ...) { ^ ../src/basic/extract-word.c:286:22: warning: passing an object that undergoes default argument promotion to 'va_start' has undefined behavior [-Wvarargs] va_start(ap, flags); ^ ../src/basic/extract-word.c:244:77: note: parameter of type 'ExtractFlags' (aka 'enum ExtractFlags') is declared here int extract_many_words(const char **p, const char *separators, ExtractFlags flags, ...) { ^ 2 warnings generated. I think the relevant part of C99 is 6.7.2.2 Enumeration specifiers: Each enumerated type shall be compatible with char, a signed integer type, or an unsigned integer type. The choice of type is implementation-defined, but shall be capable of representing the values of all the members of the enumeration. and 7.16.1.4: The parameter parmN is the identifier of the rightmost parameter in the variable parameter list in the function definition (the one just before the ...). If the parameter parmN is declared with the register storage class, with a function or array type, or with a type that is not compatible with the type that results after application of the default argument promotions, the behavior is undefined. This might cause a real issue if the compiler chooses something that is not an integer for ExtractFlags. Rework the code to avoid the warning, but add an assert_cc in a large-valued ExtractFlags element is ever defined and the type is bumped to something wider than an int.
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-25core/device: Use JobRunningTimeoutSec= for device unitsMichal Koutný
Device job timeouts should respect possible device job dependencies so we set JobRunningTimeoutSec= by default.
2017-04-25fstab-generator: Apply _netdev option also to device unitsMichal Koutný
In case the device field of fstab record is an actual device (not an address) apply same dependencies to the device unit as to the mount unit, i.e. > After=network-online.target network.target > Wants=network-online.targe It makes sense to start the device expecting job only when network is actually ready (consider e.g. iSCSI devices) since it is device's implicit dependency. The eventual implementation should better obtain network flag from udev database and would also take into account device hierarchy (see [1]). This patch approximates that by taking the `_netdev` option as a hint from the user both about the filesystem and underlying device. (For local devices with network filesystems (e.g. ocfs2), this hint leads to unused dependencies.) [1] https://lists.freedesktop.org/archives/systemd-devel/2014-October/024718.html
2017-04-25Merge pull request #5804 from ssahani/geneveMichael Biebl
meson: add geneve to build system
2017-04-25job: add JobRunningTimeoutSec for JOB_RUNNING stateMichal Koutný
Unit.JobTimeoutSec starts when a job is enqueued in a transaction. The introduced distinct Unit.JobRunningTimeoutSec starts only when the job starts running (e.g. it groups all Exec* commands of a service or spans waiting for a device period.) Unit.JobRunningTimeoutSec is intended to be used by default instead of Unit.JobTimeoutSec for device units where such behavior causes less confusion (consider a job for a _netdev mount device, with this change the timeout will start ticking only after the network is ready).
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-25nspawn: check cgroups after parsing optionsZbigniew Jędrzejewski-Szmek
Same justification as in previous commit.
2017-04-25cgtop: check cgroups after parsing optionsZbigniew Jędrzejewski-Szmek
We would try to determine controllers even if not necessary: <mock-chroot><mock-chroot> sh-4.4# ./systemd-cgtop --help Failed to determine supported controllers: No medium found <mock-chroot><mock-chroot> sh-4.4# ./systemd-cgtop --version Failed to determine supported controllers: No medium found This broke check-help-systemd-cgtop under mock, but even apart from that, the program should be able to print --version in any circumstances.
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.