b26fa1a2fbcfee7d03b0c8fd15ec3aa64ae70b9f |
|
10-Feb-2016 |
Daniel Mack <daniel@zonque.org> |
tree-wide: remove Emacs lines from all files
This should be handled fine now by .dir-locals.el, so need to carry that
stuff in every file. |
1c8e710c2b479129c3ad06a0e8e2d21ae4aefd38 |
|
30-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: route - track routes |
430f0182b72373145c839dbfe99d2382855cb8f8 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
src/basic: rename audit.[ch] → audit-util.[ch] and capability.[ch] → capability-util.[ch]
The files are named too generically, so that they might conflict with
the upstream project headers. Hence, let's add a "-util" suffix, to
clarify that this are just our utility headers and not any official
upstream headers. |
b1d4f8e154bf61b5de1b27461ef8e9c8c5e838a1 |
|
26-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out user/group/uid/gid calls into user-util.[ch] |
2ee5363b7409b9eaace61e17d8abbc44d5b36055 |
|
03-Jul-2015 |
rinrinne <rinrin.ne@gmail.com> |
Fix error message for enumerate addresses
Error message for enumerating addresses was not 'addresses' but 'links'.
This patch fixes it. |
72c0a2c255b172ebbb2a2b7dab7c9aec4c9582d9 |
|
15-Jun-2015 |
Lennart Poettering <lennart@poettering.net> |
everywhere: port everything to sigprocmask_many() and friends
This ports a lot of manual code over to sigprocmask_many() and friends.
Also, we now consistly check for sigprocmask() failures with
assert_se(), since the call cannot realistically fail unless there's a
programming error.
Also encloses a few sd_event_add_signal() calls with (void) when we
ignore the return values for it knowingly. |
24882e06c135584f16f31ba8a00fecde8b7f6fad |
|
29-May-2015 |
Lennart Poettering <lennart@poettering.net> |
util: split out signal-util.[ch] from util.[ch]
No functional changes. |
8bde1d0c9d322f3b9a8dd24cfc8417b9231314d8 |
|
21-Mar-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
networkd: use LOG_WARN not LOG_ERR for non-fatal errors |
2eec67acbb00593e414549a7e5b35eb7dd776b1b |
|
23-Feb-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
remove unused includes
This patch removes includes that are not used. The removals were found with
include-what-you-use which checks if any of the symbols from a header is
in use. |
8f203c166ecb24f904a068f2d8f0c636c1511a8f |
|
05-Feb-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: move the connection to the bus out of manager_new (again)
This would otherwise make the tests fail as we cannot grab the bus name. |
a97dcc12e486ecff531809802930a26c4da827f2 |
|
05-Feb-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: exit on idle
We will be woken up on rtnl or dbus activity, so let's just quit if some time has passed and that is the only thing that can happen.
Note that we will always stay around if we expect network activity (e.g. DHCP is enabled), as we are not restarted on that. |
73432d67b590c8c8954cf2f8954d174a55d58c7b |
|
05-Feb-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: log when finished enumerating links and addresses |
5fae368bda9419d9d378ea32077c8fd183dd4b81 |
|
03-Feb-2015 |
Tom Gundersen <teg@jklm.no> |
networkd: refactor socket activation a bit |
49699bac94d24b444274f91f85c82e6fad04d029 |
|
19-Dec-2014 |
Susant Sahani <susant@redhat.com> |
LLDP: Add support for networkctl |
45af44d47da6933b260c734ad9ff721f63f80a4d |
|
08-Dec-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: manager - enumerate addresses globally, rather than per-link
The kernel always returns all addresses, rather than only for the given link, so let's only enumerate once. |
c33b329709ebe2755181980a050d02ec7c81ed87 |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: more log_*_errno() conversions, multiline calls
Basically:
find . -name '*.[ch]' | while read f; do perl -i.mmm -e \
'local $/;
local $_=<>;
s/log_(debug|info|notice|warning|error|emergency)\("([^"]*)%s"([^;]*),\s*strerror\(-?([->a-zA-Z_]+)\)\);/log_\1_errno(\4, "\2%m"\3);/gms;print;' \
$f; done
Plus manual indentation fixups. |
da927ba997d68401563b927f92e6e40e021a8e5c |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: no need to negate errno for log_*_errno()
It corrrectly handles both positive and negative errno values. |
0a1beeb64207eaa88ab9236787b1cbc2f704ae14 |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: auto-convert the simple cases to log_*_errno()
As a followup to 086891e5c1 "log: add an "error" parameter to all
low-level logging calls and intrdouce log_error_errno() as log calls
that take error numbers", use sed to convert the simple cases to use
the new macros:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_(debug|info|notice|warning|error|emergency)\("(.*)%s"(.*), strerror\(-([a-zA-Z_]+)\)\);/log_\1_errno(-\4, "\2%m"\3);/'
Multi-line log_*() invocations are not covered.
And we also should add log_unit_*_errno(). |
af4ec4309e8f82aad87a8d574785c12f8763d5f8 |
|
21-Aug-2014 |
Lennart Poettering <lennart@poettering.net> |
notify: send STOPPING=1 from our daemons |
186fe1db20902b6542cee58ba499ced914d687a8 |
|
07-Jul-2014 |
Lennart Poettering <lennart@poettering.net> |
networkd: simplify signal handling of SIGTERM/SIGINT
sd-event makes handling SIGTERM/SIGINT a lot easier than it used to,
let's make use of this |
85b5673b337048fa881a5afb1d00d1a7b95950fb |
|
03-Jun-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: split runtime config dir from state dir
Configuration will be in
root:root /run/systemd/network
and state will be in
systemd-network:systemd-network /run/systemd/netif
This matches what we do for logind's seat/session state. |
bddfc8afd329ac68a23f66a3512d4e249af25191 |
|
03-Jun-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: drop CAP_SYS_MODULE
Rely on modules being built-in or autoloaded on-demand.
As networkd is a network facing service, we want to limits its capabilities,
as much as possible. Also, we may not have CAP_SYS_MODULE in a container,
and we want networkd to work the same there.
Module autoloading does not always work, but should be fixed by the kernel
patch f98f89a0104454f35a: 'net: tunnels - enable module autoloading', which
is currently in net-next and which people may consider backporting if they
want tunneling support without compiling in the modules.
Early adopters may also use a module-load.d snippet and order
systemd-modules-load.service before networkd to force the module
loading of tunneling modules.
This sholud fix the various build issues people have reported. |
d3cf48f4bd3d69a276f17aa7c910e0b35215caba |
|
01-Jun-2014 |
Lennart Poettering <lennart@poettering.net> |
networkd: run as unpriviliged "systemd-network" user
This allows us to run networkd mostly unpriviliged with the exception of
CAP_NET_* and CAP_SYS_MODULE. I'd really like to get rid of the latter
though... |
091a364c802e34a58f3260c9cb5db9b75c62215c |
|
19-May-2014 |
Tom Gundersen <teg@jklm.no> |
resolved: add daemon to manage resolv.conf
Also remove the equivalent functionality from networkd. |
0b44d8c3d7dfadb60b30c9339b18c4cc1617b51b |
|
12-May-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: manager - don't leak kmod context
Also, keep the kmod_new internal to networkd-manager.c |
7951dea20911969287878e6897b3eca348721ade |
|
12-May-2014 |
Susant Sahani <susant@redhat.com> |
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] |
505f8da7325591defe5f751f328bd26915267602 |
|
19-Apr-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: tie links to rtnl rather than udev
This essentially swaps the roles of rtnl and udev in networkd. After this
change libudev is only used for waiting for udev to initialize devices and
to get udev-specific information needed for some [Match] attributes.
This in particular simplifies the code in containers where udev is not really
useful, but also simplifies things and reduces round-trips in the non-container
case. |
0ea51a1129b9984a3c6d96cef1b0e33c99b5e9cf |
|
14-Mar-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: fix creation of runtime dirs at startup
This allows us to drop the repeated attempted creations of the runtime dirs during runtime. |
f0c4cd7a2c2835a392b5b1807d8c506ab0af44de |
|
11-Mar-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: rework startup
Open all listenerns before loading configuration. |
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2 |
|
28-Feb-2014 |
Tom Gundersen <teg@jklm.no> |
sd-network: add new library
This is similar to sd-login, but exposes the state of networkd rather than logind.
Include it in libsystemd-dhcp and rename it to libsystemd-network. |
1346b1f0388f4100bb3c2a2bb23bc881769c020c |
|
16-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
sd-dhcp-client/networkd: add transient hostname support |
1f6d9bc9ee894d4023b7eacea1754986f25bce57 |
|
16-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: improve logging |
3bef724f7e7f7eaca69881548b06e221b77d7031 |
|
12-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
networkd: generate resolv.conf
This adds support to generate a basic resolv.conf in /run/systemd/network.
This file will not take any effect unless a symlink is created from
/etc/resolv.conf.
Nameservers received over DHCP takes precedence over statically configured ones.
Note: /etc/resolv.conf is severely limited, so in the future we will likely
rather provide a much more powerfull nss plugin (or something to that effect),
but this should allow current users to function without any loss of
functionality. |
e877666c1553a3dd5b05b4c48090f889ffc079e6 |
|
27-Nov-2013 |
Patrik Flykt <patrik.flykt@linux.intel.com> |
networkd: Initialize variable to NULL
If any number of arguments are given, _cleanup_manager_free_ is used
with unitialized memory causing a crash. |
02b59d57e0c08231645120077f651151f5bb2bab |
|
26-Nov-2013 |
Tom Gundersen <teg@jklm.no> |
networkd: add bridge support
A bridge is specified in a .netdev file with a section [Bridge]
and at least the entry Name=.
A link may be joined to a bridge if the .network applied to it has
a Bridge= entry giving the name of the bridge in its [Network] section.
We eagerly create all bridges on startup, and links are added to
bridges as soon as they both appear. |
a553fd32d14739b746a05ae502b8acc38e5f9a50 |
|
23-Nov-2013 |
Tom Gundersen <teg@jklm.no> |
networkd: fix build
Forgot to 'git add'... |
4b6141c42497dc199618f95fa3f359615eecfaa0 |
|
23-Nov-2013 |
Tom Gundersen <teg@jklm.no> |
networkd: use Type=notify
Also start earlier during boot. |
f882c247ad59776c3a7753bb963c1f8e2386cb79 |
|
17-Nov-2013 |
Tom Gundersen <teg@jklm.no> |
networkd: make all calls async |
f579559b3a14c1f1ef96c372e7626c4733e6ef7d |
|
09-Nov-2013 |
Tom Gundersen <teg@jklm.no> |
networkd: add a basic network daemon
This daemon listens for and configures network devices tagged with
'systemd-networkd'. By default, no devices are tagged so this daemon
can safely run in parallel with existing network daemons/scripts.
Networks are configured in /etc/systemd/network/*.network. The first .network
file that matches a given link is applied. The matching logic is similar to
the one for .link files, but additionally supports matching on interface name.
The mid-term aim is to provide an alternative to ad-hoc scripts currently used
in initrd's and for wired setups that don't change much (e.g., as seen on
servers/and some embedded systems).
Currently, static addresses and a gateway can be configured.
Example .network file:
[Match]
Name=wlp2s0
[Network]
Description=My Network
Gateway=192.168.1.1
Address=192.168.1.23/24
Address=fe80::9aee:94ff:fe3f:c618/64 |