1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-14 15:21:37 +03:00
Commit Graph

16162 Commits

Author SHA1 Message Date
Lennart Poettering
c73ce96b56 dns-packet: allow dynamic resizing of DNS packets 2014-07-16 18:04:14 +02:00
Lennart Poettering
3cb10d3a0b dns-domain: introduce macros for accessing all DNS header fields 2014-07-16 18:03:46 +02:00
Lennart Poettering
acbc501602 update TODO 2014-07-16 17:24:51 +02:00
Kay Sievers
6b609469ae journal: add systemd-journal-remote to sysusers 2014-07-16 15:14:46 +02:00
Zbigniew Jędrzejewski-Szmek
40780a626d journal-remote: remove obsolete variable 2014-07-16 07:53:02 -04:00
Zbigniew Jędrzejewski-Szmek
a812a8816c journal-remote: fix double typedef and add missing header 2014-07-16 07:53:02 -04:00
Sjoerd Simons
4e4877d96c shared: include stdbool.h in mkdir.h 2014-07-16 12:59:04 +02:00
Michael Biebl
5c059d2ead build-sys: don't move libgudev to /lib
It depends on libgobject and libgmodule which are installed in /usr/lib.
2014-07-16 12:53:46 +02:00
Thomas Hindoe Paaboel Andersen
3f2b585466 test-compress-benchmark: add missing % before PRIu64 format 2014-07-16 08:59:13 +02:00
Thomas Hindoe Paaboel Andersen
eda8090ba9 test-socket-util: silence warnings 2014-07-16 08:52:11 +02:00
Michael Olbrich
4bf04322b8 units/serial-getty@.service: use the default RestartSec
For pluggable ttys such as USB serial devices, the getty is restarted
and exits in a loop until the remove event reaches systemd. Under
certain circumstances the restart loop can overload the system in a
way that prevents the remove event from reaching systemd for a long
time (e.g. at least several minutes on a small embedded system).

Use the default RestartSec to prevent the restart loop from
overloading the system. Serial gettys are interactive units, so
waiting an extra 100ms really doesn't make a difference anyways
compared to the time it takes the user to log in.
2014-07-15 23:51:10 -04:00
Zbigniew Jędrzejewski-Szmek
4e0296a943 resolve: avoid use of uninitalized variable 2014-07-15 22:47:03 -04:00
Marc-Antoine Perennou
da2e1c7166 test-compress-benchmark: silence warnings
and btw make it pass for 32bits where size_t != uint64_t
2014-07-15 22:36:56 -04:00
Zbigniew Jędrzejewski-Szmek
92b10cbccd journal-remote: avoid copying input data
Instead of copying fields into new memory allocations, simply keep pointers
into the receive buffer. Data in this buffer is only copied when there is not
enough space for new data and a large chunk of the buffer contains old data.
2014-07-15 22:34:42 -04:00
Zbigniew Jędrzejewski-Szmek
874bc134ac Clear up confusion wrt. ENTRY_SIZE_MAX and DATA_SIZE_MAX
Define DATA_SIZE_MAX to mean the maximum size of a single
field, and ENTRY_SIZE_MAX to mean the size of the whole
entry, with some rough calculation of overhead over the payload.

Check if entries are not too big when processing native journal
messages.
2014-07-15 22:34:42 -04:00
Zbigniew Jędrzejewski-Szmek
93c0969cf9 µhttp-util: fix compilation without gnutls 2014-07-15 22:34:42 -04:00
Zbigniew Jędrzejewski-Szmek
a8ca47227d man: describe new filename rules for journal-remote 2014-07-15 22:34:42 -04:00
Zbigniew Jędrzejewski-Szmek
330427e271 man: document systemd-journal-upload 2014-07-15 22:34:41 -04:00
Zbigniew Jędrzejewski-Szmek
29fc0ddcd7 journal-upload: add config file 2014-07-15 22:34:41 -04:00
Zbigniew Jędrzejewski-Szmek
5bc891206d journal-remote: let user specify just the main part of the url
We can append /upload ourselves.
2014-07-15 22:34:41 -04:00
Zbigniew Jędrzejewski-Szmek
9ff48d0982 journal-remote: rework fd and writer reference handling 2014-07-15 22:34:41 -04:00
Zbigniew Jędrzejewski-Szmek
a83f403760 journal-remote: improve some messages 2014-07-15 22:34:41 -04:00
Zbigniew Jędrzejewski-Szmek
4a0a6ac038 Fix problem with allocating large buffers and log leftovers 2014-07-15 22:34:40 -04:00
Zbigniew Jędrzejewski-Szmek
e9f3d2d508 Constify ConfigTableItem tables 2014-07-15 22:34:40 -04:00
Zbigniew Jędrzejewski-Szmek
8201af08fa journal-remote: allow splitting incoming logs by source host
Previously existing scheme where the file name would be based on
the source was just too ugly and unpredicatable. Now there are
only two options:
  1. just one file (until rotation),
  2. one file per source host, using the hostname as filename part.
For the cases where the source is specified by the user, only
option one is allowed, and the full of the file must be specified.
2014-07-15 22:31:41 -04:00
Zbigniew Jędrzejewski-Szmek
24739b7b75 Allow addresses to be specified for --listen-... args
Hostnames still aren't accepted.
2014-07-15 22:31:40 -04:00
Zbigniew Jędrzejewski-Szmek
d3b7fd541b Add simple generator of fake journal export stream 2014-07-15 22:31:40 -04:00
Zbigniew Jędrzejewski-Szmek
ef274c6444 shared/socket-label: fix error message
Was: Failed to listen on [::]:2000: Success
2014-07-15 22:31:40 -04:00
Zbigniew Jędrzejewski-Szmek
b31f535c9a shared/socket-util: add function to query remote address 2014-07-15 22:31:40 -04:00
Zbigniew Jędrzejewski-Szmek
ad95fd1d2b journal-remote: add units and read certs from default locations 2014-07-15 22:23:49 -04:00
Zbigniew Jędrzejewski-Szmek
a3152e7655 journal-upload: add watchdog support 2014-07-15 22:23:48 -04:00
Zbigniew Jędrzejewski-Szmek
722b679565 journal-upload: make state persistent 2014-07-15 22:23:48 -04:00
Zbigniew Jędrzejewski-Szmek
eacbb4d33e journal-upload: use journal as the source 2014-07-15 22:23:48 -04:00
Zbigniew Jędrzejewski-Szmek
7449bc1f34 journal-upload: HTTPS support 2014-07-15 22:23:48 -04:00
Zbigniew Jędrzejewski-Szmek
3d090cc6f3 journal-upload: a tool to push messages to systemd-journal-remote 2014-07-15 22:23:48 -04:00
Zbigniew Jędrzejewski-Szmek
851d4e2a67 journal-remote: reject fields above maximum size
Also fix an infinite loop on E2BIG.

Remember what range we already scanned for '\n', to avoid
quadratic behaviour on long "text" fields.
2014-07-15 22:23:47 -04:00
Zbigniew Jędrzejewski-Szmek
5c879495ea journal-remote: small fixes 2014-07-15 22:23:47 -04:00
Zbigniew Jędrzejewski-Szmek
36ef43edcf build-sys: add check for libcurl 2014-07-15 22:23:47 -04:00
Zbigniew Jędrzejewski-Szmek
1e4e7b71e1 Move network-related journal programs to src/journal-remote/
Directory src/journal has become one of the largest directories,
and since systemd-journal-gatewayd, systemd-journal-remote, and
forthcoming systemd-journal-upload are all closely related, create
a separate directory for them.
2014-07-15 22:23:47 -04:00
Zbigniew Jędrzejewski-Szmek
5937a4d4f2 microhttp-util: rework gnutls logging 2014-07-15 22:23:47 -04:00
Zbigniew Jędrzejewski-Szmek
b3306e9c3c journal: allow files with no data whatsoever
If a file was opened for writing, and then closed immediately without
actually writing any entries, on subsequent opening, it would be
considered "corrupted". This should be totally fine, and even in
read mode, an empty file can become non-empty later on.
2014-07-15 22:23:47 -04:00
Kay Sievers
b7e6c03d3b resolved: add busname unit file 2014-07-16 04:12:03 +02:00
Kay Sievers
18641cb17e resolved: add legacy dbus service and policy files 2014-07-16 03:41:39 +02:00
Lennart Poettering
f1f520e8df update TODO 2014-07-16 03:32:29 +02:00
Lennart Poettering
4d1cf1e229 resolved: add small NSS module that uses resolved to resolve DNS names 2014-07-16 03:31:30 +02:00
Lennart Poettering
555bd6e95b nss: various minor fixes to nss-myhostname + nss-mymachines 2014-07-16 03:30:40 +02:00
Lennart Poettering
1fa65c593c dns-domain: never allow labels that are larger than 63 chars 2014-07-16 03:29:20 +02:00
Lennart Poettering
3fe1169fe3 dns-domain: fix generation of reverse IP address lookup name 2014-07-16 03:28:52 +02:00
Lennart Poettering
b9d394ea56 resolve: add distinct bus error code for hosts that exist but lack A or AAAA records 2014-07-16 03:28:18 +02:00
Lennart Poettering
9d6db739ce update TODO 2014-07-16 00:31:39 +02:00