1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 00:51:24 +03:00
Commit Graph

14011 Commits

Author SHA1 Message Date
Kay Sievers
9597086027 bus: update kdbus.h (ABI break) 2014-01-14 16:10:08 +08:00
Tom Gundersen
5be4d38e31 networkd: DHCPv4 - allow opting out of using DNS servers
Setting UseDNS=no will ignore any received DNS servers.
2014-01-13 21:54:57 +01:00
Tom Gundersen
5681d7fb8b libsystemd-dns: merge into libsystemd
Also rename sd-dns -> sd-resolv.
2014-01-13 21:06:13 +01:00
Tom Gundersen
0b54473e9b libsystemd-rtnl: merge into libsystemd 2014-01-13 21:06:13 +01:00
Tom Gundersen
c813ca40c8 libsystemd-dhcp: merge into libsystemd 2014-01-13 21:06:08 +01:00
Tom Gundersen
6bb648a16a libsystemd-bus: rename to libsystemd
Documentation was updated to refer to either 'libsystemd' or 'sd-bus' in place
of libsystemd-bus.
2014-01-13 18:54:19 +01:00
Kay Sievers
883b369087 TODO: update 2014-01-13 10:51:26 +08:00
Daniel Buch
8e50b5a77c sd-dns: coding style cleanup 2014-01-13 00:08:42 +01:00
Tom Gundersen
f3621dec52 networkd: fix wording 2014-01-12 15:44:40 +01:00
Tom Gundersen
c74ecd7182 TODO: update rtnl/network sections 2014-01-12 15:37:21 +01:00
Tom Gundersen
3bef724f7e 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.
2014-01-12 15:37:21 +01:00
Tom Gundersen
924fe4304a networkd: bridge - remove redundant state
We will not insist on getting the reply from rtnl that the bridge
was created before considering the bridge ready, as we will be
notified about that via udev. We will listen for the rtnl response
however, in case the creation of the bridge failed.
2014-01-12 15:37:21 +01:00
Tom Gundersen
f46685a4c0 networkd: don't automatically reload config at runtime
We don't know if the config will be consistent, so do as systemd itself and only
load config when the daemon starts (and possibly, in the future, when explicitly requested).
2014-01-12 15:37:21 +01:00
Tom Gundersen
ab47d620b4 networkd: improve logging a bit 2014-01-12 15:37:21 +01:00
Tom Gundersen
920e2957be bus-proxyd: add some more debugging
Make sure we print a message when exiting with an error.
2014-01-12 15:37:20 +01:00
Lennart Poettering
f069efb471 core: don't allow setting NOTIFY_SOCKET and similar env vars we need ourselves via SetEnvironment bus calls
We just quietly eat them up, so that simple environment importing still
works without error.
2014-01-12 20:10:40 +08:00
Lennart Poettering
09ecd746c9 update TODO 2014-01-12 20:10:33 +08:00
Lennart Poettering
43d03a8376 core: clean up environment block for --user instances a bit 2014-01-12 19:41:57 +08:00
Lennart Poettering
d44fdf4954 bus: add test case for signature type 2014-01-12 19:41:57 +08:00
Zbigniew Jędrzejewski-Szmek
708c143c7c man: add busctl(1) 2014-01-11 23:45:17 -05:00
Lennart Poettering
441d56a12a bus: properly handle EOF error conditions in proxyd
EOF is not an error so we should not print an error message about it.
2014-01-12 10:56:40 +08:00
Zbigniew Jędrzejewski-Szmek
348ced9097 journald: do not free space when disk space runs low
Before, journald would remove journal files until both MaxUse= and
KeepFree= settings would be satisfied. The first one depends (if set
automatically) on the size of the file system and is constant.  But
the second one depends on current use of the file system, and a spike
in disk usage would cause journald to delete journal files, trying to
reach usage which would leave 15% of the disk free. This behaviour is
surprising for the user who doesn't expect his logs to be purged when
disk usage goes above 85%, which on a large disk could be some
gigabytes from being full. In addition attempting to keep 15% free
provides an attack vector where filling the disk sufficiently disposes
of almost all logs.

Instead, obey KeepFree= only as a limit on adding additional files.
When replacing old files with new, ignore KeepFree=. This means that
if journal disk usage reached some high point that at some later point
start to violate the KeepFree= constraint, journald will not add files
to go above this point, but it will stay (slightly) below it. When
journald is restarted, it forgets the previous maximum usage value,
and sets the limit based on the current usage, so if disk remains to
be filled, journald might use one journal-file-size less on each
restart, if restarts happen just after rotation. This seems like a
reasonable compromise between implementation complexity and robustness.
2014-01-11 16:54:59 -05:00
Zbigniew Jędrzejewski-Szmek
b948018034 gpt-auto-generator: use EBADSLT code when unable to detect partition type
ENODEV suggests that something is missing, which is be misleading
here.
2014-01-11 16:50:09 -05:00
Łukasz Stelmach
843f737ade gpt-auto-generator: skip nonexistent devices
The devices we work with have eMMC chips for storage. The chips
provide four "hardware" partitions.  The first is /dev/mmcblk0, it
takes almost whole space and holds a GPT with several real partitions
(/dev/mmcblk0p?). Then there are three block devices (mmcblk0boot0,
mmcblk0boot1, rpmb) that are part of the same hardware as mmcblk0 that
are presented by the kernel as children of the latter. That relationship
makes gpt-auto-generator try to peek them but since they are not GPT
partitions blkid_do_safeprobe() returns -2 making verify_gpt_parition()
function return -ENODEV.
2014-01-11 16:50:09 -05:00
Dave Reisner
0d8efe3535 ycm: autocompose flags from the Makefile
This should hopefully be self-maintaining.
2014-01-11 13:35:43 -05:00
Kay Sievers
8042e377b8 pam: skip DBUS_SESSION_BUS_ADDRESS export when kdbus is not active 2014-01-12 01:45:42 +08:00
Michael Scherer
6c833cdfc3 make socket_instantiate_service use cleanup gcc attribute 2014-01-11 17:08:39 +00:00
Kay Sievers
ec260edc1c bus: fix length calculation when serializing SD_BUS_TYPE_SIGNATURE 2014-01-12 00:30:49 +08:00
Zbigniew Jędrzejewski-Szmek
5bf348d77e core: fix unused variable 2014-01-11 10:07:22 -05:00
Zbigniew Jędrzejewski-Szmek
39032b8777 network: use GNU-ism to simplify macros
Thanks David!
2014-01-11 10:07:22 -05:00
Zbigniew Jędrzejewski-Szmek
ea18a4b57e journalctl: allow globbing in --unit and --user-unit
This is a continuation of e3e0314b systemctl: allow globbing in commands
which take multiple unit names.

Multiple patterns can be specified, as separate arguments, or as one argument
with patterns seperated by commas.

If patterns are given, at least one unit must be matched (by any of the patterns).
This is different behaviour than systemctl, but here it is necessary because
otherwise anything would be matched, which is unlikely to be the intended
behaviour.

https://bugs.freedesktop.org/show_bug.cgi?id=59336
2014-01-11 10:07:22 -05:00
Zbigniew Jędrzejewski-Szmek
ae97089d49 journal: fix access to munmapped memory in sd_journal_enumerate_unique
sd_j_e_u needs to keep a reference to an object while comparing it
with possibly duplicate objects in other files. Because the size of
mmap cache is limited, with enough files and object to compare to,
at some point the object being compared would be munmapped, resulting
in a segmentation fault.

Fix this issue by turning keep_always into a reference count that can
be increased and decreased. Other callers which set keep_always=true
are unmodified: their references are never released but are ignored
when the whole file is closed, which happens at some point. keep_always
is increased in sd_j_e_u and later on released.
2014-01-11 10:07:22 -05:00
Tom Gundersen
47917e4a4a sd-dns: simplify headers
As noted by Lennart: HAVE_CONFIG_H is done implicitly and sys/prctl.h is
mandatory.
2014-01-11 15:03:25 +00:00
Tom Gundersen
edc6f2f56c sd-dns: update/add license texts 2014-01-11 15:03:25 +00:00
Tom Gundersen
1783d89719 sd-dns: cleanup public header
Don't include internal headers
Update license text
Use _SD_BEGIN/END_DECLARATIONS
2014-01-11 15:03:25 +00:00
Daniel Buch
e963e3ada1 sd-dns: initial commit
Origin: <http://0pointer.de/lennart/projects/libasyncns/>

[tomegun: renamed some more files asyncns -> sd-dns and moved to libsystemd-bus as
requested by Lennart]
2014-01-11 15:03:25 +00:00
Hendrik Brueckner
e0d4a0ac06 udev/net_id: Introduce predictable network names for Linux on System z
Use the bus-ID to create predicatable devices names for network interfaces
on Linux on System z instances.  The bus-ID identifies a device in the s390
channel subsystem.

Network interfaces of device type Ethernet are named as:
    enccw0.0.1234    (13 characters)
up to
    enccwff.7.ffff   (14 characters)

CTC network devices of device type SLIP, use a different prefix as follows:
    slccw0.0.1234    (13 characters)

See also Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=870859
[tomegun: typical problem of netdevs switching names between reboots.]
2014-01-11 15:03:25 +00:00
Unai Uribarri
2a61aaac66 hwdb: Add support for Toshiba Satellite P75-A7200 keyboard 2014-01-11 09:21:22 -05:00
Kay Sievers
5eecd85f15 Revert "bus: export bus address also when compiled without kdbus"
This reverts commit 9130f2128b.

It's too early to do that. For now we should only "break" the
--enable-kdbus case, not the normal one.
2014-01-11 06:22:19 +08:00
Zbigniew Jędrzejewski-Szmek
3860bb6dbf man: clarify sd_bus_e_get_errno with NULL arg 2014-01-10 09:10:27 -05:00
Lennart Poettering
bc6a623248 bus: convert a bus error with NULL name into an errno of 0 in sd_bus_error_get_errno() 2014-01-10 13:35:51 +08:00
Zbigniew Jędrzejewski-Szmek
c5b37953b7 man: mention which variables will be expanded in ExecStart 2014-01-09 22:23:42 -05:00
Zbigniew Jędrzejewski-Szmek
a2cc4a6c96 core: fix lack of notifications after reload 2014-01-09 20:50:49 -05:00
Lukas Nykryn
f58ceb21e9 tmpfiles: don't allow label_fix to print ENOENT when we want to ignore it 2014-01-09 18:00:50 +01:00
Lukas Nykryn
277f2f75f6 delta: ensure that d_type will be set on every fs 2014-01-09 16:43:00 +01:00
Zbigniew Jędrzejewski-Szmek
58742b06bd build-sys: fix distcheck 2014-01-08 22:34:59 -05:00
Zbigniew Jędrzejewski-Szmek
628706137e networkd: print the received DHCPv4 address and gateway
It seems that networkd stores in_addr.s_addr contents in reverse
order (little-endian, not network order). This is a bit confusing,
but sd_rtnl evidently likes this order.
2014-01-08 22:15:27 -05:00
Zbigniew Jędrzejewski-Szmek
3333d748fa networkd: use structured logging for links and bridges 2014-01-08 22:15:27 -05:00
Zbigniew Jędrzejewski-Szmek
2ad8416dd0 No need to canonicalize fixed paths 2014-01-08 22:15:27 -05:00
Zbigniew Jędrzejewski-Szmek
d8160f21fd Improve messages about user mode a bit 2014-01-08 22:15:27 -05:00