Lennart Poettering
29d230f6f2
pam: the DECIMAL_STR_MAX macro is awesome, let's use it
2013-11-07 16:53:25 +01:00
Lennart Poettering
49a6199b42
update TODO
2013-11-07 16:53:25 +01:00
Lennart Poettering
aac6ad0d2f
build-sys: don't install sd-shutdown.h, it is a drop-in header like sd-readahead.h
2013-11-07 16:53:25 +01:00
Kay Sievers
23c80348e6
machine: add missing header include
2013-11-07 15:19:39 +01:00
Kay Sievers
48d7417d3e
build-sys: link most internal libraries statically
...
Libraries and tools, both use shared symbols wich have global state
and should only exist once in the final image.
2013-11-07 14:59:16 +01:00
Kay Sievers
ab49725fd8
machine: move symbols referenced by shared code from main to shared file
...
With --enable-address-sanitizer we get:
machined-dbus.c:228: undefined reference to 'manager_add_machine'
2013-11-07 14:56:31 +01:00
Simon Peeters
27e72d6b22
bus: make bus_print_all_properties work for non machinectl cases
...
add a destination parameter and skip properties we can't read
2013-11-07 14:18:35 +01:00
Kay Sievers
8be28fb1e0
core: fix require $XDG_RUNTIME_DIR
...
$ sudo dracut -f
Trying to run as user instance, but $XDG_RUNTIME_DIR is not set.
/usr/lib/dracut/modules.d/98systemd/module-setup.sh: line 10:
((: >= 198 : syntax error: operand expected (error token is ">= 198 ")
2013-11-07 14:14:22 +01:00
Zbigniew Jędrzejewski-Szmek
86198b2788
udevadm-settle: add missing brace
2013-11-07 01:34:19 -05:00
Mantas Mikulėnas
3f6da75bce
core: require $XDG_RUNTIME_DIR to be set for user instances
...
It seems that some places use /run otherwise, which isn't going to work.
2013-11-07 01:27:15 -05:00
Daniel Buch
aed2ebfed0
test-strv: add strv_split, strv_split_newline, strv_remove_prefix
2013-11-07 01:23:55 -05:00
Jan Janssen
0c6f1f4ea4
Make hibernation test work for swap files
...
Suspend to disk works for swap files too (even if it is located
on an ecrypted file system):
https://www.kernel.org/doc/Documentation/power/swsusp-and-swap-files.txt
2013-11-07 01:23:55 -05:00
Ronny Chevalier
f49e8bc472
zsh-completion: add missing options for systemd-run
2013-11-07 01:23:54 -05:00
Yang Zhiyong
c5383e7942
udevadm-trigger: add parameters checking
2013-11-07 01:23:54 -05:00
Yang Zhiyong
4e93793da8
udevadm-settle: add parameters checking
2013-11-07 01:23:54 -05:00
Mantas Mikulėnas
a1074881b4
systemctl: make LOAD column width dynamic
...
Otherwise 'not-found' overflows into the ACTIVE column.
2013-11-07 01:23:54 -05:00
Richard Marko
8ff8ee8373
systemd-python: convert keyword value to string
...
Allows using journal.send('msg', PRIORITY=journal.LOG_CRIT)
Before this commit this results in
TypeError: cannot concatenate 'str' and 'int' objects
and requires passing PRIORITY value as string to work.
2013-11-07 01:23:54 -05:00
Ronny Chevalier
889a90422d
test: remove duplicated code
2013-11-07 01:23:54 -05:00
WaLyong Cho
37185ec80a
Support additional argument in reboot
...
reboot syscall can be performed with an additional argument. In some
systems this functionality can be useful to modify the mode of the
next boot performed by the bootloader.
2013-11-07 01:23:54 -05:00
Jan Engelhardt
3f09ee1969
man: add rationale into systemd-halt(8)
...
The explanation is from
http://people.debian.org/~stapelberg/docs/systemd-dependencies.html
2013-11-07 01:23:54 -05:00
Jan Engelhardt
63ba209d8b
man: wording and grammar updates
...
This is a recurring submission and includes corrections to various
issue spotted: comma setting, missing words/preposition choice.
2013-11-07 01:23:54 -05:00
Pavel Holica
f576cd2092
acpi-fpdt: break on zero or negative length read
...
https://bugzilla.redhat.com/show_bug.cgi?id=1027478
2013-11-07 01:23:54 -05:00
David Strauss
fd201fda7d
socket-proxyd: The proxy can now accept multiple sockets (but only to one remote host).
2013-11-07 14:46:31 +10:00
Lennart Poettering
28f86262b9
bus: indicate in .pc file that we need libsystemd-id128 definitions
2013-11-07 03:54:13 +01:00
Lennart Poettering
6695ed7a84
api: add C++ guards
2013-11-07 03:47:42 +01:00
Lennart Poettering
0a0a68282c
rtnl: headers in src/systemd/ may not use #pragma once
2013-11-07 03:40:43 +01:00
Lennart Poettering
a33dece5f8
rtnl: headers in src/systemd/ may not include internal headers
...
Hence including "util.h" from sd-rtnl.h is not OK. Let's minimize our
headers we pull in a bit.
2013-11-07 03:39:32 +01:00
Lennart Poettering
a2cdd907d1
rtnl: internal headers must include pragma once protection
2013-11-07 03:38:08 +01:00
Lennart Poettering
c3b8df24a9
build-sys: add .pc file for libsystemd-bus
2013-11-07 03:27:58 +01:00
Lennart Poettering
c8a8806e77
build-sys: merge sd-event into sd-bus
...
The sd-event APIs should be available only as part of libsystemd-bus so
that the utility calls are not linked into each independently and we can
minimize the number of libraries we have.
2013-11-07 03:20:40 +01:00
Lennart Poettering
bc80136385
build-sys: add Makefile symlink for src/activate/
2013-11-07 03:09:59 +01:00
Lennart Poettering
faaa5728d9
utf8: export utf8 validation functions as part of sd-bus
...
To write useful bus code clients need to validate utf8 frequently since
the bus reacts allergic to it. Since glibc does not provide any calls
for this, let's provide it as part of libsystemd-bus.
2013-11-07 03:07:40 +01:00
Lennart Poettering
23c62e05b3
utf8: ascii_filter() is unused, let's remove it
2013-11-07 03:06:37 +01:00
Kay Sievers
102d8f8169
consistently use "int" when retrieving "bool" from bus messages
2013-11-07 02:05:57 +01:00
Zbigniew Jędrzejewski-Szmek
ba341e7c3c
bus: add forgotten _public_
2013-11-06 19:50:18 -05:00
Zbigniew Jędrzejewski-Szmek
5a330cda0c
pam_systemd: dup the fd received from logind
...
Otherwise sd_bus_message cleanup would close it.
2013-11-06 19:50:18 -05:00
Kay Sievers
7b14798286
build-sys: distribute libsystemd-*.sym
2013-11-07 01:43:33 +01:00
Kay Sievers
7c693da9df
build-sys: remove no longer needed DBUS_CFLAGS
2013-11-07 01:33:07 +01:00
Lennart Poettering
8bdbb8d9cb
machinectl: we need glibc's socket.h, not our own
2013-11-07 00:53:19 +01:00
Lennart Poettering
d1529c9ea0
pam: externally our booleans are ints, not unsigneds
2013-11-07 00:20:11 +01:00
Lennart Poettering
30374ebe5e
activate: port to use new getpeername_pretty()/getsockname_pretty() calls
2013-11-07 00:13:58 +01:00
Lennart Poettering
4d49b48c60
socket: rework things to have only one sockaddr formatter
2013-11-07 00:13:58 +01:00
Lennart Poettering
b7484e2a58
event: make sure we keep a reference to all events we dispatch while we do so.
2013-11-07 00:13:58 +01:00
Lennart Poettering
5b84559a76
activate: fix uninitialized memory
2013-11-07 00:13:58 +01:00
Kay Sievers
5a0d49a47c
pam_systemd: pass 'unsigned' instead of 'bool' to sd_bus_message_read()
2013-11-07 00:05:03 +01:00
Kay Sievers
fdd6816f7d
build-sys: add sd-event to socket-proxyd
2013-11-06 23:28:07 +01:00
Lennart Poettering
f4ef809c7e
mkdir: modernize header ifdefs
2013-11-06 23:03:12 +01:00
Lennart Poettering
8569a77629
socket-proxyd: rework to support multiple sockets and splice()-based zero-copy network IO
...
This also drops --ignore-env, which can't really work anymore if we
allow multiple fds. Also adds support for pretty printing of peer
identities for debug purposes, and abstract namespace UNIX sockets. Also
ensures that we never take more connections than a certain limit.
2013-11-06 23:03:12 +01:00
Lennart Poettering
175a3d25d0
active: rework make_socket_fd() to be based on socket_address_listen()
...
Among other things this makes sure we set SO_REUSEADDR which is
immensely useful.
2013-11-06 23:03:12 +01:00
Lennart Poettering
eceb8483e5
activate: reduce log settings to normal
2013-11-06 23:03:12 +01:00