Commit graph

24457 commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek ca8625e9f9 TODO: remove syslog broadcasting
This should most likely be implemented as part of journal-netlogd
(https://github.com/systemd/systemd/pull/1890), which it seems
is not going to be merged.

systemctl edit was mentioned twice.
2016-01-23 19:49:00 -05:00
Lennart Poettering a9eb840583 Merge pull request #2410 from dobyrch/master
systemctl: Allow 'edit' and 'cat' on unloaded units
2016-01-22 17:28:59 +01:00
Lennart Poettering e14c67d046 Merge pull request #2412 from fbuihuu/device-fixes
Device fixes
2016-01-22 17:28:05 +01:00
Franck Bui ac9d396b2a device: make sure to not ignore re-plugged device
systemd automatically mounts device unless 'noauto' is part of the
mount options. This can happen during boot if the device is plugged at
that time or later when the system is already running (the latter case
is not documented AFAICS).

After the systemd booted, I plugged my USB device which had an entry
in /etc/fstab with the default options and systemd automatically
mounted it.

However I noticed that if I unplugged and re-plugged the device the
automatic mounting of the device didn't work anymore: systemd didn't
notice that the device was re-plugged.

This was due to the device unit which was not recycled by the GC
during the unplug event because in the case of automounting, the mount
unit still referenced it. When the device was re-plugged, the old
device unit was reused but it still had the old sysfs path (amongst
other useful information).

Systemd was confused by the stalled sysfs path and decided to ignore
the plug event.

This patch fixes this issue by simply not doing the sanity checking on
the sysfs path if the device is in unplugged state.
2016-01-22 13:53:00 +01:00
Lennart Poettering dd17a7aa12 Merge pull request #2413 from msekletar/update-todo-reload
Remove TODO entry
2016-01-22 11:53:58 +01:00
Michal Sekletar 99d7bd1c00 Remove TODO entry
Feature was introduced by 06af2a0
2016-01-22 10:10:45 +01:00
Daniel Mack 620b63ec02 Merge pull request #2405 from zonque/sysusers
sysusers: use GID_FMT and UID_FMT instead of %d
2016-01-22 09:59:23 +01:00
Daniel Mack efda7e594e Merge pull request #2331 from yuwata/journal-remote-unit-v2
journal-remote: add SupplementaryGroups to systemd-journal-upload.service
2016-01-22 09:56:54 +01:00
Daniel Mack e813475097 Merge pull request #2332 from yuwata/journal-remote-tmpfiles-v2
journal-remote: tmpfiles.d/journal-remote.conf (v2)
2016-01-22 09:51:43 +01:00
Daniel Mack 371859d6b5 Merge pull request #2080 from chaloulo/split-mode-host-remove-port-from-journal-filename
journal-remote: split-mode=host, remove port from journal filename
2016-01-22 09:47:59 +01:00
Daniel Mack 07313a1826 Merge pull request #2409 from snakeroot/dropin-doc-2
man: describe precedence of drop-in .conf files over unit files
2016-01-22 09:10:13 +01:00
Daniel Mack 808abf0969 Merge pull request #2411 from ssahani/activate4
systemd-activate: Add support for datagram socket
2016-01-22 09:06:20 +01:00
Susant Sahani 530a071ab5 man: add man for systemd-activate datagram syntax 2016-01-22 09:42:54 +05:30
Susant Sahani 7b7afdfc07 systemd-activate: Add support for datagram sockets
core: Add flexible way to provide socket type
the socket type should be a diffrent argumet
in make_socket_fd . In this way we can set the socket
type like SOCK_STREAM SOCK_DGRAM in the address.

journal-remote: modify make_socket_fd
2016-01-22 09:41:44 +05:30
Douglas Christman 1e524ec6e2 systemctl: Allow 'edit' and 'cat' on unloaded units
Don't fail if the unit has a LoadError; otherwise `systemctl edit` cannot be
used to correct the error (e.g. multiple "ExecStart=" lines).

Remove file changed warning so cat output isn't interspersed with log messages.

Fixes #829
2016-01-21 18:22:55 -05:00
Chris Atkinson 0cf4c0d141 man: describe precedence of drop-in .conf files over unit files 2016-01-21 17:21:46 -05:00
Daniel Mack dda65f56ff sysusers: use GID_FMT and UID_FMT instead of %d 2016-01-21 16:35:19 +01:00
Daniel Mack e77435f2b0 Merge pull request #1359 from jengelh/ue
sysusers: help useless error message
2016-01-21 16:28:19 +01:00
Daniel Mack 390be1c86a Merge pull request #2071 from chaloulo/journal-upload-miss-logs
journal-upload : Ignore journal event when already in uploading state.
2016-01-21 16:23:46 +01:00
Lennart Poettering bef33b6c0a Merge pull request #2401 from lnykryn/sysv-split-deps-v4
v4: sysv-generator: do not join dependencies on one line, split them
2016-01-21 13:16:47 +01:00
Lukas Nykryn c584ffc0b7 sysv-generator: do not join dependencies on one line, split them
If there is a lot of initscripts and dependencies between them we might
end generating After= (and similar) lines which are longer then LINE_MAX
and thus rejected by parser in systemd.

Fixes #2099
2016-01-21 12:53:14 +01:00
Daniel Mack 9f3fda90a3 Merge pull request #2393 from evverx/ignore-test-dnssec-complex
.gitignore: add test-dnssec-complex
2016-01-21 11:52:01 +01:00
Daniel Mack 127a45c36f Merge pull request #2371 from evverx/add-valgrind-helper-for-daemon-reexec
core: add valgrind helper for daemon-reexec
2016-01-21 11:51:37 +01:00
Daniel Mack 9ecbcdffdf Merge pull request #2391 from keszybz/coverity
Coverity inspired fixes
2016-01-21 11:50:08 +01:00
Harald Hoyer 5c9ddf7ff4 Merge pull request #2341 from nmartensen/fstab-generator-fixes
Fstab-generator fixes
2016-01-21 11:39:31 +01:00
Evgeny Vereshchagin ecab97b280 .gitignore: add test-dnssec-complex
This is a follow-up for 412577e
2016-01-21 02:10:55 +00:00
Evgeny Vereshchagin dcadc9671c core: add valgrind helper for daemon-reexec
Inspired by https://github.com/systemd/systemd/issues/2187#issuecomment-165587140
2016-01-21 01:32:05 +00:00
Zbigniew Jędrzejewski-Szmek 2a836ca970 systemd: remove dead code
We only go to fail label if pam_pid <= 0.

CID #1306746.
2016-01-20 18:55:56 -05:00
Zbigniew Jędrzejewski-Szmek 5c687f08ca Add assert in barrier code
This function is not supposed to fail, it only returns a boolean.
So add an assert in case anyone calls it without proper initialization
of *b.
2016-01-20 18:55:56 -05:00
Zbigniew Jędrzejewski-Szmek baa33e79e3 timesyncd: use (void) to mark ignored value
CID #1325772.
2016-01-20 18:55:56 -05:00
Zbigniew Jędrzejewski-Szmek b07eb677a0 test-date: check return value
CID #1327432.
2016-01-20 18:55:56 -05:00
Zbigniew Jędrzejewski-Szmek def8b4c5d6 test-cgroup-mask: check return value
CID #1339830.
2016-01-20 18:55:56 -05:00
Zbigniew Jędrzejewski-Szmek 63a54aa15e libsystemd-network: avoid double free on error
This could happen if the remote sent us a badly formatted
option.

CID #1317206.
2016-01-20 18:55:55 -05:00
Zbigniew Jędrzejewski-Szmek b14fff6e44 libsystemd-network: use assert_se
It cannot fail.

CID #1320623.
2016-01-20 18:55:55 -05:00
Zbigniew Jędrzejewski-Szmek a0db8e46e5 networkd: use (void) to mark ignored values
Null link or netdev are handled fine.

CID #1338084.
2016-01-20 18:55:55 -05:00
Tom Gundersen 91c4b6db78 Merge pull request #2389 from bengal/dhcp-api-cleanup-v3
Improve libsystemd-networkd DHCP API (v3)
2016-01-21 00:54:35 +01:00
Zbigniew Jędrzejewski-Szmek dbb471ac89 test-tmpfiles: actually test that the file is temporary
CID #1341451.
2016-01-20 18:36:09 -05:00
Tom Gundersen e5b5f51322 Merge pull request #2329 from ssahani/tunnel
networkd: tunnel add support to configure address "any"
2016-01-20 18:09:54 +01:00
Tom Gundersen bedfbf8d33 Merge pull request #2337 from dhxgit/patch-1
Fix IPv6PrivacyExtension (networkd-ndisc.c)
2016-01-20 17:45:42 +01:00
Lennart Poettering d90833c93c Merge pull request #2054 from keszybz/nss-link-less-2
Nss link less 2
2016-01-20 17:39:07 +01:00
Tom Gundersen 4ddbb47472 Merge pull request #2267 from gdamjan/dont-drop-critical
networkd: link - do not drop config for critical interfaces
2016-01-20 17:33:59 +01:00
Beniamino Galvani 2c1ab8ca9b dhcp: make DHCP6_OPTION_* enum public
libsystemd-network provides the public function
sd_dhcp6_client_set_request_option() to enable the request of a given
DHCP option. However the enum defining such options is defined in the
internal header dhcp6-protocol.h. Move the enum definition to the
public header sd-dhcp6-client.h and properly namespace values.
2016-01-20 17:25:16 +01:00
Beniamino Galvani 22805d9207 dhcp: make DHCP_OPTION_* enum public
libsystemd-network provides the public function
sd_dhcp_client_set_request_option() to enable the request of a given
DHCP option. However the enum defining such options is defined in the
internal header dhcp-protocol.h. Move the enum definition to the
public header sd-dhcp-client.h and properly namespace values.
2016-01-20 17:25:16 +01:00
Beniamino Galvani f8693fc797 dhcp: export routes as opaque objects
At the moment sd_dhcp_lease_get_routes() returns an array of structs
which are not defined in public headers. Instead, change the function
to return an array of pointers to opaque sd_dhcp_route objects.
2016-01-20 17:25:16 +01:00
Lennart Poettering afd806fc48 Merge pull request #1607 from keszybz/lz4-remove-v1
Remove the old version of the lz4 stream compressor
2016-01-20 17:24:59 +01:00
Lennart Poettering 3b159f328c Merge pull request #2085 from fbuihuu/more-use-of-check-load-state
core: use bus_unit_check_load_state() in transaction_add_job_and_depe…
2016-01-20 17:18:44 +01:00
Daniel Mack 599601a4b9 Merge pull request #2222 from snakeroot/eventsplat
hwdb: remove references to udevadm info /dev/input/event*
2016-01-20 17:06:56 +01:00
Daniel Mack 8347ebc23a Merge pull request #2387 from keszybz/mhd-offset
journal-gatewayd: fix offset
2016-01-20 16:27:23 +01:00
Zbigniew Jędrzejewski-Szmek da0a9a3305 journal-gatewayd: fix offset
I was checking something when writing the patch and
committed this by mistake.
2016-01-20 10:12:18 -05:00
Lennart Poettering 16bd1e98dd Merge pull request #2385 from zonque/bootctl
bootctl: use DRAW_TREE_RIGHT rather than hard-coded UTF-8 character
2016-01-20 15:44:12 +01:00