1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00
Commit Graph

14227 Commits

Author SHA1 Message Date
Lennart Poettering
581483bf59 journal: don't clobber return parameters of sd_journal_get_cutoff_realtime_usec() on failure 2014-02-19 17:53:50 +01:00
Lennart Poettering
1756a0118e execute: modernizations 2014-02-19 17:53:50 +01:00
Lennart Poettering
39883f622f make gcc shut up
If -flto is used then gcc will generate a lot more warnings than before,
among them a number of use-without-initialization warnings. Most of them
without are false positives, but let's make them go away, because it
doesn't really matter.
2014-02-19 17:53:50 +01:00
Lennart Poettering
ca721e3608 NEWS: Mention the new Personality= switch in unit files 2014-02-19 17:53:50 +01:00
Thomas Hindoe Paaboel Andersen
17d47d8d2d busctl: add --no-legend and use in bash completion 2014-02-19 17:35:35 +01:00
Thomas Hindoe Paaboel Andersen
8ec76163ff busctl: update bash completion 2014-02-19 17:12:17 +01:00
Thomas Hindoe Paaboel Andersen
f5ca75f4a1 man: busctl typo fix 2014-02-19 17:02:45 +01:00
Tom Gundersen
5723e1760f sd-rtnl: test - include missing.h to build on old kernels 2014-02-19 16:46:58 +01:00
Tom Gundersen
14efd7617b networkd: dhcp - log when lease is lost 2014-02-19 16:46:58 +01:00
Tom Gundersen
216816c6bc networkd: link - only reset transient hostname if it was set by us 2014-02-19 16:46:58 +01:00
Maciej Wereski
31d5a60cae systemctl: remove erroneous return in runlevel_parse_argv() 2014-02-19 16:24:16 +01:00
Maciej Wereski
d1368aa9bd logind: remove redundant check in manager_new() 2014-02-19 16:24:13 +01:00
Lennart Poettering
7bb2954901 update TODO 2014-02-19 16:23:43 +01:00
Lennart Poettering
708e25e137 label: minor optimizations 2014-02-19 16:23:43 +01:00
Tom Gundersen
d5eff74097 missing.h: add some IFLA_* constants
These were added to the kernel between 3.5 and 3.9, let's not require such
recent kernels (yet).
2014-02-19 15:50:24 +01:00
David Herrmann
7a0d4a3d16 event: fix crash on child-source state modifications
Setting a child-source state to anything but SD_EVENT_OFF currently does
nothing. The condition logic is flawed. Move the state update *below* the
test for the previous state.

Fixes a crash if you call:
  sd_event_source_set_enabled(source, SD_EVENT_ON);
  sd_event_source_unref(source);
on a child-source in its own callback.
2014-02-19 13:24:38 +01:00
Lennart Poettering
b67f562c9c man: document $MAINPID 2014-02-19 03:27:03 +01:00
Lennart Poettering
270b085101 update TODO 2014-02-19 03:27:03 +01:00
Lennart Poettering
ac45f971a1 core: add Personality= option for units to set the personality for spawned processes 2014-02-19 03:27:03 +01:00
Zbigniew Jędrzejewski-Szmek
49a356c258 build-sys: fixups for libsystemd-daemon merge 2014-02-18 20:32:40 -05:00
Kay Sievers
be4b47cb52 build-sys: install headers with --enable-kdbus 2014-02-19 02:24:57 +01:00
Kay Sievers
0ebee88184 build-sys: merge libsystemd-daemon into libsystemd 2014-02-19 01:09:19 +01:00
Lennart Poettering
0e4061c4d5 test: add missing test units 2014-02-18 23:55:41 +01:00
Lennart Poettering
6afc95b736 nspawn: add new --personality= switch to make it easier to run 32bit containers on a 64bit host 2014-02-18 23:37:27 +01:00
Thomas Hindoe Paaboel Andersen
0bc8e31b35 delta: add bash completion 2014-02-18 22:34:59 +01:00
Tom Gundersen
9b1c2626ce net-match: fix Driver= match
It should match on the driver of the parent device.
2014-02-18 22:34:26 +01:00
Tom Gundersen
11a7f22939 networkd: refactor link_add() :(
Don't set set **ret when returning r < 0, as matching on the errno may easily
give false positives in the future leading to null pointer dereference.

Reported-by: David Herrmann <dh.herrmann@gmail.com>
2014-02-18 22:34:26 +01:00
Lennart Poettering
3302da4667 nspawn: x86 is special with its socketcall() semantics, be permissive in the seccomp setup 2014-02-18 22:27:46 +01:00
Lennart Poettering
e9642be2cc seccomp: add helper call to add all secondary archs to a seccomp filter
And make use of it where appropriate for executing services and for
nspawn.
2014-02-18 22:14:00 +01:00
Dave Reisner
f3d5485b80 nspawn: allow 32-bit chroots from 64-bit hosts
Arch Linux uses nspawn as a container for building packages and needs
to be able to start a 32bit chroot from a 64bit host. 24fb111207
disrupted this feature when seccomp handling was added.
2014-02-18 21:26:24 +01:00
Lennart Poettering
4b462d1a28 load-modules: properly return a failing error code if some module fails to load
This is the missing part of b857193b1d.
2014-02-18 21:23:16 +01:00
Thomas Hindoe Paaboel Andersen
6bebb0add4 machinectl: remove unused --no-ask-password 2014-02-18 21:14:40 +01:00
Thomas Hindoe Paaboel Andersen
e56056e93d machinectl: add bash completion 2014-02-18 21:14:30 +01:00
Lennart Poettering
0f3e07b7cc update TODO 2014-02-18 21:07:20 +01:00
Thomas Hindoe Paaboel Andersen
773e264d13 man: machinectl: there is no command 'kill-machine' 2014-02-18 17:44:03 +01:00
Tom Gundersen
482e2ac193 man: minor fixes to networkd page
Also enforce that we don't allow setting the Broadcast for IPv6 addresses.
2014-02-18 15:50:45 +01:00
Patrik Flykt
7e95eda5b3 NEWS: Fix header file name 2014-02-18 15:39:25 +01:00
Cristian Rodríguez
0b7005eb0a fix SECCOMP_CFLAGS usage
SECCOMP_CFLAGS must be in the global CFLAGS as <seccomp.h> is
included in core/execute.h. when seccomp.h is not in the standard
path.(i.e openSUSE has it in /usr/include/pkg/libseccomp/, precisely to
catch this kind of bugs) compiling systemd fails.
2014-02-18 09:27:19 -05:00
Patrik Flykt
234ed3eb09 libsystemd-dhcp: Add a full DHCP address acquisition test case
Upon startup the DHCP library will immediately send a DHCP Discover.
Handle the additional DHCP Discover checking and DHCP Offer sending
in test_addr_acq_recv_discover(). Write a zero UDP checksum, the
received XID and the faked MAC address into place to create a DHCP
message the library can accept.

Follow exactly the same steps when receiving a DHCP Request in
test_addr_acq_recv_request() and send the Ack. Check that the proper
addresses have been found by the DHCP library before exiting the
main loop and finishing the test.
2014-02-18 15:23:19 +01:00
Patrik Flykt
6c8a0f07f2 libsystemd-dhcp: Factor out test code for DHCP message verification
Add a callback function that will handle the test case specific checking.
2014-02-18 15:23:19 +01:00
Patrik Flykt
ede286f9d4 libsystemd-dhcp: Add capability to print out test steps 2014-02-18 15:23:19 +01:00
Jason St. John
8b7d0494a3 NEWS: fix typos and grammar errors 2014-02-18 08:47:28 -05:00
Lennart Poettering
8e420494bc NEWS: even more fixes 2014-02-18 13:38:31 +01:00
Tom Gundersen
4fb7242cbb sd-rtnl-message: store reference to the bus in the message
This mimics the sd-bus api, as we may need it in the future.
2014-02-18 11:21:22 +01:00
Daniel Buch
c0c5af00be NEWS: sd-resolv.h is sd-resolve.h 2014-02-18 08:23:24 +01:00
Jan Engelhardt
4670e9d5f2 doc: fix newly-arisen inconsistencies in NEWS 2014-02-17 23:51:55 -05:00
Zbigniew Jędrzejewski-Szmek
06beed6dc6 Remove unused variable and two function stubs 2014-02-17 22:35:35 -05:00
Zbigniew Jędrzejewski-Szmek
1e190502e7 NEWS: fix a few typos and inconsistencies
- systemd-delta had support for .d for a long time.
- systemd-activate had --environment before --setenv.
2014-02-17 22:09:04 -05:00
Kay Sievers
ad42cf7308 NEWS: more "scary" kdbus incompatibility warning 2014-02-18 03:21:31 +01:00
Jan Engelhardt
4c2413bffa doc: general refresh of orthography and grammar 2014-02-18 03:18:21 +01:00