Lennart Poettering [Fri, 15 Aug 2014 14:04:46 +0000 (16:04 +0200)]
util: make is_localhost() check for 'localdomain' too, so that we can use it for both validating domains and host names
Lennart Poettering [Fri, 15 Aug 2014 14:02:42 +0000 (16:02 +0200)]
networkd: fix minor memory leak
Lennart Poettering [Fri, 15 Aug 2014 14:02:29 +0000 (16:02 +0200)]
networkctl: show acquired system domains
Lennart Poettering [Fri, 15 Aug 2014 14:02:14 +0000 (16:02 +0200)]
sd-network: add system-wide sd_network_get_domains() API
Lennart Poettering [Fri, 15 Aug 2014 13:42:56 +0000 (15:42 +0200)]
networkd: always write out locally configured settings first, dhcp-acquired ones later
This is primarily important for the domains list, as we really should
prefer the locally configured domain over the dhcp supplied ones when we
use it as a search list.
Lennart Poettering [Fri, 15 Aug 2014 13:36:17 +0000 (15:36 +0200)]
networkd: remove "*" from domains list
Also, simplify things a bit and make sure we don't forget looking at one
of the entries.
Lennart Poettering [Fri, 15 Aug 2014 13:34:56 +0000 (15:34 +0200)]
networkctl: two OOM fixes
Lennart Poettering [Fri, 15 Aug 2014 13:34:33 +0000 (15:34 +0200)]
sd-nework: be more careful with error codes, return ENODATA if you lack information
Tom Gundersen [Fri, 15 Aug 2014 12:49:31 +0000 (14:49 +0200)]
sd-network: add support for wildcard domains
Tom Gundersen [Fri, 15 Aug 2014 12:21:08 +0000 (14:21 +0200)]
networkd: add support for Domains= to .network files
This allows the search/routing domanis to be specified per link/network and be passed
on to resolved.
Harald Hoyer [Fri, 15 Aug 2014 12:39:05 +0000 (14:39 +0200)]
kernel-install/90-loaderentry.install: fixed cmdline parsing
If /etc/kernel/cmdline is missing or empty, we read /proc/cmdline and
want to filter out the initrd line. Due to a bug, the whole contents was
filtered out.
David Herrmann [Fri, 15 Aug 2014 11:20:18 +0000 (13:20 +0200)]
test: fix strtod test for real
The "0,5" syntax was actually right. The real problem is, the test should
only run if the local system has the de_DE.UTF-8 locale. Therefore, skip
the tests if setlocale() fails. This is kinda ugly, as it is done
silently, but we cannot skip partial tests with the current
infrastructure. Should be fine this way.
Lennart Poettering [Fri, 15 Aug 2014 11:18:50 +0000 (13:18 +0200)]
util: never use ether_ntoa(), since it formats with %x, not %02x, which makes ethernet addresses look funny
Lennart Poettering [Fri, 15 Aug 2014 10:57:46 +0000 (12:57 +0200)]
unit: remove spurious newline
Lennart Poettering [Fri, 15 Aug 2014 10:57:33 +0000 (12:57 +0200)]
networkctl: increase column width for link type to 18, to accomodate for 'ieee80211_radiotap'
Tom Gundersen [Fri, 15 Aug 2014 10:45:59 +0000 (12:45 +0200)]
networkd: rename UseDomainName to UseDomains
This option will also apply to the search domains, so make it plural.
Lennart Poettering [Fri, 15 Aug 2014 10:07:33 +0000 (12:07 +0200)]
sysctl: always write net.ipv4.conf.all.xyz= in addition to net.ipv4.conf.default.xyz=
Otherwise we have a boot-time race, where interfaces that popped up
after the sysctl service would get the settings applied, but all others
wouldn't.
Lennart Poettering [Fri, 15 Aug 2014 09:56:36 +0000 (11:56 +0200)]
cgroup: downgrade log messages about non-existant cgroup attributes to LOG_DEBUG
Lennart Poettering [Fri, 15 Aug 2014 09:55:43 +0000 (11:55 +0200)]
cgroup: never try to create files in cgroupfs, only open them for writing
This should have the benefit that cg_set_attribute() returns ENOENT
instead of EACCESS when we use it for non-existing attributes.
David Herrmann [Fri, 15 Aug 2014 08:44:43 +0000 (10:44 +0200)]
test: fix strtod() test
One strtod() test is broken since:
commit
8e211000025940b770794abf5754de61b4add0af
Author: Thomas Hindoe Paaboel Andersen <phomes@gmail.com>
Date: Mon Aug 4 23:13:31 2014 +0200
test: use fabs on doubles
The commit was right, so no reason to revert it, but the test was broken
before and only worked by coincidence. Convert "0,5" to "0.5" so we don't
depend on locales for double conversion (or well, we depend on "C" which
seems reasonable).
Lennart Poettering [Fri, 15 Aug 2014 01:06:11 +0000 (03:06 +0200)]
networkctl: print local domain name in status output
Lennart Poettering [Fri, 15 Aug 2014 01:05:44 +0000 (03:05 +0200)]
dhcp: the localhost isn't valid as hostname either
Umut Tezduyar Lindskog [Tue, 8 Jul 2014 14:16:14 +0000 (16:16 +0200)]
coredump: display libdw fail string on stack trace fail
- systemd[1]: hello.service: main process exited, code= dumped, status=3/QUIT
- systemd-coredump[2541]: Failed to generate stack trace: Unwinding not supported for this architecture
- systemd-coredump[2541]: Process 1024 (hello) of user 154 dumped core.
Lennart Poettering [Fri, 15 Aug 2014 00:41:14 +0000 (02:41 +0200)]
man: drop references to removed and obsolete 'systemctl load' command
Susant Sahani [Thu, 14 Aug 2014 17:36:13 +0000 (23:06 +0530)]
socket: add bus property for bus property NoDelay
Missed to add the SD_BUS_PROPERTY for no_delay.
Susant Sahani [Thu, 14 Aug 2014 17:36:12 +0000 (23:06 +0530)]
socket: Add support for TCP defer accept
TCP_DEFER_ACCEPT Allow a listener to be awakened only when data
arrives on the socket. If TCP_DEFER_ACCEPT set on a server-side
listening socket, the TCP/IP stack will not to wait for the final
ACK packet and not to initiate the process until the first packet
of real data has arrived. After sending the SYN/ACK, the server will
then wait for a data packet from a client. Now, only three packets
will be sent over the network, and the connection establishment delay
will be significantly reduced.
Susant Sahani [Thu, 14 Aug 2014 17:36:11 +0000 (23:06 +0530)]
socket: Add Support for TCP keep alive variables
The tcp keep alive variables now can be configured via conf
parameter. Follwing variables are now supported by this patch.
tcp_keepalive_intvl: The number of seconds between TCP keep-alive probes
tcp_keepalive_probes: The maximum number of TCP keep-alive probes to
send before giving up and killing the connection if no response is
obtained from the other end.
tcp_keepalive_time: The number of seconds a connection needs to be
idle before TCP begins sending out keep-alive probes.
Lennart Poettering [Thu, 14 Aug 2014 23:25:36 +0000 (01:25 +0200)]
update TODO
Timofey Titovets [Thu, 14 Aug 2014 23:05:47 +0000 (02:05 +0300)]
core: Refuse mount on symlink
Tom Gundersen [Thu, 14 Aug 2014 23:08:46 +0000 (01:08 +0200)]
networkd: don't respect domainname from DHCP by default
Most routers will send garbage, so make this opt-in only.
Tom Gundersen [Thu, 14 Aug 2014 23:04:53 +0000 (01:04 +0200)]
sd-dhcp-lease: verify hostname and domainnames we receive
Tom Gundersen [Thu, 14 Aug 2014 20:18:22 +0000 (22:18 +0200)]
resolved: pull in domain names from sd-network
Tom Gundersen [Thu, 14 Aug 2014 18:35:37 +0000 (20:35 +0200)]
sd-network: add sd_network_linkg_get_domains()
For now this only exposes the domain name (DHCP Option 15), and not
the search string (DHCP Option 119), which will be implemented in
a follow-up patch.
Eelco Dolstra [Thu, 14 Aug 2014 17:59:16 +0000 (19:59 +0200)]
machine_kill(): Don't kill the unit when killing the leader
If "machinectl poweroff" or "machinectl reboot" is used on a
systemd-nspawn container started with --keep-unit and --register, it
should *only* send the appropriate signal to the leader PID (i.e. the
container's systemd process). It shouldn't fall through to
manager_kill_unit() to also send the signal to the unit. The latter
ends up killing systemd-nspawn, which takes down the container
prematurely.
Lennart Poettering [Thu, 14 Aug 2014 17:56:22 +0000 (19:56 +0200)]
resolved: clarify that LLMNR scopes must have a link assigned
This is supposed to remove some compiler warnings:
http://lists.freedesktop.org/archives/systemd-devel/2014-July/021393.html
Lennart Poettering [Thu, 14 Aug 2014 17:02:48 +0000 (19:02 +0200)]
update TODO
Jon Severinsson [Mon, 21 Jul 2014 22:39:13 +0000 (00:39 +0200)]
core: do not add default dependencies to /usr mount unit
This makes no difference if /usr was mounted in the initrd,
and brings the behaviour of legacy systems closer to those
with a propper initrd.
Lennart Poettering [Thu, 14 Aug 2014 15:16:37 +0000 (17:16 +0200)]
update TODO
Lennart Poettering [Thu, 14 Aug 2014 15:15:09 +0000 (17:15 +0200)]
core: move status line ellipsation to 50% of the line
http://lists.freedesktop.org/archives/systemd-devel/2014-July/021591.html
Lennart Poettering [Thu, 14 Aug 2014 14:36:25 +0000 (16:36 +0200)]
update TODO
Lennart Poettering [Thu, 14 Aug 2014 14:36:18 +0000 (16:36 +0200)]
analyze: some fixes to the --help text
Lennart Poettering [Thu, 14 Aug 2014 14:34:47 +0000 (16:34 +0200)]
Revert "socket: add support for TCP fast Open"
This reverts commit
9528592ff8d7ff361da430285deba8196e8984d5.
Apparently TFO is actually the default at least for the server side now.
Also the setsockopt doesn't actually take a bool, but a qlen integer.
Tom Gundersen [Thu, 14 Aug 2014 12:13:36 +0000 (14:13 +0200)]
networkd: link - don't enter LINK_CONFIGURED more than once
Tom Gundersen [Thu, 14 Aug 2014 12:01:11 +0000 (14:01 +0200)]
networkd: link - print address lifetime for tracked addresses
This should help in debugging issues with DHCP lease renewal.
Susant Sahani [Thu, 14 Aug 2014 09:01:47 +0000 (14:31 +0530)]
socket: add support for TCP fast Open
TCP Fast Open (TFO) speeds up the opening of successiveTCP)
connections between two endpoints.It works by using a TFO cookie
in the initial SYN packet to authenticate a previously connected
client. It starts sending data to the client before the receipt
of the final ACK packet of the three way handshake is received,
skipping a round trip and lowering the latency in the start of
transmission of data.
Lennart Poettering [Thu, 14 Aug 2014 02:13:31 +0000 (04:13 +0200)]
update TODO
Lennart Poettering [Thu, 14 Aug 2014 01:30:40 +0000 (03:30 +0200)]
update TODO
Susant Sahani [Mon, 28 Jul 2014 06:48:29 +0000 (12:18 +0530)]
socket: add support for tcp nagle
This patch adds support for TCP TCP_NODELAY socket option. This can be
configured via NoDelay conf parameter. TCP Nagle's algorithm works by
combining a number of small outgoing messages, and sending them all at
once. This controls the TCP_NODELAY socket option.
Lennart Poettering [Thu, 14 Aug 2014 00:59:02 +0000 (02:59 +0200)]
logind: add new session type "web" for PAM web clients, such as cockpit
On request of Stef Walter.
Dave Reisner [Tue, 11 Mar 2014 14:41:22 +0000 (10:41 -0400)]
util: allow strappenda to take any number of args
This makes strappenda3 redundant, so we remove its usage and
definition. Add a few tests along the way for sanity.
Tom Gundersen [Wed, 13 Aug 2014 23:59:58 +0000 (01:59 +0200)]
sd-event: drop _likely_()
This is not certain to be likely.
Lennart says: a frequent usecase is invoking some function regularly in intervals
in such a case every single iteration we'll have to rearm
Tobias Geerinckx-Rice [Mon, 4 Aug 2014 20:15:52 +0000 (22:15 +0200)]
timer: order OnCalendar units after timer-sync.target if DefaultDependencies=no
Avoids triggering timers prematurely on systems with significantly inaccurate
clocks, or some embedded platforms that lack one entirely.
Tom Gundersen [Wed, 13 Aug 2014 23:35:16 +0000 (01:35 +0200)]
udev: link-config - fix crash due to missing hwaddr
Reported by: master.nosferatu@gmail.com
Tom Gundersen [Wed, 13 Aug 2014 23:28:35 +0000 (01:28 +0200)]
test: dhcp-server - fix test
Reported by Corey Hammerton on G+
Tom Gundersen [Wed, 13 Aug 2014 23:26:55 +0000 (01:26 +0200)]
sd-dhcp-server: linebreaks
Don't overflow unnecessarily.
Tom Gundersen [Wed, 13 Aug 2014 22:22:27 +0000 (00:22 +0200)]
sd-event: do not arm timers unnecessarily
Rather than recalculating the next timeout on every loop, we only do it when something changed.
Lennart Poettering [Wed, 13 Aug 2014 23:23:20 +0000 (01:23 +0200)]
networkctl: also use the same color logic when running "networkctl status" without arguments
Lennart Poettering [Wed, 13 Aug 2014 23:18:37 +0000 (01:18 +0200)]
networkctl: add the same color logic to "list" and "status" outputs
And always put operational state first, setup state second.
Lennart Poettering [Wed, 13 Aug 2014 23:10:08 +0000 (01:10 +0200)]
networkctl: name setup state variable setup_state
Lennart Poettering [Wed, 13 Aug 2014 23:08:46 +0000 (01:08 +0200)]
networkctl: update column header to new 'setup' state naming
Lennart Poettering [Wed, 13 Aug 2014 23:00:57 +0000 (01:00 +0200)]
resolved: enable LLMNR
THis was accidentally broken, as we truned off LLMNR far to frequently,
where we only wanted to turn off LLMNr on IPV6 on kernels lacking
support for it.
Lennart Poettering [Wed, 13 Aug 2014 23:00:15 +0000 (01:00 +0200)]
resolved: allow passing on which protocol, family and interface to look something up
Also, return on which protocol/family/interface we found something.
Umut Tezduyar Lindskog [Tue, 5 Aug 2014 10:17:09 +0000 (12:17 +0200)]
ldconfig: add configure option to disable
Tom Gundersen [Wed, 13 Aug 2014 20:55:49 +0000 (22:55 +0200)]
sd-networkd: rename link_get_state to link_get_setup_state
Suggested by Kay and Lennart.
Tom Gundersen [Wed, 13 Aug 2014 20:44:35 +0000 (22:44 +0200)]
sd-network: rename operstates 'down' -> 'off' and 'up' -> 'no-carrier'
Suggested by Lennart and Kay.
Tom Gundersen [Wed, 13 Aug 2014 20:37:45 +0000 (22:37 +0200)]
sd-network: /_get_link_/_link_get_/
The link is the 'object', so make this in line with our usual naming convention.
Suggested by Kay and Lennart.
Daniel Buch [Wed, 13 Aug 2014 20:02:27 +0000 (22:02 +0200)]
networkctl: color status dump without link name
Lets mimic colored operational state dump as if link name is appiled
Lennart Poettering [Wed, 13 Aug 2014 19:07:07 +0000 (21:07 +0200)]
timesyncd: don't trip up if networkd isn't running and can't tell us any NTP servers
Eelco Dolstra [Wed, 6 Aug 2014 11:14:51 +0000 (13:14 +0200)]
journald: Fix off-by-one error in "Missed X kernel messages" warning
On receiving a message, "kernel_seqnum" is set to "serial + 1". So
subtracting 1 will cause messages like "Missed 0 kernel messages",
which should be "Missed 1 kernel messages".
Lennart Poettering [Wed, 13 Aug 2014 18:02:38 +0000 (20:02 +0200)]
sd-network: bring comments up-to-date
Lennart Poettering [Wed, 13 Aug 2014 18:01:19 +0000 (20:01 +0200)]
mount-setup: fix counting of early mounts without SMACK
http://lists.freedesktop.org/archives/systemd-devel/2014-August/021772.html
Lennart Poettering [Wed, 13 Aug 2014 18:01:00 +0000 (20:01 +0200)]
update TODO
Lennart Poettering [Wed, 13 Aug 2014 16:53:05 +0000 (18:53 +0200)]
journald: also increase the SendBuffer of /dev/log to 8M
http://lists.freedesktop.org/archives/systemd-devel/2014-August/021825.html
Harald Hoyer [Wed, 13 Aug 2014 14:45:53 +0000 (16:45 +0200)]
switch-root: not only mkdir the parents but the target dir
switch-root would only mkdir the parents of the mount move directories.
With this patch, the mount move target directory is created to make
switch-root to an empty root directory work.
Denis Kenzior [Sat, 9 Aug 2014 07:06:21 +0000 (02:06 -0500)]
bus-bloom: Fix bloom filter calculation
i is being used incorrectly. It is used to refer to the number of
indexes calculated so far (out of k). However, it is also incremented
when a new hash key is being used. This means that the results are
inconsistent with the desired behavior described in PORTING-DBUS1
document.
The expected result is that for the default values of m and k (512, 8)
the 1st hash key should produce 4 indexes. The second hash key is used
for the next 4 and overall 8 indexes into m are calculated.
The current behavior results in 6 indexes being calculated, 4 coming
from hash key 1 and 2 others from hash key 5.
Tom Gundersen [Wed, 13 Aug 2014 13:43:57 +0000 (15:43 +0200)]
TODO
Tom Gundersen [Wed, 13 Aug 2014 13:40:59 +0000 (15:40 +0200)]
TODO
Tom Gundersen [Wed, 13 Aug 2014 13:36:11 +0000 (15:36 +0200)]
networkctl: add colors to admin state and fix alignment
It is useful to color in the admin state both to easily spot failed links, but also to quickly
distinguish between links that are fully configured and in degraded mode (only IPv4LL) or in
degraded mode and still waiting for DHCP.
Tom Gundersen [Wed, 13 Aug 2014 13:34:27 +0000 (15:34 +0200)]
sd-network: rename state INITALIZING to PENDING and expose as any other state
This is the state when we are waiting for udev to initialize the device, and waiting for
libudev and rtnl to be in sync. In the future we probably will also be waiting for nl80211.
At this point we do not yet have enough information to know whether or not networkd should
be handling the device.
Lennart Poettering [Wed, 13 Aug 2014 13:00:12 +0000 (15:00 +0200)]
resolved: skip IPv6 LLMNR if IPv6 is not available
David Herrmann [Mon, 11 Aug 2014 16:17:54 +0000 (18:17 +0200)]
login: share VT-signal handler between sessions
sd-event does not allow multiple handlers for a single signal. However,
logind sets up signal handlers for each session with VT_PROCESS set (that
is, it has an active controller). Therefore, registering multiple such
controllers will fail.
Lets make the VT-handler global, as it's mostly trivial, anyway. This way,
the sessions don't have to take care of that and we can simply acknowledge
all VT-switch requests as we always did.
Tom Gundersen [Tue, 12 Aug 2014 21:12:09 +0000 (23:12 +0200)]
networkd: dhcp4 - fix copy-paste error
Reported by poma.
Tom Gundersen [Tue, 12 Aug 2014 18:50:13 +0000 (20:50 +0200)]
networkd: disable ipv4ll default routes by default
This causes machines without connectivity to hang where they would otherwise fail. Keep it
opt-in for now, but consider whether we sholud just drop it.
Tom Gundersen [Tue, 12 Aug 2014 18:00:34 +0000 (20:00 +0200)]
sd-network: split the operstate 'unknown' into 'down' and 'up'
Tom Gundersen [Fri, 8 Aug 2014 10:12:17 +0000 (12:12 +0200)]
networkd: link - split out dhcp4 handling
Tom Gundersen [Tue, 12 Aug 2014 11:15:11 +0000 (13:15 +0200)]
udev: link-config - fix naming policy
Don't exit the name-finding loop when the 'kernel' policy is detected. We should
still find a fallback name if possible in the (very likely) case that no kernel
name is set at all.
Tom Gundersen [Tue, 12 Aug 2014 11:13:12 +0000 (13:13 +0200)]
udev: link-config - whitespace
Don't overflow 80 cols unneccessarily (we are ok with doing it when it improves readability, but that's not the case here).
Tom Gundersen [Wed, 6 Aug 2014 13:54:25 +0000 (15:54 +0200)]
networkd: link - fix IN_SET usage
Tom Gundersen [Wed, 6 Aug 2014 13:54:03 +0000 (15:54 +0200)]
networkd: link - split out ipv4ll handling
Tom Gundersen [Wed, 6 Aug 2014 11:48:11 +0000 (13:48 +0200)]
networkd: link - make check for whether addresses/routes are being configured implicit
Tom Gundersen [Wed, 6 Aug 2014 10:50:53 +0000 (12:50 +0200)]
networkd: split out networkd-link.h
Lennart Poettering [Tue, 12 Aug 2014 17:50:36 +0000 (19:50 +0200)]
update TODO
Lennart Poettering [Tue, 12 Aug 2014 17:49:15 +0000 (19:49 +0200)]
man: minimal updates to resolved.conf man page
Lennart Poettering [Tue, 12 Aug 2014 17:48:24 +0000 (19:48 +0200)]
timesyncd: beef up NTP server selection logic, and acquire NTP servers from DHCP
Lennart Poettering [Tue, 12 Aug 2014 17:33:09 +0000 (19:33 +0200)]
resolved: return exit code of event loop
Lennart Poettering [Tue, 12 Aug 2014 17:32:55 +0000 (19:32 +0200)]
resolved: unify logic how we flush out DNS servers we learnt
Lennart Poettering [Tue, 12 Aug 2014 17:29:38 +0000 (19:29 +0200)]
sd-resolve: scale number of threads by queries currently being processed, rather than number of queries currently referenced
This way a query that blocks for a longer time, and whose reference has
been dropped won't block subsequent lookups from finishing.
Lennart Poettering [Tue, 12 Aug 2014 17:29:27 +0000 (19:29 +0200)]
sd-resolve: fix allocation if query ids, never reuse them
Lennart Poettering [Tue, 12 Aug 2014 17:28:32 +0000 (19:28 +0200)]
sd-resolve: keep floating query referenced while we access it
Lennart Poettering [Tue, 12 Aug 2014 14:58:56 +0000 (16:58 +0200)]
timesyncd: split up into multiple source file
The source file got much too large, hence split up the sources into
multiple per-object files, similar in style to resolved.