Commit Graph

13515 Commits

Author SHA1 Message Date
Lennart Poettering
aec8de63b1 core: no need to list properties for PropertiesChanged messages anymore
Since the vtable includes this information anyway, let's just use that
2013-12-22 03:50:52 +01:00
Lennart Poettering
a03e4337fd bus: allow invocation of sd_bus_emit_properties_changed_strv() with NULL list
When NULL is passed this shall indicate that a PropertiesChanged message
for all properties marked as EMITS_CHANGE or EMITS_INVALIDATION should
be generated.
2013-12-22 03:50:52 +01:00
Lennart Poettering
556089dc57 bus: decorate the various object vtables with SD_BUS_VTABLE_PROPERTY_CONST where appropriate 2013-12-22 03:50:52 +01:00
Lennart Poettering
df98a87ba3 bus: introduce concept of "const" properties
This way we have four kinds of properties:

a) those which are constant as long as an object exists
b) those which can change and PropertiesChange messages with contents are generated
c) those which can change and where the PropertesChange merely includes invalidation
d) those which can change but for which no events are generated

Clients (through code generators run on the introspection XML) can thus
aggressively cache a, b, c, with only d excluded.
2013-12-22 03:50:52 +01:00
Zbigniew Jędrzejewski-Szmek
69d918b092 man: update the list of commands influenced by --full
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732798
2013-12-21 19:07:59 -05:00
Zbigniew Jędrzejewski-Szmek
e213d1a3c3 man: mention --full and --lines in systemctl status
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732798
2013-12-21 19:00:23 -05:00
Florian Weimer
4ff4ebb1fb util: remove union dirent_storage 2013-12-21 18:35:55 -05:00
Florian Weimer
bde1fdd773 journal: replace readdir_r with readdir
This commit also adds error handling for failures during
directory reading.
2013-12-21 18:35:55 -05:00
Florian Weimer
a2be63f922 conf-files: replace readdir_r with readdir 2013-12-21 18:35:55 -05:00
Florian Weimer
0371ca0dac journald/server: replace readdir_r with readdir
The available_space function now returns 0 if reading the directory
fails.  Previously, such errors were silently ignored.
2013-12-21 18:35:55 -05:00
Florian Weimer
78a5d04dd6 journal/vacuum: replace readdir_r with readdir 2013-12-21 18:35:55 -05:00
Florian Weimer
3fd11280e8 util: replace readdir_r with readdir
This fixes rm_rf_children_dangerous to detect errors during directory
reading.  Previously, it could dereference an uninitialized pointer.
2013-12-21 18:35:55 -05:00
Florian Weimer
4d993c8cb7 install: replace readdir_r with readdir
The old code incorrectly assumed that readdir_r updates errno.
2013-12-21 18:35:55 -05:00
Florian Weimer
9fa3006323 core: replace readdir_r with readdir 2013-12-21 18:35:55 -05:00
Florian Weimer
66c7a5332a login: replace readdir_r with readdir 2013-12-21 18:35:55 -05:00
Florian Weimer
6887ec4f00 delta: replace readdir_r with readdir 2013-12-21 18:35:55 -05:00
Florian Weimer
d78096b343 tmpfiles: replace readdir_r with readdir 2013-12-21 18:35:55 -05:00
Djalal Harouni
016284c352 loginctl: correctly show session IDs on session-status
Commit f8f14b3654 introduced a regression that makes
loginctl session-status to not show the correct session ID(s)

In print_session_status_info() the map[] array, element "Seat" receives
the offset of the "id" in "SessionStatusInfo" struct instead of the
offset of the "seat" member.

This will cause prop_map_first_of_struct() function to overwrite the
SessionStatusInfo.id memory with seats if there are any.

Fix this typo by using the "seat" member.

Before:
 - tixxdz (1000)
          Since: Sat 2013-12-21 10:07:23 CET; 5h 26min ago
         Leader: 1265 (sshd)

After:
1 - tixxdz (1000)
           Since: Sat 2013-12-21 10:07:23 CET; 5h 26min ago
          Leader: 1265 (sshd)
2013-12-21 18:35:27 -05:00
Zbigniew Jędrzejewski-Szmek
841aa8c0b4 loginctl,shell-completions: fix listing of sessions/users/seats 2013-12-21 18:35:27 -05:00
Zbigniew Jędrzejewski-Szmek
40be878abb build-sys: add xml sources to EXTRA_DIST
Apparently automake does not include the sources if they are under
a conditional that is disabled when making dist. This means that
everything would have to be enabled to make distcheck work.
2013-12-21 18:35:27 -05:00
Zbigniew Jędrzejewski-Szmek
2dc38ed00f man: add systemd-dbus-proxy@.service(8) and systemd-dbus.proxy(8) 2013-12-21 18:34:40 -05:00
Zbigniew Jędrzejewski-Szmek
9818fa6d6d bus-proxyd: use a loop instead of c&p 2013-12-21 18:34:40 -05:00
Zbigniew Jędrzejewski-Szmek
cc4e8b6f70 bus-proxyd: show address nicely in --help 2013-12-21 18:26:47 -05:00
Lennart Poettering
dad5f697dd update TODO 2013-12-21 23:32:45 +01:00
Lennart Poettering
780f962c3e bus: fix bad memory access in driverd when we get an empty triggers list 2013-12-21 23:26:51 +01:00
Lennart Poettering
c20733832f bus: when getting credentials of a bus name that is activatable but not activated, say we don't have anything. 2013-12-21 23:21:31 +01:00
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
2aa40788f7 update TODO 2013-12-21 18:13:01 +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
Zbigniew Jędrzejewski-Szmek
3c547e6f8e build-sys: add sd_j_open_container manpage alias 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
daee56067f update TODO 2013-12-21 00:19:30 +01:00