Commit Graph
6226 Commits
Author SHA1 Message Date
Lennart Poettering 050eb34da8 driverd: properly handle NameHasOwner() for unique names 2013-12-21 18:35:27 +01:00
Lennart Poettering 908b8720b8 bus: unify credential query code in driverd 2013-12-21 18:31:00 +01:00
Lennart Poettering aa56560dbb bus: when client asks driverd for credentials of a name, return a useful error if that name doesn't exist on the bus 2013-12-21 18:21:49 +01:00
Lennart Poettering 8875e122f0 driverd: make sure AddMatch is accessible without privileges 2013-12-21 18:13:05 +01:00
Lennart Poettering 7fb411f035 bus: when introspecting, turn unprivileged flag into inverse annoation of "privileged"
Internally, it makes sense to have a default of "privileged" for
methods, and a flag to open it up. However, externally in the bus
introspection turn this around since negative options actually suck.
2013-12-21 18:08:39 +01:00
Lennart Poettering b2bb3469fd bus: poll() on the right fds in proxyd 2013-12-21 17:54:29 +01:00
Lennart Poettering 0721804f03 bus: send status message from proxyd to systemd about client we are working for 2013-12-21 05:15:09 +01:00
Lennart Poettering 373d32c9f4 systemctl: fix bad memory access when processing PIDs on the "systemctl status" command line 2013-12-21 05:15:09 +01:00
Shawn Landden e10a55fd72 DEFAULT_PATH_SPLIT_USR macro 2013-12-20 23:14:21 -05:00
Zbigniew Jędrzejewski-Szmek 4d89874af6 logging: reduce send timeout to something more sensible
For a user, the timeout of 1 min per message seems equivalent to a hang.
If journald cannot process a message from PID1 for 10 ms then something
is significantly wrong. It's better to lose the message and continue.
2013-12-20 22:47:26 -05:00
Lennart Poettering 76252ffbde driverd: sort list of names returned by ListNames 2013-12-21 04:06:11 +01:00
Lennart Poettering 0358b3f95d bus: properly react to Disconnected messages in bus-proxyd 2013-12-21 04:03:12 +01:00
Lennart Poettering ba7689164c bus: change bus-proxyd command line parsing to be more similar to other tools 2013-12-21 03:59:07 +01:00
Lennart Poettering 3547329642 bus: refuse messages pretending to originate from local interface 2013-12-21 03:52:39 +01:00
Lennart Poettering bd746b8b0c bus: in sd_bus_try_close() consider local read queue too 2013-12-21 03:46:26 +01:00
Lennart Poettering 8e8d37602f bus: always override message destination field with data from kdbus 2013-12-21 03:46:20 +01:00
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 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
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
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