Commit Graph

13471 Commits

Author SHA1 Message Date
Lennart Poettering
253ce82b64 bus: always consider well-known names sender credentials as attached to messages 2013-12-21 03:16:39 +01:00
Lennart Poettering
06100c7a1e bus: when filtering by sender take well known names lest from attached creds into account 2013-12-21 02:56:34 +01:00
Lennart Poettering
27fc65e14d core: make check for Disconnected message more precise 2013-12-21 02:40:40 +01:00
Lennart Poettering
85a0aa17dd bus: when watching bus names, we always need to add a change match
Since for the kernel change of ownership of a name between starter and
real client is a change and for userspace thats addition/removal, we
need to unconditionally subscribe to these change events.
2013-12-21 01:02:23 +01:00
Lennart Poettering
d86f9d5285 core: pass notify fd across reexecs
That way we the random socket name stays stable across reexec and we
won't lose client messages.
2013-12-21 00:53:22 +01:00
Lennart Poettering
daee56067f update TODO 2013-12-21 00:19:30 +01:00
Lennart Poettering
ae095f8605 bus: wrap KDBUS_CMD_BYEBYE with a high-level call sd_bus_try_close() 2013-12-20 23:26:11 +01:00
Daniel Mack
5a884f93fd libsystemd-bus: match on any connection ID unless specified 2013-12-20 23:12:42 +01:00
Daniel Mack
73842d62d7 libsystemd-bus: follow changes in kdbus
In particular, the match interface has seen a major overhaul.
2013-12-20 20:57:20 +01:00
Lennart Poettering
f7cf00fa51 def: lower exit-on-idle time 2013-12-19 22:18:39 +01:00
Lennart Poettering
ff0031069f sd-event: return 1 in sd_event_run() when we hit EINTR
That way we can distuingish timeouts from EINTR
2013-12-19 22:18:39 +01:00
Lennart Poettering
30b5275ac7 service: don't send out PropertiesChanged message for each watchdog notification 2013-12-19 22:18:39 +01:00
Lennart Poettering
d9e34bfda3 machined: implement exit-on-idle 2013-12-19 22:18:39 +01:00
Lennart Poettering
37224a5ff5 bus: fix exit-on-idle for driverd 2013-12-19 22:18:39 +01:00
Lennart Poettering
ff2ea19264 bus: reenable id change subscriptions 2013-12-19 22:18:39 +01:00
Thomas Hindoe Paaboel Andersen
051dfe8708 remove unused variable 2013-12-19 22:06:47 +01:00
Tom Gundersen
4d47756b8f rtnl: correctly get the size of data to be appended
This fixes:
  systemd[1]: Failed to configure loopback device: Numerical result out of range
2013-12-19 21:39:45 +01:00
Tom Gundersen
753e98788a loopback-setup: correctly set flags and scope for ipv6 address 2013-12-19 21:39:45 +01:00
Martin Pitt
c5b7838dde keymap: Refactor Acer tables
Move common keys into generic Acer table, and factorize the model specific
exceptions.
2013-12-19 08:33:32 +01:00
Kay Sievers
8da4de0376 bus: do not add empty strings, size should be 0 2013-12-19 06:56:53 +01:00
Zbigniew Jędrzejewski-Szmek
a669d6226d systemct: add empty line between units in cat 2013-12-18 23:58:24 -05:00
Djalal Harouni
495cb9bbeb loginctl: improve print_{session|user|seat}_status_info() functions
1) Instead of checking if we need to print a new line on each iteration,
pass the "new_line" as a pointer to those functions, so they can use
it to check if a new line is needed. This makes the code more consistent
as it is done in other places: machinectl, systemctl...

2) Move the error messages from show_{session|user|seat}() to their
appropriate print_{session|user|seat}_status_info() functions, this will
prevent from logging an error message twice in case show_properties()
fails and it will improve code readability.

3) Also do not ignore error codes on these functions.
2013-12-18 23:58:24 -05:00
Djalal Harouni
97aa7b4781 loginctl: use show_properties() to get login1 properties
Commit f8f14b3654 introduced a regression that makes loginctl ignore
the "--property" option.

This patch fixes the bug, it uses a new show_properties() function to
query and filter properties.
2013-12-18 23:58:24 -05:00
Djalal Harouni
1c3051eba4 loginctl: replace strv_append() by strv_extend() 2013-12-18 23:58:24 -05:00
Jason St. John
c736283bfb journalctl,zsh-completion: fix several issues in --help message text
-- fix grammar and reword some descriptions for clarity
-- add a useful description of what --follow does
-- fix the description for --after-cursor
-- properly introduce the FSS acronym for "Forward Secure Sealing" in
both sections
-- clarify the --disk-usage command

[zj: perform similar changes to zsh completions]

squash! journalctl: fix several issues in --help message text
2013-12-18 23:58:24 -05:00
Jason St. John
06d9d3efa5 man: add DOI for refereed article on Forward Secure Sealing to journald.conf(5)
In journalctl(1), be more explicit about the reference to "Seal=" in
journald.conf(5) and what information can be found there.
2013-12-18 23:58:24 -05:00
Jason St. John
9a7adc9a0e man: be more explicit about option arguments that take 128-bit IDs in journalctl(1)
It may not be immediately obvious to the reader what "ID128" is, so replace the
example option argument "ID128" with "128-bit-ID".
2013-12-18 23:58:23 -05:00
Jason St. John
c98fa7999b man: fix grammar issues in journalctl(1)
And add a missing <option> tag around "--setup-keys" under "--force".
2013-12-18 23:58:23 -05:00
Djalal Harouni
8c841f21f5 machinectl: show_properties() already logs the error 2013-12-18 23:58:23 -05:00
Zbigniew Jędrzejewski-Szmek
44433ebdb1 udevadm: modernization 2013-12-18 23:58:23 -05:00
Zbigniew Jędrzejewski-Szmek
7643ac9a8a udevadm,scsi_id: add short options to help strings and to the man page
Also clean things up a bit here and there.
2013-12-18 23:58:23 -05:00
Zbigniew Jędrzejewski-Szmek
ed142bdb68 scsi_id: cleanup
Remove -i option which would case exit(1) to happen.
Remove some unused code.
Convert to bool where appropriate.
Simplify things a bit.
Always free everything.

https://bugzilla.redhat.com/show_bug.cgi?id=1043304
2013-12-18 23:58:23 -05:00
Lennart Poettering
53461b74df driverd: implement AddMatch/RemoveMatch logic 2013-12-19 04:40:56 +01:00
Kay Sievers
b43b8f7a7e do not run kmod-setup in a container 2013-12-19 01:32:55 +01:00
Kay Sievers
7491e6e7c5 temporarily support "kdbus" keyword on the kernel commandline to load the module 2013-12-18 23:56:35 +01:00
Kay Sievers
e8a3b2dcfb libudev: monitor - only disallow "udev" type events 2013-12-18 22:30:26 +01:00
Kay Sievers
df32a1caaf libudev: disable monitor inside a container
Uevents are events of the host, which should not leak into a container.
Containers do not support hotplug at the moment, and devices and uevents
are not namespace aware.
2013-12-18 22:01:31 +01:00
Kay Sievers
ec76ec1fde bus: catch up with kdbus changes 2013-12-18 21:16:35 +01:00
Lukasz Skalski
3e8a51eae6 bus-driverd: fix flags translation in driver_request_name
Flags for a name entry (KDBUS_NAME_*) should be set for
cmd_name->flags (not conn_flags)
2013-12-18 19:32:58 +01:00
Lennart Poettering
8674debc67 Revert "ptyfwd: make master terminal attributes raw, too"
This reverts commit e7d43b3cc3.

This broke the console terminal when booting up a container, so let's
not do this.
2013-12-18 19:26:10 +01:00
Lennart Poettering
8e959fbf38 bus: reduce calls to KDBUS_CMD_MEMFD_SIZE_SET ioctl
Instead of calling it for each buffer append, increase allocation
exponentially and set the real value only at the end, when sealing off
the memfd.

This should drastically reduce the number of times we invoke the
ioctl().
2013-12-18 19:04:14 +01:00
Lennart Poettering
e7d43b3cc3 ptyfwd: make master terminal attributes raw, too 2013-12-18 18:21:28 +01:00
Lennart Poettering
ccf22d4a10 units: when spawning a getty configure TERM explicitly
This way we can make use of our logic to automatically determine an
appropriate TERM for a specific tty.
2013-12-18 18:21:28 +01:00
Lennart Poettering
7cae38c4fa execute: set TERM even if we don't open the tty on our own
This way, when a tty path is configured TERM is set, which is nice to
set a useful term for gettys.
2013-12-18 18:21:28 +01:00
Lennart Poettering
ddae67fa1b loginctl: when showing device tree of seats with no devices show something useful 2013-12-18 18:21:28 +01:00
Lennart Poettering
06acf2d46a core,logind: libudev usage modernizations
Always use cleanup logic and don't eat up errors returned by libudev
2013-12-18 18:21:28 +01:00
Lennart Poettering
e120204729 core,logind,networkd: check for udev device initialization via enumeration matches
Instead of checking each device after we got it, check wuth an
enumeration filter instead, to make it more efficient.
2013-12-18 18:21:28 +01:00
Lennart Poettering
fa28bc2df7 core: priorize notification fd processing over notification fd process via sd-event's logic 2013-12-18 18:21:27 +01:00
Lennart Poettering
0e6eaa2d98 log: when we log to /dev/console and got disconnected (maybe due to vhangup) reconnect 2013-12-18 18:21:27 +01:00
Lennart Poettering
74f9e0f203 units: run systemd-networkd.service only if CAP_NET_ADMIN capability is around
This has the effect that systemd-networkd won't run in containers
without network namespacing wher CAP_NET_ADMIN is (usually) not
available. It will still run in containers with network namespacing on
(where CAP_NET_ADMIN is usually avilable).

We might remove this condition check again if networkd provides services
to apps that also are useful in containers lacking network namespacing,
however, as long as it doesn't it should be handled like udevd and be
excluded in such containers.
2013-12-18 18:21:27 +01:00