Lennart Poettering [Wed, 14 May 2014 22:43:44 +0000 (00:43 +0200)]
hashmap: add hashmap_remove2() to remove item from hashtable and return both value and key
Lennart Poettering [Wed, 14 May 2014 20:44:45 +0000 (22:44 +0200)]
core: no need to pass bus object to selinux access check calls anymore
Lennart Poettering [Tue, 6 May 2014 17:15:36 +0000 (19:15 +0200)]
bus: add userdata API for bus name tracker objects
Tom Gundersen [Wed, 14 May 2014 20:03:14 +0000 (22:03 +0200)]
core: sysvcompat - avoid repeated function call
Tom Gundersen [Mon, 12 May 2014 19:26:54 +0000 (21:26 +0200)]
core: sysvcompat - $network should be equivalent to network-online, rather than network target
Most likely the facility needed is actual connectivity, rather than whether or not the
network managment daemon is running.
We also need to explicitly pull in the network-online.target, as it is not active by
default.
This means {systemd-networkd,NetworkManager}-wait-online.service, can be enabled by default
as part of network-online.target, and only delay boot when some service actively pulls it in.
See: <https://bugzilla.gnome.org/show_bug.cgi?id=728965>
Cc: Pavel Šimerda <psimerda@redhat.com>
Cc: Michal Sekletar <msekleta@redhat.com>
David Herrmann [Tue, 13 May 2014 18:08:18 +0000 (20:08 +0200)]
shared: add ring buffer
New "struct ring" object that implements a basic ring buffer for arbitrary
byte-streams. A new basic runtime test is also added.
This will be needed for our pty helpers for systemd-console and friends.
David Herrmann [Tue, 13 May 2014 17:47:58 +0000 (19:47 +0200)]
shared: add ALIGN_POWER2 macro
Sounds easy, turns out to be horrible to implement: ALIGN_POWER2 returns
the next higher power of 2. clz(0) is undefined, same is true for
left-shift-overflows, yey, C rocks!
Lennart Poettering [Tue, 13 May 2014 14:40:53 +0000 (16:40 +0200)]
replace more dup() by F_DUPFD_CLOEXEC
Lennart Poettering [Tue, 13 May 2014 14:35:34 +0000 (16:35 +0200)]
pam_systemd: use F_DUPFD_CLOEXEC when dupping session fds
http://lists.freedesktop.org/archives/systemd-devel/2014-May/019034.html
Tom Gundersen [Tue, 13 May 2014 10:23:14 +0000 (12:23 +0200)]
udev: rename netif - properly break lines in kmsg
Before:
30,997,4553484,-;systemd-udevd[439]: renamed network interface wwan0 to wwp0s20u4i6systemd-udevd[439]: renamed network interface wlan0 to wlp3s0
30,998,
1175077801,c;systemd-udevd[2345]: renamed network interface wwan0 to wwp0s20u4i6
After:
30,834,4553484,-;systemd-udevd[439]: renamed network interface wwan0 to wwp0s20u4i6
30,835,4732949,-;systemd-udevd[439]: renamed network interface wlan0 to wlp3s0
30,988,
1175077801,-;systemd-udevd[2345]: renamed network interface wwan0 to wwp0s20u4i6
Tom Gundersen [Tue, 13 May 2014 07:39:03 +0000 (09:39 +0200)]
timesyncd: start after networkd
This is needed for the network monitor to work (as it requires networkd to set up the correct directories first).
Susant Sahani [Fri, 2 May 2014 17:59:56 +0000 (23:29 +0530)]
networkd-ipip-tunnel: add support ttl
Add support for ipip tunnel ttl.
Susant Sahani [Thu, 1 May 2014 10:46:55 +0000 (16:16 +0530)]
networkd: Add todo patch kernel for tunnel module alias
Add to todo :
1. Patch kernel to support module alias for tunnel device
2. Remove libkmod dependency from networkd
Tom Gundersen [Mon, 12 May 2014 15:11:13 +0000 (17:11 +0200)]
networkd: manager - don't leak kmod context
Also, keep the kmod_new internal to networkd-manager.c
Tom Gundersen [Mon, 12 May 2014 15:37:52 +0000 (17:37 +0200)]
networkd: unit - add cap to load modules
Remember to drop this when the kernel gains autoloading for all netdev kinds.
Susant Sahani [Mon, 12 May 2014 05:18:24 +0000 (10:48 +0530)]
networkd: introduce ipip tunnel
This patch enables basic ipip tunnel support.
It works with kernel module ipip
example conf:
file: ipip.netdev
[NetDev]
Name=ipip-tun
Kind=ipip
MTUBytes=1480
[Tunnel]
Local=192.168.223.238
Remote=192.169.224.239
TTL=64
file: ipip.network
[Match]
Name=em1
[Network]
Tunnel=ipip-tun
[tomegun:
- drop unused variable
- take ref when enslaving]
Michael Marineau [Mon, 12 May 2014 07:26:16 +0000 (09:26 +0200)]
job: always add waiting jobs to run queue during coldplug
commit
20a83d7bf was not equivalent to the original bug fix proposed by
Michal Sekletar <msekleta@redhat.com>. The committed version only added
the job to the run queue if the job had a timeout, which most jobs do
not have. Just re-ordering the code gets us the intended functionality
Tom Gundersen [Sun, 11 May 2014 11:58:18 +0000 (13:58 +0200)]
networkd: get preexiting addresses when a link is added
Tom Gundersen [Sat, 10 May 2014 17:39:03 +0000 (19:39 +0200)]
networkd: listen for address changes
This is proof-of-concept only, as we only log the changes but don't do anything
with it.
Tom Gundersen [Sat, 10 May 2014 18:16:10 +0000 (20:16 +0200)]
rtnl: message - fix check for broadcast messages
Tom Gundersen [Sat, 10 May 2014 18:15:52 +0000 (20:15 +0200)]
rtnl: message - read group membership of incoming messages
Tom Gundersen [Sat, 10 May 2014 17:55:00 +0000 (19:55 +0200)]
rtnl: message - verify that we read the pending message size from the kernel
Reuse the auth-checking for both the peek and the real read.
Tom Gundersen [Sat, 10 May 2014 17:40:11 +0000 (19:40 +0200)]
rtnl: message - move code around
No functional change.
Tom Gundersen [Sat, 10 May 2014 17:38:32 +0000 (19:38 +0200)]
rtnl: change from bitmask to enum for rtnl groups
The bitmask is deprecated in the kernel, so move to the new interface. At the moment
this does not make a difference for us, but it avoids having to change the API in the future.
Tom Gundersen [Sat, 10 May 2014 14:08:03 +0000 (16:08 +0200)]
networkd: link - redo flag change logging
Make the logging less verbose by only printing all the changed flags on one line,
at the same time make it more complete by supporting all flags currently supported
by the kernel.
We still fall back to printing the raw flags in case we get something we do not recognize
This may be useful when running on new kernels.
Tom Gundersen [Sat, 10 May 2014 14:06:23 +0000 (16:06 +0200)]
sd-rtnl: message - add support for getting prefixlen from address messages
Tom Gundersen [Fri, 9 May 2014 16:05:42 +0000 (18:05 +0200)]
networkd: network - fix leak
Tom Gundersen [Fri, 9 May 2014 16:02:14 +0000 (18:02 +0200)]
networkd: manager - initialize variables
Tom Gundersen [Fri, 9 May 2014 16:00:20 +0000 (18:00 +0200)]
networkd: netdev - rephrase logging message a bit
Make it fit with what is logged from the link.
Tom Gundersen [Fri, 9 May 2014 15:59:20 +0000 (17:59 +0200)]
networkd: manager - refactor link tracking a bit
Zbigniew Jędrzejewski-Szmek [Sat, 10 May 2014 01:44:25 +0000 (03:44 +0200)]
systemctl: return an error code is status fails
This got lost in the refactoring in
f74294c1dabb4.
Also make sure that the return code corresponds to the *first* failure,
not the last.
https://lists.fedoraproject.org/pipermail/devel/2014-May/199080.html
Tom Gundersen [Fri, 9 May 2014 12:23:17 +0000 (14:23 +0200)]
networkd: link - don't log errors when missing routes/addresses are dropped
We were ignoring the wrong errno.
Tom Gundersen [Fri, 9 May 2014 10:11:15 +0000 (12:11 +0200)]
networkd: link - handle links coming back to life
When enslaving devices, we may receieve DELLINK/NEWLINK for the same ifindex,
let's not be confused by this.
Tom Gundersen [Fri, 9 May 2014 10:20:21 +0000 (12:20 +0200)]
networkd: reorder bonding and bridging
A link should only ever be part of one, but if we accidentally do both, let's do it
in the right order so the failure is more obvious in the logs.
Tom Gundersen [Thu, 8 May 2014 22:26:22 +0000 (00:26 +0200)]
sd-dhcp-client: improve logging when stopping client
'Requested by user' was confusing, just drop it.
Tom Gundersen [Thu, 8 May 2014 16:55:11 +0000 (18:55 +0200)]
networkd: manager - drop links and netdevs when we receive DELLINK
Tom Gundersen [Thu, 8 May 2014 19:08:12 +0000 (21:08 +0200)]
networkd: netdev - drop if creation fails
This ensures that all links waiting to be enslaved are notified that the netdev does not exist.
Tom Gundersen [Thu, 8 May 2014 18:50:05 +0000 (20:50 +0200)]
networkd: link - introduce LINGER state and link_drop()
We need the LINGER state in case we still have references to the link after it has been dropped.
Tom Gundersen [Thu, 8 May 2014 18:42:22 +0000 (20:42 +0200)]
networkd: netdev - introduce LINGER state and netdev_drop()
We need the LINGER state in case we still have references to the netdev after it has been dropped.
Tom Gundersen [Thu, 8 May 2014 18:40:56 +0000 (20:40 +0200)]
networkd: netdev - cancel all callbacks when freeing
This notifies the link that the netdev no longer exists.
Tom Gundersen [Thu, 8 May 2014 17:46:06 +0000 (19:46 +0200)]
networkd: link - take refcounts on links
We need to take a refcount on the link whenever we expect a callback. The exceptions
are the ipv4ll/dhcp clients as their lifetimes are guaranteed to be shorter than that
of the link.
Tom Gundersen [Thu, 8 May 2014 17:28:17 +0000 (19:28 +0200)]
networkd: network - do reference counting on netdevs
Tom Gundersen [Thu, 8 May 2014 17:22:53 +0000 (19:22 +0200)]
networkd: network - merge all netdev parsing into one function
Tom Gundersen [Thu, 8 May 2014 16:54:26 +0000 (18:54 +0200)]
networkd: introduce refcounting for Links and NetDevs
Tom Gundersen [Thu, 8 May 2014 16:53:32 +0000 (18:53 +0200)]
networkd: link - clean up state files
Also keep the path to the lease file around rather than regenarating it all the time.
Zbigniew Jędrzejewski-Szmek [Fri, 9 May 2014 12:39:25 +0000 (08:39 -0400)]
man: sd_journal_send does nothing when journald is not available
https://bugzilla.redhat.com/show_bug.cgi?id=1096067
Tom Gundersen [Thu, 8 May 2014 15:32:32 +0000 (17:32 +0200)]
timesyncd: read global operational state from networkd
Tom Gundersen [Thu, 8 May 2014 15:21:37 +0000 (17:21 +0200)]
sd-network: expose global operational state
Tom Gundersen [Wed, 7 May 2014 13:26:47 +0000 (15:26 +0200)]
timesyncd: only run when the system has a carrier on a network interface
As the operational state detection in sd-network is still too primitive, timesyncd
will likely try to connect a bit early, so the first attempt will fail.
Tom Gundersen [Thu, 8 May 2014 11:14:42 +0000 (13:14 +0200)]
networkd-wait-online: flush monitor events after processing
Otherwise the event will trigger immediately again.
Tom Gundersen [Thu, 8 May 2014 11:11:23 +0000 (13:11 +0200)]
networkd-wait-online: fix false positives when checking if a link is managed by networkd
Tom Gundersen [Thu, 8 May 2014 10:32:11 +0000 (12:32 +0200)]
networkd: link - operstate is an enum, not a bitmask
Łukasz Stelmach [Thu, 8 May 2014 10:57:26 +0000 (12:57 +0200)]
core: check the right variable for failed open()
Jan Engelhardt [Wed, 7 May 2014 23:28:46 +0000 (01:28 +0200)]
doc: balance C indirections in function prototypes
Shift the asterisks in the documentation's prototypes such that they
are consistent among each other. Use the right side to match what is
used in source code.
Addendum to commit v209~82.
Jan Engelhardt [Wed, 7 May 2014 23:28:47 +0000 (01:28 +0200)]
doc: write out stdin/stdout file descriptors
"When refering to code, STDOUT/STDOUT/STDERR are replaced with
stdin/stdout/stderr, and in other places they are replaced with
normal phrases like standard output, etc."
Addendum to commit v209~127.
Jan Engelhardt [Wed, 7 May 2014 23:28:45 +0000 (01:28 +0200)]
doc: comma placement corrections and word order
Set commas where there should be some.
Some improvements to word order.
Jan Engelhardt [Wed, 7 May 2014 23:28:44 +0000 (01:28 +0200)]
doc: corrections to words and forms
This patch exchange words which are inappropriate for a situation,
deletes duplicated words, and adds particles where needed.
Jani Nikula [Wed, 7 May 2014 09:01:01 +0000 (12:01 +0300)]
backlight: handle saved brightness exceeding max brightness
If too high a brightness value has been saved (e.g. due to kernel
mechanism changing from one kernel version to another, or booting the
userspace on another system), the brightness update fails and the
process exits.
Clamp saved brightness between the policy minimum introduced in
commit
7b909d7407965c03caaba30daae7aee113627a83
Author: Josh Triplett <josh@joshtriplett.org>
Date: Tue Mar 11 21:16:33 2014 -0700
backlight: Avoid restoring brightness to an unreadably dim level
and the absolute maximum.
https://bugs.freedesktop.org/show_bug.cgi?id=78200
Dimitris Spingos [Wed, 7 May 2014 16:27:02 +0000 (18:27 +0200)]
po: add Greek translation
https://bugs.freedesktop.org/show_bug.cgi?id=78064
Tom Gundersen [Wed, 7 May 2014 14:35:52 +0000 (16:35 +0200)]
networkd-wait-online: rely purely on sd-network events and drop rtnl hooks
Tom Gundersen [Wed, 7 May 2014 14:42:47 +0000 (16:42 +0200)]
networkd: link - always maintain link operstate regardless of admin state
Tom Gundersen [Wed, 7 May 2014 14:35:05 +0000 (16:35 +0200)]
sd-network: expose both admin and operational state directly
Also add a call to check if a link is loopback, as this should commonly be ignored.
Kay Sievers [Wed, 7 May 2014 12:45:32 +0000 (14:45 +0200)]
timesyncd: shorten log message
Jan Engelhardt [Sat, 3 May 2014 17:15:27 +0000 (19:15 +0200)]
doc: adhere to XML syntax
Jan Engelhardt [Sat, 3 May 2014 17:15:24 +0000 (19:15 +0200)]
doc: typographical fine tuning
Jan Engelhardt [Sat, 3 May 2014 17:15:23 +0000 (19:15 +0200)]
doc: use non-contracted forms in written documents
Tom Gundersen [Tue, 6 May 2014 20:59:22 +0000 (22:59 +0200)]
sd-dhcp-client: use asynchronous_close()
close() is a blocking call, which may slow things down measurably when running many dhcp
clients in the same single-threaded main loop. Let's just use the asynchronous version
instead to avoid the problem.
Tom Gundersen [Tue, 6 May 2014 20:02:32 +0000 (22:02 +0200)]
sd-dhcp: network - don't leak sockets on failure
Also some general cleanups
Tom Gundersen [Tue, 6 May 2014 20:02:14 +0000 (22:02 +0200)]
sd-dhcp: network - set TOS on outgoing packets
This should improve performance on busy wireless networks and the
like. Inspired by a similar change in dnsmasq.
Tom Gundersen [Tue, 6 May 2014 19:57:09 +0000 (21:57 +0200)]
dhcp-network: don't pass ifindex to bind_udp_socket
UDP sockets can anyway not be bound to specific netdev's. The packages would have to be filtered
when received instead.
Lennart Poettering [Tue, 6 May 2014 16:51:08 +0000 (18:51 +0200)]
man: document sd_event_add_time(3)
Lennart Poettering [Tue, 6 May 2014 16:20:49 +0000 (18:20 +0200)]
timesyncd: hook up systemd-timesyncd with systemd-timedated
Later on we will probably remove support for controlling any other NTP
implementations but systemd-timesyncd, but for now, let's keep things
generic
Lennart Poettering [Tue, 6 May 2014 16:08:04 +0000 (18:08 +0200)]
timesyncd: never accept NTP time from server that is older than systemd's release time
Lennart Poettering [Tue, 6 May 2014 15:03:28 +0000 (17:03 +0200)]
journald: remove some dead code
Lennart Poettering [Tue, 6 May 2014 15:03:09 +0000 (17:03 +0200)]
load-fragment: minor cleanup
Lennart Poettering [Tue, 6 May 2014 15:02:54 +0000 (17:02 +0200)]
update TODO
Lennart Poettering [Tue, 6 May 2014 15:02:11 +0000 (17:02 +0200)]
timesyncd: read server settings from a configuration file
Also, allow compiling in a default server list via a configure command
line item.
Lennart Poettering [Tue, 6 May 2014 14:15:02 +0000 (16:15 +0200)]
timesyncd: when an NTP server doesn't respond, proceed with the next
Lennart Poettering [Tue, 6 May 2014 11:07:15 +0000 (13:07 +0200)]
list: make LIST_FIND_TAIL work for empty lists
Lennart Poettering [Tue, 6 May 2014 11:04:29 +0000 (13:04 +0200)]
update TODO
Lennart Poettering [Tue, 6 May 2014 10:34:03 +0000 (12:34 +0200)]
timesyncd: keep order of NTP servers
Lennart Poettering [Tue, 6 May 2014 10:33:53 +0000 (12:33 +0200)]
update TODO
Lennart Poettering [Tue, 6 May 2014 10:33:43 +0000 (12:33 +0200)]
timesyncd: make sure to reread /etc/resolv.conf when we try the next NTP server
Kay Sievers [Tue, 6 May 2014 10:29:20 +0000 (12:29 +0200)]
timesyncd: accept NTP version 3 responses
Lennart Poettering [Mon, 5 May 2014 23:37:29 +0000 (01:37 +0200)]
timesyncd: add a more servers by default
Lennart Poettering [Mon, 5 May 2014 23:37:13 +0000 (01:37 +0200)]
timesyncd: also try next server when sendto() fails
Lennart Poettering [Mon, 5 May 2014 23:29:47 +0000 (01:29 +0200)]
timesyncd: don't busy loop when we cannot connect to any servers
Lennart Poettering [Mon, 5 May 2014 23:17:35 +0000 (01:17 +0200)]
timesyncd: properly handle multiple configured NTP servers and multiplei IP addresses per server name
Lennart Poettering [Mon, 5 May 2014 21:53:17 +0000 (23:53 +0200)]
timesyncd: lookup name server via sd-resolve, support IPv6, react to SIGINT/SITERM
Lennart Poettering [Mon, 5 May 2014 21:49:19 +0000 (23:49 +0200)]
sd-resolve: make sure we can destroy a query object from its own callback handler
Lennart Poettering [Mon, 5 May 2014 21:48:25 +0000 (23:48 +0200)]
sd-event: allow disabling event sources when an event object is dying anyway
Lennart Poettering [Mon, 5 May 2014 21:47:56 +0000 (23:47 +0200)]
sd-event: make it easy to bind signal handling to event loop exits
By passing a NULL callback provide a simple way to make event loops exit
on SIGTERM and other signals.
Lennart Poettering [Mon, 5 May 2014 19:47:38 +0000 (21:47 +0200)]
timesync: use safe_close() where possible
Lennart Poettering [Mon, 5 May 2014 19:47:09 +0000 (21:47 +0200)]
timesync: always initialize structs when declaring them as far as possible with contsant values
Lennart Poettering [Mon, 5 May 2014 19:39:10 +0000 (21:39 +0200)]
build-sys: enable timesyncd by default
Lennart Poettering [Mon, 5 May 2014 19:18:54 +0000 (21:18 +0200)]
update TODO
Lennart Poettering [Mon, 5 May 2014 19:18:34 +0000 (21:18 +0200)]
build-sys: move async.[ch] to src/shared
So that we can use it at multiple places.
Kay Sievers [Mon, 5 May 2014 16:49:43 +0000 (18:49 +0200)]
core: require cgroups filesystem to be available
We should no longer pretend that we can run in any sensible way
without the kernel supporting us with cgroups functionality.
Kay Sievers [Mon, 5 May 2014 12:23:10 +0000 (14:23 +0200)]
hwdb: update
Kay Sievers [Mon, 5 May 2014 12:21:40 +0000 (14:21 +0200)]
timesyncd: log drift value as signed