1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00
Commit Graph

1334 Commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek
12ed81d9c8 Make systemctl --root look for files in the proper places
Running systemctl enable/disable/set-default/... with the --root
option under strace reveals that it accessed various files and
directories in the main fs, and not underneath the specified root.
This can lead to correct results only when the layout and
configuration in the container are identical, which often is not the
case. Fix this by adding the specified root to all file access
operations.

This patch does not handle some corner cases: symlinks which point
outside of the specified root might be interpreted differently than
they would be by the kernel if the specified root was the real root.
But systemctl does not create such symlinks by itself, and I think
this is enough of a corner case not to be worth the additional
complexity of reimplementing link chasing in systemd.

Also, simplify the code in a few places and remove an hypothetical
memory leak on error.
2014-05-15 15:29:58 +02:00
Tom Gundersen
0404c609f3 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>
2014-05-14 12:45:12 +02:00
Susant Sahani
3eb94c9e9e 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
2014-05-12 17:53:18 +02:00
Jan Engelhardt
70a44afee3 doc: typographical fine tuning 2014-05-06 23:05:39 +02:00
Jan Engelhardt
d28315e4af doc: use non-contracted forms in written documents 2014-05-06 23:05:09 +02:00
Lennart Poettering
8dfb5bced2 update TODO 2014-05-06 17:02:54 +02:00
Lennart Poettering
2db3e2023d update TODO 2014-05-06 13:04:29 +02:00
Lennart Poettering
1df52dd282 update TODO 2014-05-06 12:34:37 +02:00
Lennart Poettering
37efac5ddb update TODO 2014-05-05 21:19:06 +02:00
Tom Gundersen
8faf88e5eb TODO 2014-05-03 18:14:42 +02:00
Lennart Poettering
7348b3adb3 update TODO 2014-05-02 17:57:37 +02:00
Michal Sekletar
d20850cbf4 update TODO 2014-04-29 22:18:14 +02:00
Tom Gundersen
1f0e048474 TODO: network 2014-04-28 00:06:06 +02:00
Umut Tezduyar Lindskog
798e174ab2 networkd: update TODO 2014-04-27 23:50:57 +02:00
Lennart Poettering
6cdf527c6a update TODO 2014-04-25 13:28:02 +02:00
Lennart Poettering
f55b9bdfae update TODO 2014-04-25 07:16:08 +02:00
Lennart Poettering
e107ed185e update TODO 2014-04-23 23:44:39 +02:00
Lennart Poettering
e30fa16e27 update TODO 2014-04-23 19:06:38 +02:00
Thomas Hindoe Paaboel Andersen
806a37e743 systemctl: add --recursive for list-timers 2014-04-16 23:51:27 +02:00
Lennart Poettering
11fb37f16e update TODO 2014-04-13 17:41:51 -07:00
Lennart Poettering
01083ad094 update TODO 2014-04-13 17:41:01 -07:00
Zbigniew Jędrzejewski-Szmek
baf167ee0a journal: properly detect language specified in line
... it turns out that the duplicates in our own catalog were not real
duplicates, but translations.
2014-04-12 10:20:55 -04:00
Zbigniew Jędrzejewski-Szmek
b3ae710c25 systemctl: update NAME to PATTERN in help()
Previously the man page was modified, but not help().
2014-04-05 00:42:10 -04:00
Umut Tezduyar Lindskog
aba496a58a networkd: smooth transition from ipv4ll to dhcp address
Currently when both ipv4ll and dhcp are enabled, ipv4ll
address (if one has been claimed) is removed when dhcp
address is aquired. This is not the best thing to do
since there might be clients unaware of the removal
trying to communicate.

This patch provides a smooth transition between ipv4ll
and dhcp. If ipv4ll address was claimed [1] before dhcp,
address is marked as deprecated. Deprecated address is still
a valid address and packets can be received on it but address
cannot be selected as a source address. If dhcp lease cannot
be extended, then ipv4ll address is marked as valid again.

[1] If there is no collision, claiming IPv4LL takes between 4 to
7 seconds.
2014-04-03 16:00:25 +02:00
Tom Gundersen
c589a0e628 TODO 2014-03-31 11:30:59 +02:00
Daniel Mack
4433c995c7 completions: fix/augment zsh completions for systemd-nspawn, busctl, loginctl, hostnamectl, localectl, machinectl 2014-03-25 23:05:03 +01:00
Lennart Poettering
a2b135e3d8 update TODO 2014-03-25 02:11:52 +01:00
Lennart Poettering
b107b705cc update TODO 2014-03-25 00:03:23 +01:00
Lennart Poettering
7f8aa67131 core: remove tcpwrap support
tcpwrap is legacy code, that is barely maintained upstream. It's APIs
are awful, and the feature set it exposes (such as DNS and IDENT
access control) questionnable. We should not support this natively in
systemd.

Hence, let's remove the code. If people want to continue making use of
this, they can do so by plugging in "tcpd" for the processes they start.
With that scheme things are as well or badly supported as they were from
traditional inetd, hence no functionality is really lost.
2014-03-24 20:07:42 +01:00
Lennart Poettering
777920bc03 update TODO 2014-03-24 16:24:07 +01:00
David Herrmann
374c356979 sd-bus: mark sd_bus_unref() as broken regarding self-refs
If you allocate a message with bus==NULL and then unref the main bus,
it will free your message underneath and your program will go boom!

To fix that, we really need to figure out what the semantics for
self-references (m->bus) should be and when/where/what accesses are
actually allowed.

Same is true for the pseudo-thread-safety we employ..
2014-03-22 19:35:25 +01:00
Umut Tezduyar Lindskog
b5db00e52e sd-ipv4ll/networkd: generate predictable addresses
Increase the chance of using the same link local address between reboots. The
pseudo random sequence of addresses we attempt is now seeded with data that is
very likely to stay the same between reboots, but at the same time be unique
to the specific machine/nic.

First we try to use the ID_NET_NAME_* data from the udev db combined with the
machin-id, which is guaranteed to be unique and persistent, if available. If
that is not possible (e.g., in containers where we don't have access to the
udev db) we fallback to using the MAC address of the interface, which is
guaranteed to be unique, and likely to be persistent.

[tomegun: three minor changes:

 - don't expose HASH_KEY in the siphash24 header
 - get rid of some compile-warnings (and some casts at the same time),
   by using uint8_t[8] rather than uint64_t in the api
 - added commit message]
2014-03-21 20:24:10 +01:00
Lennart Poettering
c144692179 update TODO 2014-03-21 03:43:46 +01:00
Tom Gundersen
155e8b9adc TODO 2014-03-20 20:19:59 +01:00
Lennart Poettering
f1b2c3eccb update TODO 2014-03-20 04:19:23 +01:00
Lennart Poettering
b5640d8245 update TODO 2014-03-19 23:25:41 +01:00
Lennart Poettering
5a2e420c1f update TODO 2014-03-19 19:09:00 +01:00
Lennart Poettering
7973ca1927 update TODO 2014-03-19 16:25:11 +01:00
Lennart Poettering
4658568002 update TODO 2014-03-19 04:17:37 +01:00
Lennart Poettering
622efd8775 update TODO 2014-03-19 02:28:03 +01:00
Lennart Poettering
ec8408740a update TODO 2014-03-19 01:48:23 +01:00
Lennart Poettering
cb9da7f24f update TODO 2014-03-18 21:06:08 +01:00
Lennart Poettering
9459781ee6 udate TODO 2014-03-18 17:59:11 +01:00
Lennart Poettering
df23374071 update TODO 2014-03-18 04:48:26 +01:00
Lennart Poettering
4c63a53ac5 update TODO 2014-03-17 18:15:57 +01:00
Lennart Poettering
7366b080b3 update TODO 2014-03-17 15:18:11 +01:00
Tom Gundersen
e09826dcf1 networkd: netdev - support joining already existing netdevs 2014-03-15 20:10:36 +01:00
Lennart Poettering
edb2935c5c update TODO 2014-03-14 21:17:14 +01:00
Lennart Poettering
b64c7b3d5b update TODO 2014-03-14 01:49:44 +01:00
Lennart Poettering
bddabb5770 update TODO 2014-03-13 01:39:09 +01:00