chiark / gitweb /
Dave Reisner [Sun, 10 Nov 2013 21:02:29 +0000 (16:02 -0500)]
udev.xml: minor fixes to network link configuration
- Refer to net_setup_link, not net-setup-link
- Mention the required file extension earlier
Lennart Poettering [Sun, 10 Nov 2013 22:53:55 +0000 (23:53 +0100)]
bus: we really need to get rid of the :no-sender hack
This is where a hack from PID 1 spilled into the client side. We need
to get rid of this as soon as PID 1 is converted to libsystemd-bus.
Lennart Poettering [Sun, 10 Nov 2013 22:53:49 +0000 (23:53 +0100)]
bus: actually export sd_utf8_is_valid() and sd_ascii_is_valid()
Lennart Poettering [Sun, 10 Nov 2013 22:52:21 +0000 (23:52 +0100)]
bus: use ENXIO as error condition when trying to exit a container when we are not in any
So far we used ENXIO whenever the user tried to read something from a
function that didn't carry the right type, and hence use the same error
here to indicate that what the user expected and what was in the message
didn't match up.
Lennart Poettering [Sun, 10 Nov 2013 22:51:22 +0000 (23:51 +0100)]
build-sys: subtract list of exported symbols from "check-api-unused" list
Thomas Hindoe Paaboel Andersen [Sun, 10 Nov 2013 22:21:15 +0000 (23:21 +0100)]
analyze: plot the time spent setting up security modules
Lennart Poettering [Sun, 10 Nov 2013 22:05:08 +0000 (23:05 +0100)]
button: don't exit if we cannot handle a button press
Tom Gundersen [Sun, 10 Nov 2013 19:52:53 +0000 (20:52 +0100)]
man: networkd - add documentation
Tom Gundersen [Sun, 10 Nov 2013 18:33:18 +0000 (19:33 +0100)]
man: udev - add documentation for .link files
Zbigniew Jędrzejewski-Szmek [Sun, 10 Nov 2013 01:31:12 +0000 (20:31 -0500)]
bus: fix build with old glibc
Zbigniew Jędrzejewski-Szmek [Sun, 10 Nov 2013 00:40:46 +0000 (19:40 -0500)]
systemctl: make sure daemon-reload returns success
Also change sd_bus_message_exit_container to return -ENOENT
when not in a container, to make it easier to distinguish different
errors.
Tom Gundersen [Sun, 10 Nov 2013 00:26:24 +0000 (01:26 +0100)]
network: fix tests
One of the tests were assuming the network configuration dirs exist. We
can't do that, so disable it for now.
Zbigniew Jędrzejewski-Szmek [Sat, 9 Nov 2013 23:32:31 +0000 (18:32 -0500)]
systemctl: fix printing of individual properties
Zbigniew Jędrzejewski-Szmek [Sat, 9 Nov 2013 13:00:33 +0000 (08:00 -0500)]
build-sys: simplify defined/undefined definition
Zbigniew Jędrzejewski-Szmek [Fri, 8 Nov 2013 13:41:13 +0000 (08:41 -0500)]
systemd: fix memory leak in cgroup code
If the unit already was in the hashmap, path would be leaked.
Zbigniew Jędrzejewski-Szmek [Fri, 8 Nov 2013 04:57:19 +0000 (23:57 -0500)]
man,units: fix installation of systemd-nspawn@.service and add example
William Giokas [Thu, 7 Nov 2013 22:00:51 +0000 (16:00 -0600)]
zsh-completion: Move machine listing to autoload
Instead of having two different listings of machines, use an autoloaded
function that can be used by other shell completions in the future. It
will also allow editing a single file to change the way machinectl and
systemd-run completion for machines.
William Giokas [Thu, 7 Nov 2013 22:00:52 +0000 (16:00 -0600)]
zsh-completion: Move output modes to autoload
Tom Gundersen [Thu, 17 Oct 2013 01:18:36 +0000 (03:18 +0200)]
networkd: add a basic network daemon
This daemon listens for and configures network devices tagged with
'systemd-networkd'. By default, no devices are tagged so this daemon
can safely run in parallel with existing network daemons/scripts.
Networks are configured in /etc/systemd/network/*.network. The first .network
file that matches a given link is applied. The matching logic is similar to
the one for .link files, but additionally supports matching on interface name.
The mid-term aim is to provide an alternative to ad-hoc scripts currently used
in initrd's and for wired setups that don't change much (e.g., as seen on
servers/and some embedded systems).
Currently, static addresses and a gateway can be configured.
Example .network file:
[Match]
Name=wlp2s0
[Network]
Description=My Network
Gateway=192.168.1.1
Address=192.168.1.23/24
Address=fe80::9aee:94ff:fe3f:c618/64
Tom Gundersen [Sat, 9 Nov 2013 21:19:42 +0000 (22:19 +0100)]
net-util: add inet address/family parsing
Thomas Hindoe Paaboel Andersen [Sat, 9 Nov 2013 13:11:56 +0000 (14:11 +0100)]
bootctl: remove unused options from getopt_long
Kay Sievers [Fri, 8 Nov 2013 23:58:11 +0000 (00:58 +0100)]
bus: let magic ":no-sender" pass the validation
Lennart Poettering [Fri, 8 Nov 2013 18:49:49 +0000 (19:49 +0100)]
bus: port remaining code over to use bus_error_message()
Lennart Poettering [Fri, 8 Nov 2013 18:48:42 +0000 (19:48 +0100)]
localectl: port over to bus_log_create_error()
Lennart Poettering [Fri, 8 Nov 2013 18:32:45 +0000 (19:32 +0100)]
shutdown: unify handling of reboot() syscall a bit
Lennart Poettering [Fri, 8 Nov 2013 17:57:26 +0000 (18:57 +0100)]
systemctl: properly initialize column widths for list-jobs
Kay Sievers [Fri, 8 Nov 2013 17:50:58 +0000 (18:50 +0100)]
systemctl: rename 'listen'
src/systemctl/systemctl.c: In function ‘get_listening’:
src/systemctl/systemctl.c:535:25: warning: declaration of ‘listen’ shadows a global declaration [-Wshadow]
src/systemctl/systemctl.c: In function ‘list_sockets’:
src/systemctl/systemctl.c:690:44: warning: declaration of ‘listen’ shadows a global declaration [-Wshadow]
Lennart Poettering [Fri, 8 Nov 2013 17:23:47 +0000 (18:23 +0100)]
bus: allow queuing more local msgs
When issuing a synchronous "systemctl daemon-reload" requests this will
send out a tonload of UnitRemoved+UnitNew signals, that we will queue
locally. When we wait for the message reply, we should be able to queue
those, hence bump the limits on locally queuing messages.
Lennart Poettering [Fri, 8 Nov 2013 17:11:09 +0000 (18:11 +0100)]
Remove dead code and unexport some calls
"make check-api-unused" informs us about code that is not used anymore
or that is exported but only used internally. Fix these all over the
place.
Lennart Poettering [Fri, 8 Nov 2013 17:10:51 +0000 (18:10 +0100)]
build-sys: fix rule for generating undefined list
Kay Sievers [Fri, 8 Nov 2013 16:49:59 +0000 (17:49 +0100)]
systemctl: fix "reboot" call
Lennart Poettering [Fri, 8 Nov 2013 16:07:07 +0000 (17:07 +0100)]
systemctl: restore ability to directly connect to PID1 from systemctl
Lukas Nykryn [Fri, 8 Nov 2013 15:01:22 +0000 (16:01 +0100)]
manager: configurable StartLimit default values
https://bugzilla.redhat.com/show_bug.cgi?id=821723
Lennart Poettering [Fri, 8 Nov 2013 15:53:00 +0000 (16:53 +0100)]
man: update systemctl man page to mentioned --machine=
Lennart Poettering [Fri, 8 Nov 2013 15:52:42 +0000 (16:52 +0100)]
build-sys: add make check-api-unused
Lennart Poettering [Fri, 8 Nov 2013 15:52:24 +0000 (16:52 +0100)]
build-sys: install busctl
Dave Reisner [Fri, 8 Nov 2013 14:38:50 +0000 (09:38 -0500)]
link-config: Fix typo in log_warning
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.
Kay Sievers [Fri, 8 Nov 2013 14:21:50 +0000 (15:21 +0100)]
systemctl: initialize variables
Lennart Poettering [Fri, 8 Nov 2013 13:06:46 +0000 (14:06 +0100)]
systemctl: allow listing cgroups of containers
Lennart Poettering [Fri, 8 Nov 2013 12:57:18 +0000 (13:57 +0100)]
clients: fix some signal handler issues
Lennart Poettering [Fri, 8 Nov 2013 12:54:46 +0000 (13:54 +0100)]
systemctl: various cleanups
Lennart Poettering [Fri, 8 Nov 2013 12:54:18 +0000 (13:54 +0100)]
install: don't override caller's parameter
Lennart Poettering [Fri, 8 Nov 2013 12:54:00 +0000 (13:54 +0100)]
clients: add missing command line arguments
Lennart Poettering [Fri, 8 Nov 2013 12:53:25 +0000 (13:53 +0100)]
journal: fix minor memory leak
Lennart Poettering [Fri, 8 Nov 2013 12:53:09 +0000 (13:53 +0100)]
update TODO
Marc-Antoine Perennou [Thu, 7 Nov 2013 04:49:04 +0000 (13:49 +0900)]
systemctl: port to libsystemd-bus
Lennart Poettering [Thu, 7 Nov 2013 23:49:44 +0000 (00:49 +0100)]
machinectl: close bus to container early
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.
Tom Gundersen [Fri, 8 Nov 2013 10:18:51 +0000 (11:18 +0100)]
test-rtnl: fix typo
Michal Sekletar [Wed, 6 Nov 2013 10:18:02 +0000 (11:18 +0100)]
systemctl: return r instead of always returning 0
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.
Lennart Poettering [Thu, 7 Nov 2013 21:17:19 +0000 (22:17 +0100)]
bus: use new property retrieval calls everywhere
Lennart Poettering [Thu, 7 Nov 2013 21:08:41 +0000 (22:08 +0100)]
inhibit: more conversions to use bus_log_parse_error()
Lennart Poettering [Thu, 7 Nov 2013 21:06:29 +0000 (22:06 +0100)]
analyze: make use of new sd_bus_get_property_strv() call
Lennart Poettering [Thu, 7 Nov 2013 20:41:06 +0000 (21:41 +0100)]
update TODO
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
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
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()
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
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
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
Lennart Poettering [Thu, 7 Nov 2013 18:28:54 +0000 (19:28 +0100)]
bus: add APIs to easily query string and strv properties
Marc-Antoine Perennou [Thu, 7 Nov 2013 04:49:02 +0000 (13:49 +0900)]
bus: mark sd_bus_message_at_end public
Marc-Antoine Perennou [Thu, 7 Nov 2013 04:49:00 +0000 (13:49 +0900)]
bus: fix bus_print_property with strv
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.
Lennart Poettering [Thu, 7 Nov 2013 17:40:14 +0000 (18:40 +0100)]
bus: fix output of bus_message_dump()
Lennart Poettering [Thu, 7 Nov 2013 17:40:06 +0000 (18:40 +0100)]
bus: allow reading empty arrays with sd_bus_message_read_array()
Lennart Poettering [Thu, 7 Nov 2013 17:07:50 +0000 (18:07 +0100)]
rtnl: add Makefile symlink
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
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!
Lennart Poettering [Thu, 7 Nov 2013 16:11:25 +0000 (17:11 +0100)]
bus: also check for NULL when appending trivial types
Kay Sievers [Thu, 7 Nov 2013 15:44:33 +0000 (16:44 +0100)]
bus: message_append_basic() - allow string == NULL
Lennart Poettering [Thu, 7 Nov 2013 15:53:14 +0000 (16:53 +0100)]
socket-proxy: actually properly keep track of connections
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
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
Lennart Poettering [Thu, 7 Nov 2013 15:44:48 +0000 (16:44 +0100)]
api: replace manual C++ guards by macros
Lennart Poettering [Thu, 7 Nov 2013 15:43:25 +0000 (16:43 +0100)]
socket-proxyd: no need to redefine sockaddr union
Lennart Poettering [Thu, 7 Nov 2013 15:42:54 +0000 (16:42 +0100)]
util: add circle to special chars we can draw
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
Lennart Poettering [Thu, 7 Nov 2013 15:36:14 +0000 (16:36 +0100)]
update TODO
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
Kay Sievers [Thu, 7 Nov 2013 14:19:39 +0000 (15:19 +0100)]
machine: add missing header include
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.
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'
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
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 ")
Zbigniew Jędrzejewski-Szmek [Thu, 7 Nov 2013 06:34:19 +0000 (01:34 -0500)]
udevadm-settle: add missing brace
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.
Daniel Buch [Thu, 31 Oct 2013 09:03:08 +0000 (10:03 +0100)]
test-strv: add strv_split, strv_split_newline, strv_remove_prefix
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
Ronny Chevalier [Thu, 31 Oct 2013 19:46:29 +0000 (20:46 +0100)]
zsh-completion: add missing options for systemd-run
Yang Zhiyong [Sun, 3 Nov 2013 11:50:58 +0000 (19:50 +0800)]
udevadm-trigger: add parameters checking
Yang Zhiyong [Mon, 4 Nov 2013 03:26:07 +0000 (11:26 +0800)]
udevadm-settle: add parameters checking
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.
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.
Ronny Chevalier [Tue, 5 Nov 2013 22:32:56 +0000 (23:32 +0100)]
test: remove duplicated code
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.
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
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.