]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
8 years agoresolved: add a generic DnsSearchDomain concept
Lennart Poettering [Tue, 24 Nov 2015 20:12:51 +0000 (21:12 +0100)] 
resolved: add a generic DnsSearchDomain concept

With this change, we add a new object to resolved, "DnsSearchDomain="
which wraps a search domain. This is then used to introduce a global
search domain list, in addition to the existing per-link search domain
list which is reword to make use of this new object too.

This is preparation for implement proper unicast DNS search domain
support.

8 years agoresolved: make sure order of dns servers is stable
Lennart Poettering [Tue, 24 Nov 2015 19:50:37 +0000 (20:50 +0100)] 
resolved: make sure order of dns servers is stable

Previously, we'd keep adding new dns servers we discover to the end of
our linked list of servers. When we encountered a pre-existing server,
we'd just leave it where it was. In essence that meant that old servers
ended up at the front, and new servers at the end, but not in an order
that would reflect the configuration.

With this change we ensure that every pre-existing server we want to add
again we move to the back of the linked list, so that the order is
stable and in sync with the requested configuration.

8 years agoresolved: drop unused enum type
Lennart Poettering [Tue, 24 Nov 2015 17:12:13 +0000 (18:12 +0100)] 
resolved: drop unused enum type

8 years agoresolved: make sure FallbackDNS= overrides built-in servers, doesn't extend them
Lennart Poettering [Tue, 24 Nov 2015 17:08:35 +0000 (18:08 +0100)] 
resolved: make sure FallbackDNS= overrides built-in servers, doesn't extend them

Closes #342.

8 years agoresolved: rework dns server lifecycle logic
Lennart Poettering [Tue, 24 Nov 2015 16:59:40 +0000 (17:59 +0100)] 
resolved: rework dns server lifecycle logic

Previously, there was a chance of memory corruption, because when
switching to the next DNS server we didn't care whether they linked list
of DNS servers was still valid.

Clean up lifecycle of the dns server logic:

- When a DnsServer object is still in the linked list of DnsServers for
  a link or the manager, indicate so with a "linked" boolean field, and
  never follow the linked list if that boolean is not set.

- When picking a DnsServer to use for a link ot manager, always
  explicitly take a reference.

This also rearranges some logic, to make the tracking of dns servers by
link and globally more alike.

8 years agoresolved: move dns server picking code from resolved-manager.c to resolved-dns-server.c
Lennart Poettering [Tue, 24 Nov 2015 16:03:12 +0000 (17:03 +0100)] 
resolved: move dns server picking code from resolved-manager.c to resolved-dns-server.c

8 years agoresolved: indent less, by exiting earlier
Lennart Poettering [Tue, 24 Nov 2015 16:01:09 +0000 (17:01 +0100)] 
resolved: indent less, by exiting earlier

8 years agoresolved: split out all code dealing with /etc/resolv.conf into its own .c file
Lennart Poettering [Tue, 24 Nov 2015 15:55:30 +0000 (16:55 +0100)] 
resolved: split out all code dealing with /etc/resolv.conf into its own .c file

No functional changes.

8 years agoresolved: unify code for parsing dns server information
Lennart Poettering [Tue, 24 Nov 2015 15:48:13 +0000 (16:48 +0100)] 
resolved: unify code for parsing dns server information

Let's use the same parser when parsing dns server information from
/etc/resolv.conf and our native configuration file.

Also, move all code that manages lists of dns servers to a single place.
resolved-dns-server.c

8 years agoresolved: /etc/resolved.conf missing is not an error
Lennart Poettering [Tue, 24 Nov 2015 15:47:20 +0000 (16:47 +0100)] 
resolved: /etc/resolved.conf missing is not an error

Don't propagate any error in this case, it's really not an error.

8 years agodns-domain: remove prototype for function that doesn't exist
Lennart Poettering [Tue, 24 Nov 2015 15:45:12 +0000 (16:45 +0100)] 
dns-domain: remove prototype for function that doesn't exist

8 years agoman: fix documentation how /etc/resolv.conf is read
Lennart Poettering [Tue, 24 Nov 2015 15:44:02 +0000 (16:44 +0100)] 
man: fix documentation how /etc/resolv.conf is read

/etc/resolv.conf is only read when the DNS= setting does not appear at
all in resolved.conf, regardless if set to the empty list or anything
else. Correct that in the man page.

8 years agoresolved: don't claim DnsQuestion have to have the same names
Lennart Poettering [Tue, 24 Nov 2015 00:25:24 +0000 (01:25 +0100)] 
resolved: don't claim DnsQuestion have to have the same names

Wen DnsQuestion objects are used for DnsQuery objects all contained keys
have to share the same name, but otherwise they generally don't have to,
and this can actually happen in real-life because DnsPacket objects for
mDNS use DnsQuestion for the question section.

Hence, rename:

dns_question_is_valid() to dns_question_is_valid_for_query(), since the
name uniqueness check it does is only relevant when used for a query.

Similar, rename dns_question_name() to dns_question_first_name(),
to be more accurate, as this difference matters if we keys don#t have to
share the same name.

8 years agoMerge pull request #2024 from eworm-de/net
Tom Gundersen [Wed, 25 Nov 2015 19:56:46 +0000 (20:56 +0100)] 
Merge pull request #2024 from eworm-de/net

networkd: link - do not drop config for loopback device

8 years agonetworkd: link - do not drop config for loopback device 2024/head
Christian Hesse [Wed, 25 Nov 2015 07:46:43 +0000 (08:46 +0100)] 
networkd: link - do not drop config for loopback device

Commit 5e5b137a (networkd: link - drop foreign config when configuring
link) introduced a regression where addresses (including 127.0.0.1) are
removed from loopback device.
Do not handle loopback device when removing foreign configs.

Signed-off-by: Christian Hesse <mail@eworm.de>
8 years agoMerge pull request #2027 from evverx/remove-unnecessary-cgroup-systemd-checking
Daniel Mack [Wed, 25 Nov 2015 13:44:48 +0000 (14:44 +0100)] 
Merge pull request #2027 from evverx/remove-unnecessary-cgroup-systemd-checking

tests: remove unnecessary /sys/fs/cgroup/systemd checking

8 years agotests: remove unnecessary /sys/fs/cgroup/systemd checking 2027/head
Evgeny Vereshchagin [Wed, 25 Nov 2015 11:25:21 +0000 (11:25 +0000)] 
tests: remove unnecessary /sys/fs/cgroup/systemd checking

A unified hierarchy obsoletes this checking

8 years agoMerge pull request #2020 from evverx/signals-completion
Lennart Poettering [Tue, 24 Nov 2015 22:07:10 +0000 (23:07 +0100)] 
Merge pull request #2020 from evverx/signals-completion

bash-completion: list valid signal names

8 years agoMerge pull request #2021 from phomes/minor-fixes2
Tom Gundersen [Tue, 24 Nov 2015 17:43:59 +0000 (18:43 +0100)] 
Merge pull request #2021 from phomes/minor-fixes2

resolved: remove unused variable

8 years agoresolved: remove unused variable 2021/head
Thomas Hindoe Paaboel Andersen [Tue, 24 Nov 2015 16:09:41 +0000 (17:09 +0100)] 
resolved: remove unused variable

8 years agobash-completion: list valid signal names 2020/head
Evgeny Vereshchagin [Tue, 24 Nov 2015 16:05:42 +0000 (16:05 +0000)] 
bash-completion: list valid signal names

this is a follow-up for commit 18540892d18addc4dcb81

8 years agoMerge pull request #1991 from evverx/use-systems-nspawn
Lennart Poettering [Tue, 24 Nov 2015 15:24:24 +0000 (16:24 +0100)] 
Merge pull request #1991 from evverx/use-systems-nspawn

tests: don't rely on system's machined

8 years agoMerge pull request #2018 from keszybz/kill-signal
Lennart Poettering [Tue, 24 Nov 2015 15:21:47 +0000 (16:21 +0100)] 
Merge pull request #2018 from keszybz/kill-signal

bash-completion: list only valid signal names

8 years agobash-completion: list only valid signal names 2018/head
Zbigniew Jędrzejewski-Szmek [Tue, 24 Nov 2015 14:39:27 +0000 (09:39 -0500)] 
bash-completion: list only valid signal names

Fixup for #1999.

8 years agotests: don't rely on system's machined 1991/head
Evgeny Vereshchagin [Mon, 23 Nov 2015 04:36:39 +0000 (04:36 +0000)] 
tests: don't rely on system's machined

Fixes backward/forward incompatibility errors on spawning.

For example:
$ sudo make run
...
Failed to register machine: Cannot set property TasksMax, or unknown
property.

$ ../../systemd-nspawn --version
systemd 228

$ systemd-nspawn --version
systemd 225

8 years agoMerge pull request #1957 from zonque/qemu-test
Lennart Poettering [Tue, 24 Nov 2015 14:02:20 +0000 (15:02 +0100)] 
Merge pull request #1957 from zonque/qemu-test

test: make QEMU tests work on Semaphore

8 years agoMerge pull request #1976 from ssahani/word3
Lennart Poettering [Tue, 24 Nov 2015 13:16:50 +0000 (14:16 +0100)] 
Merge pull request #1976 from ssahani/word3

core: mount flags remove FOREACH_WORD_SEPARATOR

8 years agoMerge pull request #2013 from martinpitt/statfs-type
Lennart Poettering [Tue, 24 Nov 2015 12:53:14 +0000 (13:53 +0100)] 
Merge pull request #2013 from martinpitt/statfs-type

basic: fix build on architectures with small long

8 years agobasic: fix build on architectures with small long 2013/head
Helmut Grohne [Sun, 22 Nov 2015 07:43:08 +0000 (08:43 +0100)] 
basic: fix build on architectures with small long

The x32 architecture has a small "long" type which is not enough to hold
struct statfs.f_type.

8 years agocore: mount flags remove FOREACH_WORD_SEPARATOR 1976/head
Susant Sahani [Tue, 24 Nov 2015 01:38:45 +0000 (07:08 +0530)] 
core: mount flags remove FOREACH_WORD_SEPARATOR

FOREACH_WORD_SEPARATOR is no need here since we only
apply only one mount flag. The rvalue is sufficient for
this.

8 years agoMerge pull request #2011 from poettering/resolve-dname
Tom Gundersen [Mon, 23 Nov 2015 23:46:15 +0000 (00:46 +0100)] 
Merge pull request #2011 from poettering/resolve-dname

Implement client-side DNAME RR resolving

8 years agoupdate TODO 2011/head
Lennart Poettering [Mon, 23 Nov 2015 22:12:27 +0000 (23:12 +0100)] 
update TODO

8 years agoresolved: implement client-side DNAME resolution
Lennart Poettering [Mon, 23 Nov 2015 23:18:49 +0000 (00:18 +0100)] 
resolved: implement client-side DNAME resolution

Most servers apparently always implicitly convert DNAME to CNAME, but
some servers don't, hence implement this properly, as this is required
by edns0.

8 years agoquestion: drop dns_question_is_superset() which we don't use anymore
Lennart Poettering [Mon, 23 Nov 2015 22:12:48 +0000 (23:12 +0100)] 
question: drop dns_question_is_superset() which we don't use anymore

8 years agoMerge pull request #1984 from phomes/networkd-routes-parse
Tom Gundersen [Mon, 23 Nov 2015 21:54:08 +0000 (22:54 +0100)] 
Merge pull request #1984 from phomes/networkd-routes-parse

networkd: link - fix reading routes

8 years agoMerge pull request #2007 from poettering/resolve-srv
Tom Gundersen [Mon, 23 Nov 2015 21:53:30 +0000 (22:53 +0100)] 
Merge pull request #2007 from poettering/resolve-srv

resolved: add support for resolving plain SRV and DNS-SD services

8 years agoresolved: add ResolveService() bus call for resolving SRV and DNS-SD services 2007/head
Lennart Poettering [Mon, 23 Nov 2015 20:25:40 +0000 (21:25 +0100)] 
resolved: add ResolveService() bus call for resolving SRV and DNS-SD services

This also adds client-side support for this to systemd-resolve-host.

Note that the ResolveService() API can deal both with DNS-SD service
(consisting of service name, type and domain), as well as classic SRV
services (consisting just of a type and a domain), all exposed in the
same call.

This patch also reworks CNAME handling in order to reuse it between
hostname, RR and service lookups.

In contrast to Avahi and Bonjour, this new API will actually reolve the
A/AAAA RRs the SRV RRs point to in one go (unless this is explicitly
disabled). This normally comes for free, as these RRs are sent along
the SRV responses anyway, hence let's make use of that. This makes the
API considerably easier to use, as a single ResolveService() invocation
will return all necessary data to pick a server and connect() to it.

Note that this only implements the DNS-SD resolving step, it does not
implement DNS-SD browsing, as that makes sense primarily on mDNS, due to
its continuous nature.

8 years agoresolved: fix minor memory leak when shuttin down
Lennart Poettering [Mon, 23 Nov 2015 20:24:10 +0000 (21:24 +0100)] 
resolved: fix minor memory leak when shuttin down

We need to free the rtnl watch too.

8 years agodns-domain: add calls to join/split SRV/DNS-SD service domains
Lennart Poettering [Mon, 23 Nov 2015 20:21:13 +0000 (21:21 +0100)] 
dns-domain: add calls to join/split SRV/DNS-SD service domains

This adds dns_service_join() and dns_service_split() which may be used
to concatenate a DNS-SD service name, am SRV service type string, and a
domain name into a full resolvable DNS domain name string. If the
service name is specified as NULL, only the type and domain are
appended, to implement classic, non-DNS-SD SRV lookups.

The reverse is dns_service_split() which takes the full name, and split
it into the three components again.

8 years agoescape: add cescape_length() call as generalization of cescape()
Lennart Poettering [Mon, 23 Nov 2015 20:13:59 +0000 (21:13 +0100)] 
escape: add cescape_length() call as generalization of cescape()

8 years agoresolved: accept TXT records with non-UTF8 strings
Lennart Poettering [Fri, 20 Nov 2015 18:01:43 +0000 (19:01 +0100)] 
resolved: accept TXT records with non-UTF8 strings

RFC 6763 is very clear that TXT RRs should allow arbitrary binary
content, hence let's actually accept that. This also means accepting NUL
bytes in the middle of strings.

8 years agodns-domain: add code for verifying validity of DNS-SD service names and types
Lennart Poettering [Fri, 20 Nov 2015 16:52:36 +0000 (17:52 +0100)] 
dns-domain: add code for verifying validity of DNS-SD service names and types

8 years agoMerge pull request #2003 from eworm-de/virt
Lennart Poettering [Mon, 23 Nov 2015 20:01:01 +0000 (21:01 +0100)] 
Merge pull request #2003 from eworm-de/virt

virt: add comment about order in virtualization detection

8 years agoMerge pull request #2006 from keszybz/mymachines-overflow
Lennart Poettering [Mon, 23 Nov 2015 19:51:57 +0000 (20:51 +0100)] 
Merge pull request #2006 from keszybz/mymachines-overflow

nss-mymachines: do not allow overlong machine names

8 years agoMerge pull request #2005 from eworm-de/vimrc
Daniel Mack [Mon, 23 Nov 2015 19:25:22 +0000 (20:25 +0100)] 
Merge pull request #2005 from eworm-de/vimrc

vimrc: add warning about dangerous exrc mode

8 years agonss-mymachines: do not allow overlong machine names 2006/head
Zbigniew Jędrzejewski-Szmek [Mon, 23 Nov 2015 18:59:43 +0000 (13:59 -0500)] 
nss-mymachines: do not allow overlong machine names

https://github.com/systemd/systemd/issues/2002

8 years agovimrc: add warning about dangerous exrc mode 2005/head
Christian Hesse [Mon, 23 Nov 2015 18:31:00 +0000 (19:31 +0100)] 
vimrc: add warning about dangerous exrc mode

8 years agovirt: add comment about order in virtualization detection 2003/head
Christian Hesse [Mon, 23 Nov 2015 18:15:25 +0000 (19:15 +0100)] 
virt: add comment about order in virtualization detection

8 years agoMerge pull request #1997 from fbuihuu/fix-swap-unit-ordering-dep
Lennart Poettering [Mon, 23 Nov 2015 17:24:17 +0000 (18:24 +0100)] 
Merge pull request #1997 from fbuihuu/fix-swap-unit-ordering-dep

make sure all swap units are ordered before the swap target

8 years agoMerge pull request #1998 from eworm-de/virt
Lennart Poettering [Mon, 23 Nov 2015 17:21:06 +0000 (18:21 +0100)] 
Merge pull request #1998 from eworm-de/virt

virt: detect dmi before cpuid

8 years agoMerge pull request #1996 from eworm-de/editorconfig
Daniel Mack [Mon, 23 Nov 2015 17:17:57 +0000 (18:17 +0100)] 
Merge pull request #1996 from eworm-de/editorconfig

add editorconfig configuration

8 years agoMerge pull request #1999 from evverx/nspawn-kill-signal-completion
Zbigniew Jędrzejewski-Szmek [Mon, 23 Nov 2015 17:17:06 +0000 (12:17 -0500)] 
Merge pull request #1999 from evverx/nspawn-kill-signal-completion

bash-completion: nspawn: add completion for --kill-signal

8 years agoMerge pull request #1986 from tjanez/fix-systemd_user_post
Zbigniew Jędrzejewski-Szmek [Mon, 23 Nov 2015 17:06:11 +0000 (12:06 -0500)] 
Merge pull request #1986 from tjanez/fix-systemd_user_post

rpm: fix %systemd_user_post() macro.

8 years agobash-completion: nspawn: add completion for --kill-signal 1999/head
Evgeny Vereshchagin [Mon, 23 Nov 2015 14:58:22 +0000 (14:58 +0000)] 
bash-completion: nspawn: add completion for --kill-signal

8 years agovirt: detect dmi before cpuid 1998/head
Christian Hesse [Mon, 23 Nov 2015 12:55:04 +0000 (13:55 +0100)] 
virt: detect dmi before cpuid

Virtualbox should be detected as 'oracle'. This used to work but broke
with commit:

    commit 75f86906c52735c98dc0aa7e24b773edb42ee814
    Author: Lennart Poettering <lennart@poettering.net>
    Date:   Mon Sep 7 13:42:47 2015 +0200

    basic: rework virtualization detection API

We swap detection for dmi and cpuid, this fixes Virtualbox with KVM.
Hopefully it does not break anything else.

8 years agoadd editorconfig configuration 1996/head
Christian Hesse [Mon, 23 Nov 2015 10:26:43 +0000 (11:26 +0100)] 
add editorconfig configuration

We want indention with spaces, so specify in editorconfig.
http://editorconfig.org/

8 years agoMerge pull request #1992 from evverx/tests-add-event-now
Daniel Mack [Mon, 23 Nov 2015 10:26:25 +0000 (11:26 +0100)] 
Merge pull request #1992 from evverx/tests-add-event-now

tests: add sd_event_now to test_basic

8 years agoMerge pull request #1990 from keszybz/html-links
Daniel Mack [Mon, 23 Nov 2015 10:26:00 +0000 (11:26 +0100)] 
Merge pull request #1990 from keszybz/html-links

man: include the target name when linking to man pages in html output

8 years agomake sure all swap units are ordered before the swap target 1997/head
Franck Bui [Mon, 23 Nov 2015 10:14:10 +0000 (11:14 +0100)] 
make sure all swap units are ordered before the swap target

When shutting down the system, the swap devices can be disabled long
time before the swap target is stopped. They're actually the first
units systemd turns off on my system.

This is incorrect and due to swap devices having multiple associated
swap unit files. The main one is usually created by the fstab
generator and is used to start the swap device.

Once done, systemd creates some 'alias' units for the same swap
device, one for each swap dev link. But those units are missing an
ordering dependencies which was created by the fstab generator for the
main swap unit.

Therefore during shutdown those 'alias' units can be stopped at
anytime before unmount.target target.

This patch makes sure that all swap units are stopped after the
swap.target target.

8 years agotests: add sd_event_now to test_basic 1992/head
Evgeny Vereshchagin [Mon, 23 Nov 2015 05:49:41 +0000 (05:49 +0000)] 
tests: add sd_event_now to test_basic

8 years agoMerge pull request #1987 from heftig/usertasks
Zbigniew Jędrzejewski-Szmek [Mon, 23 Nov 2015 05:41:23 +0000 (00:41 -0500)] 
Merge pull request #1987 from heftig/usertasks

Set user@.service TasksMax=infinity

8 years agoMerge pull request #1988 from phomes/systemctl-uninitialized2
Zbigniew Jędrzejewski-Szmek [Mon, 23 Nov 2015 05:10:37 +0000 (00:10 -0500)] 
Merge pull request #1988 from phomes/systemctl-uninitialized2

systemctl: do not return uninitialized r

8 years agoman: include the target name when linking to man pages in html output 1990/head
Zbigniew Jędrzejewski-Szmek [Mon, 23 Nov 2015 04:43:36 +0000 (23:43 -0500)] 
man: include the target name when linking to man pages in html output

Links like http://www.freedesktop.org/software/systemd/man/systemd.socket.html
are changed to http://www.freedesktop.org/software/systemd/man/systemd.socket.html#Accept=.

This implementation is quick & dirty, and misses various corner
cases. A fairly important one is that when a few directives share the
same anchor (which happens when multiple directives are described in
the same paragraph), generated links for everything except the first
one link to an invalid anchor. Another shortcoming is that the
formatting does not use the proper generateID machinery, so the anchor
name could be wrong in some cases. But it seems to work for a large
percentage of links, so seems to be an improvement in usability. When
the anchor is missing, we land at the top of the page, which is the
same as before. If the anchor were to point to different spot, this
would be more confusing... Not sure if that ever happens. Anyway, the
user should be able to recover from landing on the wrong place in the
page.

(Mostly) fixes https://github.com/systemd/systemd/issues/1956.

8 years agosystemctl: do not return uninitialized r 1988/head
Thomas Hindoe Paaboel Andersen [Sun, 22 Nov 2015 22:10:26 +0000 (23:10 +0100)] 
systemctl: do not return uninitialized r

Regresssed during port to extract_first_word in
5ab22f3321d238957c03dcc6a6db76491e3989b8

CID #1338060

8 years agoSet user@.service TasksMax=infinity 1987/head
Jan Alexander Steffens (heftig) [Sun, 22 Nov 2015 22:00:43 +0000 (23:00 +0100)] 
Set user@.service TasksMax=infinity

The user manager is still limited by its parent slice user-UID.slice,
which defaults to 4096 tasks. However, it no longer has an additional
limit of 512 tasks.

Fixes #1955.

8 years agoMerge pull request #1983 from dmedri/master
Lennart Poettering [Sun, 22 Nov 2015 21:34:37 +0000 (22:34 +0100)] 
Merge pull request #1983 from dmedri/master

Minor updates on po/ files + it.po update

8 years agoMerge pull request #1978 from evverx/man-service-watchdog
Lennart Poettering [Sun, 22 Nov 2015 21:33:50 +0000 (22:33 +0100)] 
Merge pull request #1978 from evverx/man-service-watchdog

man: update WatchdogSec section

8 years agoMerge pull request #1980 from evverx/sd-event-use-prioq-ensure-allocated
Lennart Poettering [Sun, 22 Nov 2015 21:32:54 +0000 (22:32 +0100)] 
Merge pull request #1980 from evverx/sd-event-use-prioq-ensure-allocated

sd-event: update tests; small refactoring

8 years agorpm: fix %systemd_user_post() macro. 1986/head
Tadej Janež [Sun, 22 Nov 2015 19:38:05 +0000 (20:38 +0100)] 
rpm: fix %systemd_user_post() macro.

Escape "--user" and "--global" arguments with "\\" since rpm treats
arguments starting with "-" as macro options which causes "Unknown
option" rpm error.
Use %{expand:...} to force expansion of the inner macro. Otherwise %{?*}
is recursively defined as "\--user \--global {%?*}" which causes
"Too many levels of recursion in macro expansion" rpm error.

Thanks to Michael Mráka for helping me fix the above issues.

8 years agonetworkd: link - fix reading routes 1984/head
Thomas Hindoe Paaboel Andersen [Sun, 22 Nov 2015 17:37:58 +0000 (18:37 +0100)] 
networkd: link - fix reading routes

This regressed during the port to extract_first_word in c598ac76
(v228).

CID #1338083

8 years agoItalian: language update 1983/head
Daniele Medri [Sun, 22 Nov 2015 16:03:53 +0000 (17:03 +0100)] 
Italian: language update

8 years agotranslations: update-po
Daniele Medri [Sun, 22 Nov 2015 15:43:39 +0000 (16:43 +0100)] 
translations: update-po

8 years agotests: add missing sd_event_add_post to test_basic 1980/head
Evgeny Vereshchagin [Sun, 22 Nov 2015 09:11:19 +0000 (09:11 +0000)] 
tests: add missing sd_event_add_post to test_basic

8 years agotests: check exit handler invocation
Evgeny Vereshchagin [Sun, 22 Nov 2015 08:23:59 +0000 (08:23 +0000)] 
tests: check exit handler invocation

8 years agosd-event: use prioq_ensure_allocated where possible
Evgeny Vereshchagin [Sun, 22 Nov 2015 06:41:31 +0000 (06:41 +0000)] 
sd-event: use prioq_ensure_allocated where possible

8 years agoMerge pull request #1979 from evverx/build-install-systemd-path-completion
Daniel Mack [Sat, 21 Nov 2015 10:57:52 +0000 (11:57 +0100)] 
Merge pull request #1979 from evverx/build-install-systemd-path-completion

build: install bash completion for systemd-path

8 years agobuild: install bash completion for systemd-path 1979/head
Evgeny Vereshchagin [Sat, 21 Nov 2015 07:10:21 +0000 (07:10 +0000)] 
build: install bash completion for systemd-path

This is a follow-up for commit e50e53876fb08b6

8 years agoman: update WatchdogSec section 1978/head
Evgeny Vereshchagin [Sat, 21 Nov 2015 04:17:47 +0000 (04:17 +0000)] 
man: update WatchdogSec section

* add info about sd_event_set_watchdog
* add missing Restart values

8 years agoMerge pull request #1966 from evverx/fix-initrd-searching-on-debian
Daniel Mack [Fri, 20 Nov 2015 15:00:32 +0000 (16:00 +0100)] 
Merge pull request #1966 from evverx/fix-initrd-searching-on-debian

tests: fix initrd searching on Debian/Ubuntu

8 years agotests: fix initrd searching on Debian/Ubuntu 1966/head
Evgeny Vereshchagin [Fri, 20 Nov 2015 05:21:06 +0000 (05:21 +0000)] 
tests: fix initrd searching on Debian/Ubuntu

8 years agoMerge pull request #1950 from evverx/man-systemd-exec-env
Lennart Poettering [Fri, 20 Nov 2015 11:24:43 +0000 (12:24 +0100)] 
Merge pull request #1950 from evverx/man-systemd-exec-env

man: systemd.exec: add missing variables

8 years agoMerge pull request #1964 from poettering/sd-event-man
Martin Pitt [Fri, 20 Nov 2015 04:16:03 +0000 (05:16 +0100)] 
Merge pull request #1964 from poettering/sd-event-man

Finish the documentation for sd-event.h

8 years agoMerge pull request #1962 from mbiebl/install-completion-networkctl
Tom Gundersen [Fri, 20 Nov 2015 03:04:24 +0000 (04:04 +0100)] 
Merge pull request #1962 from mbiebl/install-completion-networkctl

build: install bash completion for networkctl

8 years agoman: fully document sd-event interfaces 1964/head
Lennart Poettering [Thu, 19 Nov 2015 22:38:54 +0000 (23:38 +0100)] 
man: fully document sd-event interfaces

This completes the set of man pages for sd-event and contains some minor
other fixes for other man pages too.

The sd_event_set_name(3) man page is renamed to
sd_event_source_set_description(3), which is the correct name of the
concept today.

8 years agosd-event: define a new PREPARING state
Lennart Poettering [Thu, 19 Nov 2015 22:33:55 +0000 (23:33 +0100)] 
sd-event: define a new PREPARING state

We already have a state RUNNING and EXITING when we dispatch regular and
exit callbacks. Let's introduce a new state called PREPARING that is
active while we invoke preparation callbacks. This way we have a state
each for all three kinds of event handlers.

The states are currently not documented, hence let's add a new state to
the end, before we start documenting this.

8 years agosd-event: make _ref() calls NOPs when NULL is passed to them
Lennart Poettering [Thu, 19 Nov 2015 22:32:52 +0000 (23:32 +0100)] 
sd-event: make _ref() calls NOPs when NULL is passed to them

Let's make _ref() calls happy when NULL is passed to them, and simply
return NULL without any assertion logic. This makes them nicely
symmetric to the _unref() calls which also are happy to take NULL and
become NOPs then.

8 years agoMerge pull request #1947 from phomes/sort-includes2
Lennart Poettering [Thu, 19 Nov 2015 22:32:30 +0000 (23:32 +0100)] 
Merge pull request #1947 from phomes/sort-includes2

tree-wide: sort includes in *.h

8 years agobuild: install bash completion for networkctl 1962/head
Michael Biebl [Thu, 19 Nov 2015 16:41:41 +0000 (17:41 +0100)] 
build: install bash completion for networkctl

This is a follow-up for commit e4f246b1b512c68260581c4976d2eb01cf7febdc.

8 years agotest: 01-basic: mask some services that currently don't run in qemu 1957/head
Daniel Mack [Thu, 19 Nov 2015 12:27:39 +0000 (13:27 +0100)] 
test: 01-basic: mask some services that currently don't run in qemu

8 years agotest: disable nspawn checks if machine wasn't booted with systemd
Daniel Mack [Thu, 19 Nov 2015 13:39:18 +0000 (14:39 +0100)] 
test: disable nspawn checks if machine wasn't booted with systemd

Sempaphore containers are not booted with systemd, so machined is not
available, which makes nspawn bail. Just skip nspawn tests in such
environments.

[ -d /run/systemd/system ] is esentially what sd_booted(3) is doing,
but on Ubuntu 15.05, without 'systemd-container' installed, we also
need to check for the presence of the systemd-machined binary.

8 years agoMerge pull request #1953 from martinpitt/fix-gitignore
Filipe Brandenburger [Thu, 19 Nov 2015 16:10:24 +0000 (08:10 -0800)] 
Merge pull request #1953 from martinpitt/fix-gitignore

gitignore: only ignore .html files in man/

8 years agogitignore: only ignore .html files in man/ 1953/head
Martin Pitt [Thu, 19 Nov 2015 09:51:19 +0000 (10:51 +0100)] 
gitignore: only ignore .html files in man/

src/journal-remote/browse.html is git-tracked source and should not be ignored.
Avoid accidentally ignoring similar ones in the future.

8 years agoMerge pull request #1960 from evverx/fix-ls-can-not-access
Daniel Mack [Thu, 19 Nov 2015 15:00:21 +0000 (16:00 +0100)] 
Merge pull request #1960 from evverx/fix-ls-can-not-access

tests: fix ls: cannot access /var/tmp/systemd-test.*/journal/*/*.journal

8 years agotests: fix ls: cannot access /var/tmp/systemd-test.*/journal/*/*.journal 1960/head
Evgeny Vereshchagin [Thu, 19 Nov 2015 14:48:21 +0000 (14:48 +0000)] 
tests: fix ls: cannot access /var/tmp/systemd-test.*/journal/*/*.journal

don't lose logs from the test machine too

8 years agoman: systemd.exec: add missing variables 1950/head
Evgeny Vereshchagin [Thu, 19 Nov 2015 06:28:03 +0000 (06:28 +0000)] 
man: systemd.exec: add missing variables

8 years agotest: make qemu use kvm if available
Daniel Mack [Thu, 19 Nov 2015 12:17:15 +0000 (13:17 +0100)] 
test: make qemu use kvm if available

If we're running in a KVM virtualized environment (such as Semaphore's
Docker enabled platform), pass '-cpu host' to QEMU.

8 years agotest: increase loop device size to 400MB
Daniel Mack [Thu, 19 Nov 2015 12:13:31 +0000 (13:13 +0100)] 
test: increase loop device size to 400MB

It turns out the full OS tree which is assembled into the loop-dev
mount point is bigger than 300MB. Increase the size.

8 years agoMerge pull request #1958 from teg/networkd-fixes
Daniel Mack [Thu, 19 Nov 2015 13:18:01 +0000 (14:18 +0100)] 
Merge pull request #1958 from teg/networkd-fixes

nd-ndisc: don't fail if src address is unset

8 years agond-ndisc: don't fail if src address is unset 1958/head
Tom Gundersen [Thu, 19 Nov 2015 11:18:04 +0000 (12:18 +0100)] 
nd-ndisc: don't fail if src address is unset

This happens when running our test-suite over a socketpair,
so don't fall over in that case.

Fixes issue #1952.

8 years agoMerge pull request #1951 from martinpitt/siphash-test-endianess
Filipe Brandenburger [Thu, 19 Nov 2015 08:15:01 +0000 (00:15 -0800)] 
Merge pull request #1951 from martinpitt/siphash-test-endianess

test: remove wrong endianess conversion in test-siphash24