Jason A. Donenfeld
3db729cb8e
sd-bus: the bus returned should be the first arg
...
This matches the API of previous headers, such as sd-journal.h.
2014-02-20 00:03:09 +01:00
Tom Gundersen
e51660ae56
udev: net-config - allow interface names to be set from the hwdb
2014-02-19 23:29:51 +01:00
Kay Sievers
2b0a23e864
build-sys: export experimental symbols only with --enable-kdbus
2014-02-19 20:53:18 +01:00
Lennart Poettering
23abf5d582
bus: fix unreffing logic
2014-02-19 20:36:17 +01:00
Tom Gundersen
8f61afd8d8
sd-dhcp-client: fix mixup between raw and udp sockets
2014-02-19 19:48:10 +01:00
Kay Sievers
952d1536f4
sd-damon is LGPL now
2014-02-19 18:23:14 +01:00
Lennart Poettering
d4fdc205a4
update TODO
2014-02-19 18:20:12 +01:00
Kay Sievers
add00dfd1f
build-sys: merge libsystemd-journal into libsystemd
2014-02-19 18:12:58 +01:00
Lennart Poettering
e26da2dcea
tmpfiles: simplification
2014-02-19 17:53:50 +01:00
Lennart Poettering
833fce2857
util: simplify get_ctty()
2014-02-19 17:53:50 +01:00
Lennart Poettering
480a61ae74
timedatectl: fix minor memory leak
2014-02-19 17:53:50 +01:00
Lennart Poettering
d4f1ef4437
udev: make sure we always return a valid error code in trie_store()
2014-02-19 17:53:50 +01:00
Lennart Poettering
0f0e240cb8
sd-id128: use new dev_urandom() call
2014-02-19 17:53:50 +01:00
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
Thomas Hindoe Paaboel Andersen
17d47d8d2d
busctl: add --no-legend and use in bash completion
2014-02-19 17:35:35 +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
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
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
0ebee88184
build-sys: merge libsystemd-daemon into libsystemd
2014-02-19 01:09:19 +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
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
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
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
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
Zbigniew Jędrzejewski-Szmek
06beed6dc6
Remove unused variable and two function stubs
2014-02-17 22:35:35 -05:00
Lennart Poettering
9f5650aecb
util: generalize code that checks whether PIDs are alive or unwaited for
2014-02-18 02:51:47 +01:00
Jan Engelhardt
73e231abde
doc: update punctuation
...
Resolve spotted issues related to missing or extraneous commas, dashes.
2014-02-17 19:03:07 -05:00
Jan Engelhardt
a87f0f726c
core: more exact test on the procfs special string "(deleted)"
...
In other parts of systemd, the code checks for " (deleted)",
but in one instance, it did not (yet). Make it do the same.
2014-02-17 19:03:07 -05:00
Umut Tezduyar Lindskog
17256461f5
networkd: act on lease only if there is one
...
Interface could go down before acquiring a dhcp lease
2014-02-17 23:30:08 +01:00
Jasper St. Pierre
acfbbf5c56
Fix gperf syntax
...
If we put a closing bracket on its own line, gperf will complain about
empty lines. Only occurs if the option in question is disabled. So fix the
m4 macros to work properly in both cases.
2014-02-17 22:07:02 +01:00
Lennart Poettering
6a6751fe24
core: warn when unit files with unsupported options are parsed
2014-02-17 17:49:09 +01:00
Lennart Poettering
5f8640fb62
core: store and expose SELinuxContext field normalized as bool + string
2014-02-17 16:52:52 +01:00