chiark / gitweb /
elogind.git
10 years agolink-config: Fix typo in log_warning
Dave Reisner [Fri, 8 Nov 2013 14:38:50 +0000 (09:38 -0500)]
link-config: Fix typo in log_warning

10 years agolink-config: match length for kernel commandline option
Dave Reisner [Fri, 8 Nov 2013 14:17:08 +0000 (09:17 -0500)]
link-config: match length for kernel commandline option

This prevents enable_name_policy() from invariably returning false when
it matches a zero length string at the end of /proc/cmdline.

10 years agosystemctl: initialize variables
Kay Sievers [Fri, 8 Nov 2013 14:21:50 +0000 (15:21 +0100)]
systemctl: initialize variables

10 years agosystemctl: allow listing cgroups of containers
Lennart Poettering [Fri, 8 Nov 2013 13:06:46 +0000 (14:06 +0100)]
systemctl: allow listing cgroups of containers

10 years agoclients: fix some signal handler issues
Lennart Poettering [Fri, 8 Nov 2013 12:57:18 +0000 (13:57 +0100)]
clients: fix some signal handler issues

10 years agosystemctl: various cleanups
Lennart Poettering [Fri, 8 Nov 2013 12:54:46 +0000 (13:54 +0100)]
systemctl: various cleanups

10 years agoinstall: don't override caller's parameter
Lennart Poettering [Fri, 8 Nov 2013 12:54:18 +0000 (13:54 +0100)]
install: don't override caller's parameter

10 years agoclients: add missing command line arguments
Lennart Poettering [Fri, 8 Nov 2013 12:54:00 +0000 (13:54 +0100)]
clients: add missing command line arguments

10 years agojournal: fix minor memory leak
Lennart Poettering [Fri, 8 Nov 2013 12:53:25 +0000 (13:53 +0100)]
journal: fix minor memory leak

10 years agoupdate TODO
Lennart Poettering [Fri, 8 Nov 2013 12:53:09 +0000 (13:53 +0100)]
update TODO

10 years agosystemctl: port to libsystemd-bus
Marc-Antoine Perennou [Thu, 7 Nov 2013 04:49:04 +0000 (13:49 +0900)]
systemctl: port to libsystemd-bus

10 years agomachinectl: close bus to container early
Lennart Poettering [Thu, 7 Nov 2013 23:49:44 +0000 (00:49 +0100)]
machinectl: close bus to container early

10 years agortnl: message - initialize all memory
Tom Gundersen [Fri, 8 Nov 2013 11:14:28 +0000 (12:14 +0100)]
rtnl: message - initialize all memory

Including the padding, which should not really be needed, but let's keep valgrind happy.

10 years agotest-rtnl: fix typo
Tom Gundersen [Fri, 8 Nov 2013 10:18:51 +0000 (11:18 +0100)]
test-rtnl: fix typo

10 years agosystemctl: return r instead of always returning 0
Michal Sekletar [Wed, 6 Nov 2013 10:18:02 +0000 (11:18 +0100)]
systemctl: return r instead of always returning 0

10 years agonet-util: call ioctl() only if necessary
Michal Sekletar [Wed, 6 Nov 2013 10:18:01 +0000 (11:18 +0100)]
net-util: call ioctl() only if necessary

In case when update of current values is not necessary we still might end up
calling ioctl(), because need_update variable is not explicitly initialized.

10 years agobus: use new property retrieval calls everywhere
Lennart Poettering [Thu, 7 Nov 2013 21:17:19 +0000 (22:17 +0100)]
bus: use new property retrieval calls everywhere

10 years agoinhibit: more conversions to use bus_log_parse_error()
Lennart Poettering [Thu, 7 Nov 2013 21:08:41 +0000 (22:08 +0100)]
inhibit: more conversions to use bus_log_parse_error()

10 years agoanalyze: make use of new sd_bus_get_property_strv() call
Lennart Poettering [Thu, 7 Nov 2013 21:06:29 +0000 (22:06 +0100)]
analyze: make use of new sd_bus_get_property_strv() call

10 years agoupdate TODO
Lennart Poettering [Thu, 7 Nov 2013 20:41:06 +0000 (21:41 +0100)]
update TODO

10 years agoclients: try to follow roughly the same order in --help texts for common options
Lennart Poettering [Thu, 7 Nov 2013 20:31:13 +0000 (21:31 +0100)]
clients: try to follow roughly the same order in --help texts for common options

10 years agomachinectl: show list headers even if we pipe, since that appears to be the usual way
Lennart Poettering [Thu, 7 Nov 2013 20:28:15 +0000 (21:28 +0100)]
machinectl: show list headers even if we pipe, since that appears to be the usual way

10 years agobus: log message parsing errors everywhere with a generalized bus_log_parse_error()
Lennart Poettering [Thu, 7 Nov 2013 20:26:31 +0000 (21:26 +0100)]
bus: log message parsing errors everywhere with a generalized bus_log_parse_error()

10 years agopolkit: don't spawn local client if we access a remote system
Lennart Poettering [Thu, 7 Nov 2013 20:06:44 +0000 (21:06 +0100)]
polkit: don't spawn local client if we access a remote system

10 years agosystemctl: we show headers for list-units even when piped these days, hence do the...
Lennart Poettering [Thu, 7 Nov 2013 20:02:48 +0000 (21:02 +0100)]
systemctl: we show headers for list-units even when piped these days, hence do the same for list-jobs

10 years agologinctl: convert to sd-bus
Simon Peeters [Thu, 7 Nov 2013 07:58:23 +0000 (08:58 +0100)]
loginctl: convert to sd-bus

NOTE: the show-* subcommands do not print some properties:
  this are those with types like (so), a(so), (uo),...
  we need to fix this, but I'm not sure how

10 years agobus: add APIs to easily query string and strv properties
Lennart Poettering [Thu, 7 Nov 2013 18:28:54 +0000 (19:28 +0100)]
bus: add APIs to easily query string and strv properties

10 years agobus: mark sd_bus_message_at_end public
Marc-Antoine Perennou [Thu, 7 Nov 2013 04:49:02 +0000 (13:49 +0900)]
bus: mark sd_bus_message_at_end public

10 years agobus: fix bus_print_property with strv
Marc-Antoine Perennou [Thu, 7 Nov 2013 04:49:00 +0000 (13:49 +0900)]
bus: fix bus_print_property with strv

10 years agobus: bus_message_read_strv_extend() should return 1 on success
Lennart Poettering [Thu, 7 Nov 2013 17:46:22 +0000 (18:46 +0100)]
bus: bus_message_read_strv_extend() should return 1 on success

Like all other message read calls bus_message_read_strv_extend() needs
to return 1 on sucess, and 0 on end of array.

10 years agobus: fix output of bus_message_dump()
Lennart Poettering [Thu, 7 Nov 2013 17:40:14 +0000 (18:40 +0100)]
bus: fix output of bus_message_dump()

10 years agobus: allow reading empty arrays with sd_bus_message_read_array()
Lennart Poettering [Thu, 7 Nov 2013 17:40:06 +0000 (18:40 +0100)]
bus: allow reading empty arrays with sd_bus_message_read_array()

10 years agortnl: add Makefile symlink
Lennart Poettering [Thu, 7 Nov 2013 17:07:50 +0000 (18:07 +0100)]
rtnl: add Makefile symlink

10 years agoman: add docs for sd_is_special() and some man page symlinks
Lennart Poettering [Thu, 7 Nov 2013 16:51:09 +0000 (17:51 +0100)]
man: add docs for sd_is_special() and some man page symlinks

10 years agobuild-sys: add a make target to look for undocumented symbols
Lennart Poettering [Thu, 7 Nov 2013 16:26:01 +0000 (17:26 +0100)]
build-sys: add a make target to look for undocumented symbols

With super-pretty output!

10 years agobus: also check for NULL when appending trivial types
Lennart Poettering [Thu, 7 Nov 2013 16:11:25 +0000 (17:11 +0100)]
bus: also check for NULL when appending trivial types

10 years agobus: message_append_basic() - allow string == NULL
Kay Sievers [Thu, 7 Nov 2013 15:44:33 +0000 (16:44 +0100)]
bus: message_append_basic() - allow string == NULL

10 years agosocket-proxy: actually properly keep track of connections
Lennart Poettering [Thu, 7 Nov 2013 15:53:14 +0000 (16:53 +0100)]
socket-proxy: actually properly keep track of connections

10 years agoactivate: print a nice message if no fd to listen on was specified
Lennart Poettering [Thu, 7 Nov 2013 15:52:47 +0000 (16:52 +0100)]
activate: print a nice message if no fd to listen on was specified

10 years agoshutdown: as sd-shutdown.h is a drop-in header it should not include any other header...
Lennart Poettering [Thu, 7 Nov 2013 15:44:59 +0000 (16:44 +0100)]
shutdown: as sd-shutdown.h is a drop-in header it should not include any other headers of ours

10 years agoapi: replace manual C++ guards by macros
Lennart Poettering [Thu, 7 Nov 2013 15:44:48 +0000 (16:44 +0100)]
api: replace manual C++ guards by macros

10 years agosocket-proxyd: no need to redefine sockaddr union
Lennart Poettering [Thu, 7 Nov 2013 15:43:25 +0000 (16:43 +0100)]
socket-proxyd: no need to redefine sockaddr union

10 years agoutil: add circle to special chars we can draw
Lennart Poettering [Thu, 7 Nov 2013 15:42:54 +0000 (16:42 +0100)]
util: add circle to special chars we can draw

10 years agopam: the DECIMAL_STR_MAX macro is awesome, let's use it
Lennart Poettering [Thu, 7 Nov 2013 15:42:36 +0000 (16:42 +0100)]
pam: the DECIMAL_STR_MAX macro is awesome, let's use it

10 years agoupdate TODO
Lennart Poettering [Thu, 7 Nov 2013 15:36:14 +0000 (16:36 +0100)]
update TODO

10 years agobuild-sys: don't install sd-shutdown.h, it is a drop-in header like sd-readahead.h
Lennart Poettering [Thu, 7 Nov 2013 15:35:36 +0000 (16:35 +0100)]
build-sys: don't install sd-shutdown.h, it is a drop-in header like sd-readahead.h

10 years agomachine: add missing header include
Kay Sievers [Thu, 7 Nov 2013 14:19:39 +0000 (15:19 +0100)]
machine: add missing header include

10 years agobuild-sys: link most internal libraries statically
Kay Sievers [Thu, 7 Nov 2013 13:59:16 +0000 (14:59 +0100)]
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.

10 years agomachine: move symbols referenced by shared code from main to shared file
Kay Sievers [Thu, 7 Nov 2013 13:56:31 +0000 (14:56 +0100)]
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'

10 years agobus: make bus_print_all_properties work for non machinectl cases
Simon Peeters [Thu, 7 Nov 2013 07:58:22 +0000 (08:58 +0100)]
bus: make bus_print_all_properties work for non machinectl cases

add a destination parameter and skip properties we can't read

10 years agocore: fix require $XDG_RUNTIME_DIR
Kay Sievers [Thu, 7 Nov 2013 13:14:22 +0000 (14:14 +0100)]
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 ")

10 years agoudevadm-settle: add missing brace
Zbigniew Jędrzejewski-Szmek [Thu, 7 Nov 2013 06:34:19 +0000 (01:34 -0500)]
udevadm-settle: add missing brace

10 years agocore: require $XDG_RUNTIME_DIR to be set for user instances
Mantas Mikulėnas [Wed, 9 Oct 2013 11:57:13 +0000 (14:57 +0300)]
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.

10 years agotest-strv: add strv_split, strv_split_newline, strv_remove_prefix
Daniel Buch [Thu, 31 Oct 2013 09:03:08 +0000 (10:03 +0100)]
test-strv: add strv_split, strv_split_newline, strv_remove_prefix

10 years agoMake hibernation test work for swap files
Jan Janssen [Thu, 31 Oct 2013 16:22:03 +0000 (17:22 +0100)]
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

10 years agozsh-completion: add missing options for systemd-run
Ronny Chevalier [Thu, 31 Oct 2013 19:46:29 +0000 (20:46 +0100)]
zsh-completion: add missing options for systemd-run

10 years agoudevadm-trigger: add parameters checking
Yang Zhiyong [Sun, 3 Nov 2013 11:50:58 +0000 (19:50 +0800)]
udevadm-trigger: add parameters checking

10 years agoudevadm-settle: add parameters checking
Yang Zhiyong [Mon, 4 Nov 2013 03:26:07 +0000 (11:26 +0800)]
udevadm-settle: add parameters checking

10 years agosystemctl: make LOAD column width dynamic
Mantas Mikulėnas [Mon, 4 Nov 2013 21:01:17 +0000 (23:01 +0200)]
systemctl: make LOAD column width dynamic

Otherwise 'not-found' overflows into the ACTIVE column.

10 years agosystemd-python: convert keyword value to string
Richard Marko [Tue, 5 Nov 2013 14:41:20 +0000 (15:41 +0100)]
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.

10 years agotest: remove duplicated code
Ronny Chevalier [Tue, 5 Nov 2013 22:32:56 +0000 (23:32 +0100)]
test: remove duplicated code

10 years agoSupport additional argument in reboot
WaLyong Cho [Wed, 6 Nov 2013 08:02:41 +0000 (17:02 +0900)]
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.

10 years agoman: add rationale into systemd-halt(8)
Jan Engelhardt [Thu, 7 Nov 2013 00:17:49 +0000 (01:17 +0100)]
man: add rationale into systemd-halt(8)

The explanation is from
http://people.debian.org/~stapelberg/docs/systemd-dependencies.html

10 years agoman: wording and grammar updates
Jan Engelhardt [Thu, 7 Nov 2013 00:17:48 +0000 (01:17 +0100)]
man: wording and grammar updates

This is a recurring submission and includes corrections to various
issue spotted: comma setting, missing words/preposition choice.

10 years agoacpi-fpdt: break on zero or negative length read
Pavel Holica [Wed, 6 Nov 2013 22:24:16 +0000 (23:24 +0100)]
acpi-fpdt: break on zero or negative length read

https://bugzilla.redhat.com/show_bug.cgi?id=1027478

10 years agosocket-proxyd: The proxy can now accept multiple sockets (but only to one remote...
David Strauss [Thu, 7 Nov 2013 04:46:31 +0000 (14:46 +1000)]
socket-proxyd: The proxy can now accept multiple sockets (but only to one remote host).

10 years agobus: indicate in .pc file that we need libsystemd-id128 definitions
Lennart Poettering [Thu, 7 Nov 2013 02:54:13 +0000 (03:54 +0100)]
bus: indicate in .pc file that we need libsystemd-id128 definitions

10 years agoapi: add C++ guards
Lennart Poettering [Thu, 7 Nov 2013 02:47:42 +0000 (03:47 +0100)]
api: add C++ guards

10 years agortnl: headers in src/systemd/ may not use #pragma once
Lennart Poettering [Thu, 7 Nov 2013 02:40:43 +0000 (03:40 +0100)]
rtnl: headers in src/systemd/ may not use #pragma once

10 years agortnl: headers in src/systemd/ may not include internal headers
Lennart Poettering [Thu, 7 Nov 2013 02:39:32 +0000 (03:39 +0100)]
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.

10 years agortnl: internal headers must include pragma once protection
Lennart Poettering [Thu, 7 Nov 2013 02:38:08 +0000 (03:38 +0100)]
rtnl: internal headers must include pragma once protection

10 years agobuild-sys: add .pc file for libsystemd-bus
Lennart Poettering [Thu, 7 Nov 2013 02:27:58 +0000 (03:27 +0100)]
build-sys: add .pc file for libsystemd-bus

10 years agobuild-sys: merge sd-event into sd-bus
Lennart Poettering [Thu, 7 Nov 2013 02:20:40 +0000 (03:20 +0100)]
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.

10 years agobuild-sys: add Makefile symlink for src/activate/
Lennart Poettering [Thu, 7 Nov 2013 02:09:59 +0000 (03:09 +0100)]
build-sys: add Makefile symlink for src/activate/

10 years agoutf8: export utf8 validation functions as part of sd-bus
Lennart Poettering [Thu, 7 Nov 2013 02:07:37 +0000 (03:07 +0100)]
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.

10 years agoutf8: ascii_filter() is unused, let's remove it
Lennart Poettering [Thu, 7 Nov 2013 02:06:37 +0000 (03:06 +0100)]
utf8: ascii_filter() is unused, let's remove it

10 years agoconsistently use "int" when retrieving "bool" from bus messages
Kay Sievers [Thu, 7 Nov 2013 01:03:10 +0000 (02:03 +0100)]
consistently use "int" when retrieving "bool" from bus messages

10 years agobus: add forgotten _public_
Zbigniew Jędrzejewski-Szmek [Thu, 7 Nov 2013 00:14:35 +0000 (19:14 -0500)]
bus: add forgotten _public_

10 years agopam_systemd: dup the fd received from logind
Zbigniew Jędrzejewski-Szmek [Wed, 6 Nov 2013 22:24:16 +0000 (17:24 -0500)]
pam_systemd: dup the fd received from logind

Otherwise sd_bus_message cleanup would close it.

10 years agobuild-sys: distribute libsystemd-*.sym
Kay Sievers [Thu, 7 Nov 2013 00:36:08 +0000 (01:36 +0100)]
build-sys: distribute libsystemd-*.sym

10 years agobuild-sys: remove no longer needed DBUS_CFLAGS
Kay Sievers [Thu, 7 Nov 2013 00:33:07 +0000 (01:33 +0100)]
build-sys: remove no longer needed DBUS_CFLAGS

10 years agomachinectl: we need glibc's socket.h, not our own
Lennart Poettering [Wed, 6 Nov 2013 23:53:19 +0000 (00:53 +0100)]
machinectl: we need glibc's socket.h, not our own

10 years agopam: externally our booleans are ints, not unsigneds
Lennart Poettering [Wed, 6 Nov 2013 23:20:11 +0000 (00:20 +0100)]
pam: externally our booleans are ints, not unsigneds

10 years agoactivate: port to use new getpeername_pretty()/getsockname_pretty() calls
Lennart Poettering [Wed, 6 Nov 2013 23:13:31 +0000 (00:13 +0100)]
activate: port to use new getpeername_pretty()/getsockname_pretty() calls

10 years agosocket: rework things to have only one sockaddr formatter
Lennart Poettering [Wed, 6 Nov 2013 23:03:54 +0000 (00:03 +0100)]
socket: rework things to have only one sockaddr formatter

10 years agoevent: make sure we keep a reference to all events we dispatch while we do so.
Lennart Poettering [Wed, 6 Nov 2013 22:59:07 +0000 (23:59 +0100)]
event: make sure we keep a reference to all events we dispatch while we do so.

10 years agoactivate: fix uninitialized memory
Lennart Poettering [Wed, 6 Nov 2013 22:58:43 +0000 (23:58 +0100)]
activate: fix uninitialized memory

10 years agopam_systemd: pass 'unsigned' instead of 'bool' to sd_bus_message_read()
Kay Sievers [Wed, 6 Nov 2013 23:05:03 +0000 (00:05 +0100)]
pam_systemd: pass 'unsigned' instead of 'bool' to sd_bus_message_read()

10 years agobuild-sys: add sd-event to socket-proxyd
Kay Sievers [Wed, 6 Nov 2013 22:23:33 +0000 (23:23 +0100)]
build-sys: add sd-event to socket-proxyd

10 years agomkdir: modernize header ifdefs
Lennart Poettering [Wed, 6 Nov 2013 21:59:23 +0000 (22:59 +0100)]
mkdir: modernize header ifdefs

10 years agosocket-proxyd: rework to support multiple sockets and splice()-based zero-copy network IO
Lennart Poettering [Wed, 6 Nov 2013 21:40:54 +0000 (22:40 +0100)]
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.

10 years agoactive: rework make_socket_fd() to be based on socket_address_listen()
Lennart Poettering [Wed, 6 Nov 2013 21:30:35 +0000 (22:30 +0100)]
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.

10 years agoactivate: reduce log settings to normal
Lennart Poettering [Wed, 6 Nov 2013 21:27:42 +0000 (22:27 +0100)]
activate: reduce log settings to normal

10 years agoactivate: get rid of redundant definiton of fd_cloexec()
Lennart Poettering [Wed, 6 Nov 2013 21:27:20 +0000 (22:27 +0100)]
activate: get rid of redundant definiton of fd_cloexec()

10 years agopam_systemd: port to libsystemd-bus
Zbigniew Jędrzejewski-Szmek [Tue, 5 Nov 2013 05:01:12 +0000 (00:01 -0500)]
pam_systemd: port to libsystemd-bus

10 years agosystemd_pam: treat debug as debug=1 and parse all params
Zbigniew Jędrzejewski-Szmek [Thu, 31 Oct 2013 04:58:25 +0000 (00:58 -0400)]
systemd_pam: treat debug as debug=1 and parse all params

systemd_pam would ignore all params after the first invalid one.
Instead ignore just this one, and parse the rest. There's just
one now, but as a matter of principle ;)

Also, allow debug as an alias for debug=1, and don't treat
invalid debug= options as fatal.

10 years agobus: add public libsystemd-event
Zbigniew Jędrzejewski-Szmek [Wed, 6 Nov 2013 07:47:39 +0000 (02:47 -0500)]
bus: add public libsystemd-event

10 years agobus: export libsystemd-bus as a public library
Zbigniew Jędrzejewski-Szmek [Wed, 6 Nov 2013 07:33:42 +0000 (02:33 -0500)]
bus: export libsystemd-bus as a public library

Old static libsystemd-bus.la becomes libsystemd-bus-internal.la.
memfd functions are also exported in the same library.

(Best viewed with --color-words -U0).

10 years agomachinectl: use initialization instead of zeroing
Zbigniew Jędrzejewski-Szmek [Thu, 31 Oct 2013 03:32:27 +0000 (23:32 -0400)]
machinectl: use initialization instead of zeroing

10 years agoefi-boot-generator: simplify
Zbigniew Jędrzejewski-Szmek [Thu, 31 Oct 2013 03:03:28 +0000 (23:03 -0400)]
efi-boot-generator: simplify