]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
5 years agohwdb: Add accelerometer orientation quirk for the PoV P1005W-232 tablet 11097/head
Hans de Goede [Fri, 7 Dec 2018 19:50:30 +0000 (20:50 +0100)] 
hwdb: Add accelerometer orientation quirk for the PoV P1005W-232 tablet

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
5 years agohwdb: Add accelerometer orientation quirk for the Prowise PT301 tablet
Hans de Goede [Fri, 7 Dec 2018 17:35:51 +0000 (18:35 +0100)] 
hwdb: Add accelerometer orientation quirk for the Prowise PT301 tablet

5 years agocoding style: reduce text width to 109 characters
Zbigniew Jędrzejewski-Szmek [Thu, 6 Dec 2018 14:45:19 +0000 (15:45 +0100)] 
coding style: reduce text width to 109 characters

Patches are shown on github with a fixed width (no matter how wide the window
is). When line numbers are high (we have some files with 5 digit line numbers),
the diff does not fit, and horizontal scrolling must be used when viewing the
patch. This is super annoying. Let's reduce the width a bit. I think 109 is
still very wide, but at least the github issue should be alleviated.

5 years agoMerge pull request #11055 from poettering/resolved-close-fix
Lennart Poettering [Fri, 7 Dec 2018 23:23:43 +0000 (00:23 +0100)] 
Merge pull request #11055 from poettering/resolved-close-fix

a number of resolved fixes

5 years agoMerge pull request #10980 from poettering/mount-no-extras
Lennart Poettering [Fri, 7 Dec 2018 23:23:15 +0000 (00:23 +0100)] 
Merge pull request #10980 from poettering/mount-no-extras

mount and swap improvements

5 years agoswap: always add in extras when we load a swap unit 10980/head
Lennart Poettering [Wed, 28 Nov 2018 19:35:50 +0000 (20:35 +0100)] 
swap: always add in extras when we load a swap unit

Much like for the mount units we need fields such as the slice
initialized by the time we activate the swap, hence when the kernel
let's us know about a new swap that appeared we need to initialize the
slice in any Swap object we allocated for that right-away, even if we
can't read the real unit file for the swap device.

5 years agoswap: drop return value
Lennart Poettering [Wed, 28 Nov 2018 19:24:48 +0000 (20:24 +0100)] 
swap: drop return value

We don't actually return any valid 'r' here, let's explicitly return 0
here hence instead.

5 years agoswap: don't propagate issues with processing /proc/swaps
Lennart Poettering [Wed, 28 Nov 2018 19:24:07 +0000 (20:24 +0100)] 
swap: don't propagate issues with processing /proc/swaps

This follows similar recent changes in mount.c: error should be consider
local, and not be propagated.

5 years agoswap: when loading a unit from /proc/swaps, mark its load state as good
Lennart Poettering [Wed, 28 Nov 2018 19:23:32 +0000 (20:23 +0100)] 
swap: when loading a unit from /proc/swaps, mark its load state as good

This follows similar logic in the mount unit.

5 years agoswap: split out code adding in additional unit props into a function of its own
Lennart Poettering [Wed, 28 Nov 2018 19:22:31 +0000 (20:22 +0100)] 
swap: split out code adding in additional unit props into a function of its own

This adds swap_add_extras() similar to mount_add_extras().

No change in behaviour, just some refactoring.

5 years agoswap: fix misplaced comment
Lennart Poettering [Wed, 28 Nov 2018 19:06:55 +0000 (20:06 +0100)] 
swap: fix misplaced comment

5 years agoswap: flush out state when activating a unit, not when deactivating it
Lennart Poettering [Wed, 28 Nov 2018 19:05:49 +0000 (20:05 +0100)] 
swap: flush out state when activating a unit, not when deactivating it

This is similar to the previous commit which did the same change for
mount units.

5 years agomount: flush out cycle state on DEAD→MOUNTED only, not the other way round
Lennart Poettering [Wed, 28 Nov 2018 19:01:24 +0000 (20:01 +0100)] 
mount: flush out cycle state on DEAD→MOUNTED only, not the other way round

For services (and other units) we generally follow the rule that at the
beginning of each cycle, i.e. when the INACTIVE/FAILED state is left for
ACTIVATING/ACTIVE we flush out various state variables. Mount units
handled this differently so far when the unit state change was effected
outside of systemd: in that case these variables would be flushed out
when going back to INACTIVE/FAILED already.

Let's fix that, and flush out this state always during the activating
transition, not during the deactivating transition.

5 years agomount: replace three closely related mount flags into a proper flags enum
Lennart Poettering [Wed, 28 Nov 2018 18:06:30 +0000 (19:06 +0100)] 
mount: replace three closely related mount flags into a proper flags enum

We pass these flags around, and even created a structure for them. Let's
fix things properly, and make them a flags value of its own.

5 years agomount: strdup() device paths we collect
Lennart Poettering [Wed, 28 Nov 2018 18:02:47 +0000 (19:02 +0100)] 
mount: strdup() device paths we collect

We never know what the changes triggered by mount_set_state() do to the
unit. Let's be safe and copy the device path into our set, so that we
are safe against that.

5 years agomount: when the kernel reports a mount to be established reset all kinds of load...
Lennart Poettering [Wed, 28 Nov 2018 13:58:18 +0000 (14:58 +0100)] 
mount: when the kernel reports a mount to be established reset all kinds of load failures

It doesn't matter what kind of precise failure we had earlier with
loading the unit, let's report that it loaded successfully now, after
all the kernel is an OK source for that, like any other.

5 years agomount: regenerate all deps whenever a mount's parameters changes
Lennart Poettering [Wed, 28 Nov 2018 13:56:27 +0000 (14:56 +0100)] 
mount: regenerate all deps whenever a mount's parameters changes

Whenever we notice a change on an existing /proc/self/mountinfo line,
let's update the deps generated from it. For that, let's flush out the
old deps generated this way, and add in the new ones.

This takes benefit of the fact that today (unlike a comment this patch
removes says) we can remove deps in a somewhat reasonable way.

5 years agomount: when allocating a Mount object based on /proc/self/mountinfo mark it so
Lennart Poettering [Wed, 28 Nov 2018 13:51:04 +0000 (14:51 +0100)] 
mount: when allocating a Mount object based on /proc/self/mountinfo mark it so

Let's set 'from_proc_self_mountinfo' right away, since we know its from
there. This is important so that when the load queue is dispatched (and
thus mount_load() called) this
fact is already known.

5 years agomount: let mount_add_extras() take care of remote-fs.target deps
Lennart Poettering [Wed, 28 Nov 2018 13:42:21 +0000 (14:42 +0100)] 
mount: let mount_add_extras() take care of remote-fs.target deps

In a previous commit we added logic that mount_add_extras() (or more
precisely mount_add_default_dependencies()) adds in dependencies on
remote-fs.target and local-fs.target, hence we can drop this from
mount_setup_new_unit() and let the usual load queue dispatching take
care of this.

5 years agomount: use free_and_strdup() over plain strdup()
Lennart Poettering [Wed, 28 Nov 2018 13:40:56 +0000 (14:40 +0100)] 
mount: use free_and_strdup() over plain strdup()

Let's initialize two fields with free_and_strdup() rather than directly
with strdup(). The fields should not be initialized so far, but it's
still nicer to be prepared for futzre code changes and always free
what's stored before replacing it.

5 years agomount: generate error message matching the error location
Lennart Poettering [Wed, 28 Nov 2018 11:52:12 +0000 (12:52 +0100)] 
mount: generate error message matching the error location

5 years agomount: move allocation of Unit object into mount_setup_new_unit()
Lennart Poettering [Wed, 28 Nov 2018 11:50:01 +0000 (12:50 +0100)] 
mount: move allocation of Unit object into mount_setup_new_unit()

This should encapsulate things in a nicer way.

5 years agomount: add a common helper for filling in info from /proc/self/mountinfo
Lennart Poettering [Wed, 28 Nov 2018 11:46:35 +0000 (12:46 +0100)] 
mount: add a common helper for filling in info from /proc/self/mountinfo

5 years agomount: don't propagate errors from mount_setup_unit() further up
Lennart Poettering [Wed, 28 Nov 2018 11:41:44 +0000 (12:41 +0100)] 
mount: don't propagate errors from mount_setup_unit() further up

If we can't process a specific line in /proc/self/mountinfo we should
log about it (which we do), but this should not affect other lines, nor
further processing of mount units. Let's keep these failures local.

Fixes: #10874
5 years agomount: simplify de-serialization of control PID a bit
Lennart Poettering [Wed, 28 Nov 2018 11:41:14 +0000 (12:41 +0100)] 
mount: simplify de-serialization of control PID a bit

5 years agomount: serialize umount retry counter across reloads/reexec
Lennart Poettering [Wed, 28 Nov 2018 11:40:37 +0000 (12:40 +0100)] 
mount: serialize umount retry counter across reloads/reexec

5 years agomount: make sure mount_add_extras() is always invoked when we load a mount unit
Lennart Poettering [Wed, 28 Nov 2018 11:37:43 +0000 (12:37 +0100)] 
mount: make sure mount_add_extras() is always invoked when we load a mount unit

We need to make sure that the slice property is initialized whenever
mount_load() is invoked, even if we fail to load things properly off
disk. This is important since we generally don't allow changing the
slice after a unit has been started. But given that we must track the
state of external objects with mount units we must hence initialize the
property no matter what.

5 years agomount: document that mount_add_extras() must work with active units, too
Lennart Poettering [Wed, 28 Nov 2018 11:37:23 +0000 (12:37 +0100)] 
mount: document that mount_add_extras() must work with active units, too

5 years agomount: set up local-fs.target/remote-fs.target deps in mount_add_default_dependencies...
Lennart Poettering [Wed, 28 Nov 2018 11:35:37 +0000 (12:35 +0100)] 
mount: set up local-fs.target/remote-fs.target deps in mount_add_default_dependencies() too

This deps are very similar to the -pre deps, hence establish them at the
same place, in particular as they should only be generated if default
deps are on.

This allows us to later on remove similar code that adds in these deps
whenever /proc/self/mountinfo changes.

5 years agomount: remove unnecessary initialization of device_wants_mount and 'if'
Lennart Poettering [Wed, 28 Nov 2018 11:33:45 +0000 (12:33 +0100)] 
mount: remove unnecessary initialization of device_wants_mount and 'if'

5 years agomount: use mfree() where appropriate
Lennart Poettering [Wed, 28 Nov 2018 11:33:21 +0000 (12:33 +0100)] 
mount: use mfree() where appropriate

5 years agomount: rename needs_quota() → mount_needs_quota()
Lennart Poettering [Wed, 28 Nov 2018 11:32:35 +0000 (12:32 +0100)] 
mount: rename needs_quota() → mount_needs_quota()

No change of logic, just some renaming, in order to match more closely
the naming of the other, similar functions.

5 years agomount: merge redundant call mount_needs_network() into mount_is_network()
Lennart Poettering [Wed, 28 Nov 2018 11:32:14 +0000 (12:32 +0100)] 
mount: merge redundant call mount_needs_network() into mount_is_network()

5 years agoresolved: drop unused field structure 11055/head
Lennart Poettering [Tue, 4 Dec 2018 21:18:57 +0000 (22:18 +0100)] 
resolved: drop unused field structure

5 years agoresolved: implicitly disconnect a stream from its server when a stream is closed
Lennart Poettering [Tue, 4 Dec 2018 21:17:49 +0000 (22:17 +0100)] 
resolved: implicitly disconnect a stream from its server when a stream is closed

Previously, the callback function did this, but let's do this in the
caller instead, to make this more robust, and use our new helper
function for it.

5 years agoresolved: add new helper for carefully detach a stream from any server
Lennart Poettering [Tue, 4 Dec 2018 21:15:22 +0000 (22:15 +0100)] 
resolved: add new helper for carefully detach a stream from any server

This adds a helper call for detaching a DnsServer from a DnsStream if
the latter is the "default" stream of the server.

Also, let's unref the stream in dns_stream_stop() rather than
dns_stream_free(): as soon as our stream is disconnected by stopping
there's really no need to keep it as default stream for the server
around.

Since dns_stream_free() calls dns_stream_stop() we can remove it from
the former.

5 years agoresolved: pin stream while calling callbacks for it
Lennart Poettering [Tue, 4 Dec 2018 21:13:39 +0000 (22:13 +0100)] 
resolved: pin stream while calling callbacks for it

These callbacks might unref the stream, but we still have to access it,
let's hence ref it explicitly.

Maybe fixes: #10725

5 years agoresolved: take particular care when detaching DnsServer from its default stream
Lennart Poettering [Tue, 4 Dec 2018 21:09:08 +0000 (22:09 +0100)] 
resolved: take particular care when detaching DnsServer from its default stream

DnsStream and DnsServer have a symbiotic relationship: one DnsStream is
the current "default" stream of the server (and thus reffed by it), but
each stream also refs the server it is connected to. This cyclic
dependency can result in weird situations: when one is
destroyed/unlinked/stopped it needs to unregister itself from the other,
but doing this will trigger unregistration of the other. Hence, let's
make sure we unregister the stream from the server before destroying it,
to break this cycle.

Most likely fixes: #10725

5 years agoresolved: before assuming we have a server, check we are talking DNS and not LLMNR...
Lennart Poettering [Tue, 4 Dec 2018 19:53:14 +0000 (20:53 +0100)] 
resolved: before assuming we have a server, check we are talking DNS and not LLMNR/mDNS

5 years agoresolved: comment headers better
Lennart Poettering [Tue, 4 Dec 2018 19:52:43 +0000 (20:52 +0100)] 
resolved: comment headers better

5 years agoresolved: add small helper to pick DNS port number
Lennart Poettering [Tue, 4 Dec 2018 19:41:06 +0000 (20:41 +0100)] 
resolved: add small helper to pick DNS port number

This shouldn't be hidden in some function argument expression. Let's
make this more explicit by turning this into its own helper function.

5 years agoresolved: rename dns_stream_on_packet() → on_stream_packet()
Lennart Poettering [Tue, 4 Dec 2018 19:40:20 +0000 (20:40 +0100)] 
resolved: rename dns_stream_on_packet() → on_stream_packet()

Let's name this similar to on_stream_complete(). Moreover we shouldn't
invade dns_stream's namespace if we are a consumer of it.

5 years agoresolved: use structured initialization for DnsServer allocation
Lennart Poettering [Tue, 4 Dec 2018 19:24:26 +0000 (20:24 +0100)] 
resolved: use structured initialization for DnsServer allocation

5 years agoresolved: exit early on failure
Lennart Poettering [Tue, 4 Dec 2018 19:21:02 +0000 (20:21 +0100)] 
resolved: exit early on failure

5 years agoresolved: don't read packet from DnsStream on on_stream_complete() of DnsTransaction
Lennart Poettering [Tue, 4 Dec 2018 19:19:16 +0000 (20:19 +0100)] 
resolved: don't read packet from DnsStream on on_stream_complete() of DnsTransaction

We register an on_packet() handler anyway, which is called first.
There's hence no need to check in on_stream_complete() again, as it is
already taken by that time.

5 years agoresolved: add new accessor dns_stream_take_read_packet() for taking read packet from...
Lennart Poettering [Tue, 4 Dec 2018 19:18:11 +0000 (20:18 +0100)] 
resolved: add new accessor dns_stream_take_read_packet() for taking read packet from stream

This ensures the packet is complete when it is taken out, and resets
n_read so that we can start reading the next one.

5 years agoresolved: remove redundant code
Lennart Poettering [Tue, 4 Dec 2018 18:50:11 +0000 (19:50 +0100)] 
resolved: remove redundant code

5 years agoresolved: add some assert()s
Lennart Poettering [Tue, 4 Dec 2018 18:29:15 +0000 (19:29 +0100)] 
resolved: add some assert()s

5 years agoresolved: be more careful with types in dns_stream_writev()
Lennart Poettering [Tue, 4 Dec 2018 18:27:25 +0000 (19:27 +0100)] 
resolved: be more careful with types in dns_stream_writev()

Let's not name a variable of type ssize_t "r". We usually use "r" for
return values of API calls that return some kind of error as in int.
This creates a lot of confusion if used differently here, which actually
resulted in connect()'s return value being assigned to this mistyped "r"
by accident.

Let's rename the variable "m" hence, and not use it for connect() return
values.

5 years agoresolved: line split dns_stream_new() function signature
Lennart Poettering [Tue, 4 Dec 2018 18:26:54 +0000 (19:26 +0100)] 
resolved: line split dns_stream_new() function signature

5 years agoresolved: reorder things, to place registration of DnsStream in Manager close to...
Lennart Poettering [Tue, 4 Dec 2018 18:14:51 +0000 (19:14 +0100)] 
resolved: reorder things, to place registration of DnsStream in Manager close to each other

5 years agoresolved: ensure DnsStream.fd is initialized before first error path
Lennart Poettering [Tue, 4 Dec 2018 18:14:28 +0000 (19:14 +0100)] 
resolved: ensure DnsStream.fd is initialized before first error path

5 years agoresolved: simplify on_stream_io() a bit
Lennart Poettering [Tue, 4 Dec 2018 18:13:55 +0000 (19:13 +0100)] 
resolved: simplify on_stream_io() a bit

5 years agotravis: also compile systemd on Debian Testing
Evgeny Vereshchagin [Fri, 7 Dec 2018 08:49:51 +0000 (09:49 +0100)] 
travis: also compile systemd on Debian Testing

This should help to catch issues like https://github.com/systemd/systemd/issues/11075

5 years agoman: fix reference to sd_journal_print(3)
Filipe Brandenburger [Wed, 5 Dec 2018 22:13:02 +0000 (14:13 -0800)] 
man: fix reference to sd_journal_print(3)

The reference in systemd-journald.service(8) was incorrectly pointing to
man volume 4 instead of 3.

This commit should fix the broken link at
https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html

5 years agomissing: re-add drm related entries
Yu Watanabe [Fri, 7 Dec 2018 09:11:36 +0000 (18:11 +0900)] 
missing: re-add drm related entries

This effectively reverts dab28f09051445fe370466e767e31652e0804a0f.

Fixes #11075.

5 years agobash-completion: analyze: support 'security'
Yu Watanabe [Thu, 6 Dec 2018 17:51:56 +0000 (18:51 +0100)] 
bash-completion: analyze: support 'security'

5 years agoMerge pull request #11072 from yuwata/fix-networkctl-ip6gre
Zbigniew Jędrzejewski-Szmek [Fri, 7 Dec 2018 07:03:32 +0000 (08:03 +0100)] 
Merge pull request #11072 from yuwata/fix-networkctl-ip6gre

networkctl: fix TYPE field of ip6gre devices

5 years agomissing: add ARPHRD_IP6GRE 11072/head
Yu Watanabe [Thu, 6 Dec 2018 16:42:44 +0000 (17:42 +0100)] 
missing: add ARPHRD_IP6GRE

This fixes TYPE field of networkctl's output for ip6gre devices.

5 years agoaf-list,arphrd-list: also include relevant missing_*.h headers
Yu Watanabe [Thu, 6 Dec 2018 16:42:21 +0000 (17:42 +0100)] 
af-list,arphrd-list: also include relevant missing_*.h headers

5 years agojournal: use missing_audit.h to generate audit_type-list.txt
Yu Watanabe [Fri, 7 Dec 2018 02:48:37 +0000 (11:48 +0900)] 
journal: use missing_audit.h to generate audit_type-list.txt

5 years agocap-list: use missing_capabilty.h to generate list of capabilities
Yu Watanabe [Thu, 6 Dec 2018 16:38:37 +0000 (17:38 +0100)] 
cap-list: use missing_capabilty.h to generate list of capabilities

5 years agoMerge pull request #11038 from keszybz/man-timeouts
Yu Watanabe [Fri, 7 Dec 2018 01:53:40 +0000 (02:53 +0100)] 
Merge pull request #11038 from keszybz/man-timeouts

Small improvements for documentation of timeout options

5 years agosystemctl: be nice to users and give hint how to specify "-.mount"
Zbigniew Jędrzejewski-Szmek [Thu, 6 Dec 2018 14:04:14 +0000 (15:04 +0100)] 
systemctl: be nice to users and give hint how to specify "-.mount"

https://bugzilla.redhat.com/show_bug.cgi?id=1656639
Using "--" is a trick that is hard to discover. Let's give users a hint:

$ build/systemctl status -.service
  build/systemctl: invalid option -- '.'
  Hint: to specify units starting with a dash, use "--":
        build/systemctl [OPTIONS...] {COMMAND} -- -.service ...

I use program_invocation_name because that's what getopt seems to use.
"::" is used in the option string so that getopt doesn't complain about
a missing argument in case somebody passes "-." as the argument. After all
"." is not a real option.

5 years agoshared/blkid-util: do not include util.h needlessly
Zbigniew Jędrzejewski-Szmek [Thu, 6 Dec 2018 08:56:37 +0000 (09:56 +0100)] 
shared/blkid-util: do not include util.h needlessly

5 years agoRevert "pager: close all fds when forking off pager"
Yu Watanabe [Thu, 6 Dec 2018 17:03:01 +0000 (18:03 +0100)] 
Revert "pager: close all fds when forking off pager"

This reverts commit 55844aebb60b42f56335eb147dd395269d8fb686.

As `exe_name_pipe` are closed by safe_fork().

5 years agoMerge pull request #11056 from poettering/resolved-ifindex
Yu Watanabe [Thu, 6 Dec 2018 18:29:42 +0000 (19:29 +0100)] 
Merge pull request #11056 from poettering/resolved-ifindex

resolved: request incoming ifindex for DNS UDP packets, too

5 years agoMerge pull request #11066 from yuwata/test-network-tiny-cleanups
Yu Watanabe [Thu, 6 Dec 2018 18:16:53 +0000 (19:16 +0100)] 
Merge pull request #11066 from yuwata/test-network-tiny-cleanups

test-network: several cleanups

5 years agotest-resolved: fix error code check in assertion
Alexey Bogdanenko [Thu, 6 Dec 2018 14:54:46 +0000 (17:54 +0300)] 
test-resolved: fix error code check in assertion

If file "/etc/hosts" does not exist, fopen fails and sets errno to ENOENT
("No such file or directory"). So errno should be compared with ENOENT.

This mistake causes test test-resolved-etc-hosts to fail when run on Debian
image built with mkosi.debian included in the repo. The image does not include
"/etc/hosts" file as it is not created by debootstrap, see debootstrap manpage
https://manpages.debian.org/stretch/debootstrap/debootstrap.8.en.html.

5 years agoMerge pull request #10935 from poettering/rlimit-nofile-safe
Zbigniew Jędrzejewski-Szmek [Thu, 6 Dec 2018 16:19:21 +0000 (17:19 +0100)] 
Merge pull request #10935 from poettering/rlimit-nofile-safe

Merged by hand to resolve a trivial conflict in TODO.

5 years agoMerge pull request #11063 from yuwata/update-missing-v3
Yu Watanabe [Thu, 6 Dec 2018 15:54:27 +0000 (16:54 +0100)] 
Merge pull request #11063 from yuwata/update-missing-v3

missing: split missing.h into small pieces

5 years agotest-network: make search_words_in_file() hit multi words 11066/head
Yu Watanabe [Thu, 6 Dec 2018 15:46:16 +0000 (16:46 +0100)] 
test-network: make search_words_in_file() hit multi words

5 years agotest-network: delete rules before running next test
Yu Watanabe [Thu, 6 Dec 2018 15:02:55 +0000 (16:02 +0100)] 
test-network: delete rules before running next test

5 years agotest-network: add a line break after starting networkd
Yu Watanabe [Thu, 6 Dec 2018 14:33:23 +0000 (15:33 +0100)] 
test-network: add a line break after starting networkd

This may be ugly. But otherwise, outputs of several check commands
are shown without new line...

5 years agotest-network: check link before starting dnsmasq
Yu Watanabe [Thu, 6 Dec 2018 14:14:57 +0000 (15:14 +0100)] 
test-network: check link before starting dnsmasq

5 years agotest-network: show command outputs
Yu Watanabe [Thu, 6 Dec 2018 14:12:28 +0000 (15:12 +0100)] 
test-network: show command outputs

5 years agotest-network: sort imported modules
Yu Watanabe [Thu, 6 Dec 2018 13:59:49 +0000 (14:59 +0100)] 
test-network: sort imported modules

5 years agotest-network: sort links and units
Yu Watanabe [Thu, 6 Dec 2018 13:57:20 +0000 (14:57 +0100)] 
test-network: sort links and units

5 years agotest-network: fix typo in class name
Yu Watanabe [Thu, 6 Dec 2018 14:29:55 +0000 (15:29 +0100)] 
test-network: fix typo in class name

5 years agoMerge pull request #10963 from poettering/bus-force-state-change-signal
Zbigniew Jędrzejewski-Szmek [Thu, 6 Dec 2018 15:42:21 +0000 (16:42 +0100)] 
Merge pull request #10963 from poettering/bus-force-state-change-signal

force PropertiesChanged bus signal on all unit state changes

5 years agofd-util: Fix error handling in safe_fclose
Paweł Szewczyk [Fri, 30 Nov 2018 11:35:23 +0000 (12:35 +0100)] 
fd-util: Fix error handling in safe_fclose

Function fclose_nointr returns negative value on error.

5 years agoMerge pull request #10994 from poettering/sd-bus-tweaks
Zbigniew Jędrzejewski-Szmek [Thu, 6 Dec 2018 14:26:05 +0000 (15:26 +0100)] 
Merge pull request #10994 from poettering/sd-bus-tweaks

small sd-bus tweaks

5 years agoMerge pull request #10988 from ssahani/IFLA_BRPORT_MCAST_TO_UCAST
Yu Watanabe [Thu, 6 Dec 2018 13:32:52 +0000 (14:32 +0100)] 
Merge pull request #10988 from ssahani/IFLA_BRPORT_MCAST_TO_UCAST

networkd: bridge add support to configure multicast_to_unicast

5 years agoMerge pull request #11032 from ssahani/invert-rule
Yu Watanabe [Thu, 6 Dec 2018 13:27:36 +0000 (14:27 +0100)] 
Merge pull request #11032 from ssahani/invert-rule

networkd: RPDB rule - add support to configure inverted rule.

5 years agotree-wide: drop missing.h from headers and use relevant missing_*.h 11063/head
Yu Watanabe [Thu, 6 Dec 2018 06:41:52 +0000 (07:41 +0100)] 
tree-wide: drop missing.h from headers and use relevant missing_*.h

5 years agolockfile: drop unnecessary headers from lockfile-util.h
Yu Watanabe [Thu, 6 Dec 2018 06:30:35 +0000 (07:30 +0100)] 
lockfile: drop unnecessary headers from lockfile-util.h

5 years agonsflsgs: drop missing.h and use missing_sched.h
Yu Watanabe [Thu, 6 Dec 2018 06:23:23 +0000 (07:23 +0100)] 
nsflsgs: drop missing.h and use missing_sched.h

5 years agoutil: drop missing.h from socket-util.h
Yu Watanabe [Thu, 6 Dec 2018 06:20:07 +0000 (07:20 +0100)] 
util: drop missing.h from socket-util.h

5 years agoutil: drop missing.h from time-util.c
Yu Watanabe [Thu, 6 Dec 2018 06:19:27 +0000 (07:19 +0100)] 
util: drop missing.h from time-util.c

5 years agomissing: move fs or mount related definitions to missing_fs.h
Yu Watanabe [Thu, 6 Dec 2018 05:57:27 +0000 (06:57 +0100)] 
missing: move fs or mount related definitions to missing_fs.h

This also fixes errnous definition MS_REC -> MS_SLAVE.

5 years agomissing: drop falloc related definitions
Yu Watanabe [Thu, 6 Dec 2018 05:55:19 +0000 (06:55 +0100)] 
missing: drop falloc related definitions

All these values are exposed earlier than linux-3.11.
Let's drop them.

5 years agomissing: move sched.h related definitions to missing_sched.h
Yu Watanabe [Thu, 6 Dec 2018 06:13:02 +0000 (07:13 +0100)] 
missing: move sched.h related definitions to missing_sched.h

5 years agomissing: drop old drm related definitions
Yu Watanabe [Thu, 6 Dec 2018 06:12:26 +0000 (07:12 +0100)] 
missing: drop old drm related definitions

These values are exposed earlier than linux-3.11.
Let's use drm/drm.h.

5 years agomissing: drop BPF_XOR as we have linux/bpf_common.h
Yu Watanabe [Thu, 6 Dec 2018 05:50:40 +0000 (06:50 +0100)] 
missing: drop BPF_XOR as we have linux/bpf_common.h

5 years agomissing: drop DM_DEFERRED_REMOVE as we have dm-ioctl.h
Yu Watanabe [Thu, 6 Dec 2018 05:50:11 +0000 (06:50 +0100)] 
missing: drop DM_DEFERRED_REMOVE as we have dm-ioctl.h

5 years agomissing: move definition of secure_getenv() to missing_stdlib.h
Yu Watanabe [Thu, 6 Dec 2018 05:49:18 +0000 (06:49 +0100)] 
missing: move definition of secure_getenv() to missing_stdlib.h

5 years agomissing: move rand related definitions to missing_random.h
Yu Watanabe [Thu, 6 Dec 2018 05:47:47 +0000 (06:47 +0100)] 
missing: move rand related definitions to missing_random.h

5 years agomissing: drop TIOCVHANGUP
Yu Watanabe [Thu, 6 Dec 2018 05:46:33 +0000 (06:46 +0100)] 
missing: drop TIOCVHANGUP

This is defined before linux-3.11. Also, its value depnends on
architecture. So, it is not good to define in this form.

5 years agomissing: add memfd related definitions to missing_mman.h
Yu Watanabe [Thu, 6 Dec 2018 05:44:47 +0000 (06:44 +0100)] 
missing: add memfd related definitions to missing_mman.h

5 years agomissing: move timer related definition to missing_timerfd.h
Yu Watanabe [Thu, 6 Dec 2018 05:43:12 +0000 (06:43 +0100)] 
missing: move timer related definition to missing_timerfd.h