chiark / gitweb /
7 years agobus: split socket related code into bus-socket.[ch], to prepare for kdbus backend
Lennart Poettering [Mon, 25 Mar 2013 02:04:03 +0000 (03:04 +0100)]
bus: split socket related code into bus-socket.[ch], to prepare for kdbus backend

7 years agobus: implement 'unixexec:' protocol
Lennart Poettering [Mon, 25 Mar 2013 01:30:32 +0000 (02:30 +0100)]
bus: implement 'unixexec:' protocol

7 years agobus: make optional whether unix socket passing is negotiated and whether hello is...
Lennart Poettering [Sun, 24 Mar 2013 22:55:03 +0000 (23:55 +0100)]
bus: make optional whether unix socket passing is negotiated and whether hello is sent

This alos gets rid of explicit sd_open_fd() and sd_open_address()
constructors in favour of sd_new() + sd_new_start() where the
negotiation parameters may be set it in between.

7 years agobus: properly handle termination of connections
Lennart Poettering [Sun, 24 Mar 2013 22:54:44 +0000 (23:54 +0100)]
bus: properly handle termination of connections

7 years agobus: implement support for FD passing
Lennart Poettering [Sun, 24 Mar 2013 21:02:05 +0000 (22:02 +0100)]
bus: implement support for FD passing

7 years agoservice: no need to drop rc. prefix anymore
Miklos Vajna [Sun, 24 Mar 2013 09:06:38 +0000 (10:06 +0100)]
service: no need to drop rc. prefix anymore

This reverts commit f5c88ec1330b61787441156de7d764a140774bd2. It is no
longer necessary, and adds unnecessary magic.

7 years agojournald: remove unconditional log_*() use in the main loop
Kay Sievers [Sat, 23 Mar 2013 20:02:59 +0000 (21:02 +0100)]
journald: remove unconditional log_*() use in the main loop

Setting MaxRetentionSec= caused the kernel log to overflow and the
journal daemon to enter an endless loop.

Logging from the journald main loop gets directed to /dev/kmsg,
which wakes up journald again. We skip the import of this message
by checking for our own PID, but this still causes the main loop
to never go to sleep again because we never stopped logging from

7 years agoTODO: add journal MaxRetentionSec= bug
Kay Sievers [Sat, 23 Mar 2013 19:36:05 +0000 (20:36 +0100)]
TODO: add journal MaxRetentionSec= bug

Kay Sievers [Sat, 23 Mar 2013 15:27:28 +0000 (16:27 +0100)]

With the conversion from pci-db + usb-db to hwdb, the property
got accitentially renamed.

Move the name back to the long established identifier *MODEL*
instead of *PRODUCT*.

  $ git grep -l ID_MODEL_FROM_DATABASE

7 years agouaccess: remove needless usb_id call from udev rules
Kay Sievers [Sat, 23 Mar 2013 15:26:49 +0000 (16:26 +0100)]
uaccess: remove needless usb_id call from udev rules

7 years agoudevd: ensure static nodes are created before local-fs mount
Frederic Crozat [Thu, 21 Mar 2013 16:28:13 +0000 (17:28 +0100)]
udevd: ensure static nodes are created before local-fs mount

static nodes (like /dev/loop-control) are created when systemd-udevd
is started and needed to mount loopback devices. Therefore, should be only started after systemd-udevd is

7 years agoTODO: add "dead" device node ACL handling
Kay Sievers [Sat, 23 Mar 2013 13:01:44 +0000 (14:01 +0100)]
TODO: add "dead" device node ACL handling

7 years agoTODO: update
Kay Sievers [Sat, 23 Mar 2013 12:34:13 +0000 (13:34 +0100)]
TODO: update

7 years agoUpdate user session unit template.
Auke Kok [Sat, 23 Mar 2013 04:43:31 +0000 (21:43 -0700)]
Update user session unit template.

While most folks will be using the derivative from user-session-units,
I'm updating this one to reflect some of the fixes and things to note
about user sessions:

- cgroup should be set with "%u" - username instead of %I
- set dbus path with %U explicitly too
- hint to folks that wish to use MEM_CG features in user sessions
- allow unit to be enabled for instances with systemctl enable

7 years agoconf-parser: when we parse a string list, always fill in something
Lennart Poettering [Sat, 23 Mar 2013 03:32:43 +0000 (04:32 +0100)]
conf-parser: when we parse a string list, always fill in something

Some code really wants to know whether there was a string list parsed,
so don't take the shortcut here, and always allocate a string list, even
if it is an empty one.

7 years agojournal: don't access j->files after use
Lennart Poettering [Sat, 23 Mar 2013 03:11:23 +0000 (04:11 +0100)]
journal: don't access j->files after use

7 years agoudevadm: place const in the right place
Zbigniew Jędrzejewski-Szmek [Sat, 23 Mar 2013 02:55:05 +0000 (22:55 -0400)]
udevadm: place const in the right place

Otherwise clang at least thinks that both consts apply to char.

7 years agobus: don't free an unallocated var
Zbigniew Jędrzejewski-Szmek [Sat, 23 Mar 2013 02:00:49 +0000 (22:00 -0400)]
bus: don't free an unallocated var

Also remove unused variable.

7 years agobus: move attribute to end of structure, so it is not ignored
Zbigniew Jędrzejewski-Szmek [Sat, 23 Mar 2013 01:58:43 +0000 (21:58 -0400)]
bus: move attribute to end of structure, so it is not ignored

src/libsystemd-bus/bus-message.h:41:1: warning: attribute 'packed' is ignored, place it after
      "struct" to apply attribute to type declaration [-Wignored-attributes]

7 years agoupdate TODO
Lennart Poettering [Sat, 23 Mar 2013 03:03:32 +0000 (04:03 +0100)]
update TODO

7 years agoupdate TODO
Lennart Poettering [Sat, 23 Mar 2013 02:19:50 +0000 (03:19 +0100)]
update TODO

7 years agounit: never retroactively start requisites
Lennart Poettering [Sat, 23 Mar 2013 02:16:17 +0000 (03:16 +0100)]
unit: never retroactively start requisites

Requesites are not supposed to be auto-started afterall, they are just
checks, so don't try to be smarter here than appropriate.

Based on a patch from Michal Schmidt.

7 years agoRevert "units: ignore systemd-sysctl on shutdown"
Lennart Poettering [Sat, 23 Mar 2013 02:10:41 +0000 (03:10 +0100)]
Revert "units: ignore systemd-sysctl on shutdown"

This reverts commit faeffa73a81ab5b59acfadeb571431fb0e42af70.

There isn't really much point in dropping the Conflicts= since shutting
down this service is basically free as it doesn't have anything running.

Also, the patch was incomplete, because was still listed
in Before=.

7 years agoadd --with-telinit=PATH configure option
Cristian Rodríguez [Sat, 23 Mar 2013 00:04:53 +0000 (21:04 -0300)]
add --with-telinit=PATH configure option

Distributions that never shipped upstart do not have
"telinit" in /lib/upstart/..

Defaults to /lib/upstart/telinit so there is no change
for systems existing installs.

7 years agojournalctl: various fixes to the access check logic
Lennart Poettering [Sat, 23 Mar 2013 00:12:22 +0000 (01:12 +0100)]
journalctl: various fixes to the access check logic

- Reword messages a bit

- Correct check whether EACCES is in the set of errors

- Don't complain if no journal files are found

- allocate Set object for errors lazily since in the best case we don't
  need it at all.

- don't consider it an error if /run/log/journal doesn't exist (because
  that's the usual case actually, if storage is enabled)

7 years agodbus: Do send out "replies" to signals
Colin Walters [Fri, 22 Mar 2013 13:36:22 +0000 (09:36 -0400)]
dbus: Do send out "replies" to signals

Some parts of systemd (at least the DBus activation codepath) "reply"
to signals, which of course have the no-reply flag set.  We will be
defensive here and still send out a reply if we're passed a signal.

Regression introduced by: c6a818c82035da91e

Reported-by: Mantas Mikulėnas <>
Tested-by: Mantas Mikulėnas <>
7 years agoupdate TODO
Lennart Poettering [Fri, 22 Mar 2013 22:28:36 +0000 (23:28 +0100)]
update TODO

7 years agoexec: Assigning the empty string to CapabilityBoundSet= should drop all caps
Lennart Poettering [Fri, 22 Mar 2013 22:25:54 +0000 (23:25 +0100)]
exec: Assigning the empty string to CapabilityBoundSet= should drop all caps

Previously, it would set all caps, but it should drop them all, anything
else makes little sense.

Also, document that this works as it does, and what to do in order to
assign all caps to the bounding set.

7 years agoDrop trailing whitespace
Tollef Fog Heen [Fri, 22 Mar 2013 21:51:52 +0000 (22:51 +0100)]
Drop trailing whitespace

7 years agotimedated: extra overflow safety check when doing relative time changes
Lennart Poettering [Fri, 22 Mar 2013 20:35:53 +0000 (21:35 +0100)]
timedated: extra overflow safety check when doing relative time changes

Ensure clients don't overflow usec_t when doing relative time changes.
This is mostly just paranoia and protection against accidents, after all
clients are already authenticated, and they can se the time to any
value they wish anyway, but better be safe than sorry.

7 years agoupdate TODO
Lennart Poettering [Fri, 22 Mar 2013 20:17:53 +0000 (21:17 +0100)]
update TODO

7 years agotimedatectl: show CanNTP field
Lennart Poettering [Fri, 22 Mar 2013 20:17:45 +0000 (21:17 +0100)]
timedatectl: show CanNTP field

7 years agoudev: no need to output OOM, if we call log_oom() anyway
Lennart Poettering [Fri, 22 Mar 2013 20:05:42 +0000 (21:05 +0100)]
udev: no need to output OOM, if we call log_oom() anyway

7 years agomain: minor simplification
Lennart Poettering [Fri, 22 Mar 2013 14:05:51 +0000 (15:05 +0100)]
main: minor simplification

7 years agoudev/collect: avoid initalizing memory twice
Zbigniew Jędrzejewski-Szmek [Fri, 22 Mar 2013 00:05:42 +0000 (20:05 -0400)]
udev/collect: avoid initalizing memory twice

7 years agoutil: workaround two gcc warnings
Zbigniew Jędrzejewski-Szmek [Fri, 22 Mar 2013 03:24:30 +0000 (23:24 -0400)]
util: workaround two gcc warnings

gcc does not know that errno cannot be negative, and warns
about unitialized variables later on. Kill the warnings by
returning -errno only after checking that errno is positive.

7 years agojournalctl: be smarter about journal error checks
Zbigniew Jędrzejewski-Szmek [Mon, 11 Mar 2013 22:03:13 +0000 (18:03 -0400)]
journalctl: be smarter about journal error checks

There are many ways in which we can get those checks wrong, so it is
better to warn and then error out on a real access failure.

The error messages are wrapped to <80 lines, because their primary
use is to be displayed in the terminal, and it is easier to read them
this way. Reading them in the journal can be a bit trickier, but
this is a bug in logs-show.c.

7 years agobuild-sys: move acl searching code into libsystemd-acl
Zbigniew Jędrzejewski-Szmek [Fri, 22 Mar 2013 14:35:26 +0000 (14:35 +0000)]
build-sys: move acl searching code into libsystemd-acl

This loop over acls is a bit too much to keep inside
of another loop.

7 years agohostnamed: pretty_string_is_safe() already exists in string_has_cc(), so use that
Lennart Poettering [Fri, 22 Mar 2013 17:01:26 +0000 (18:01 +0100)]
hostnamed: pretty_string_is_safe() already exists in string_has_cc(), so use that

7 years agoutil: be more picky when validating hostnames
Lennart Poettering [Fri, 22 Mar 2013 16:59:49 +0000 (17:59 +0100)]
util: be more picky when validating hostnames

No longer allow dots at the beginning or end of host names, Or double

7 years agojournalctl: give a nice hint about group membership based on ACLs of /var/log/journal
Lennart Poettering [Fri, 22 Mar 2013 16:44:15 +0000 (17:44 +0100)]
journalctl: give a nice hint about group membership based on ACLs of /var/log/journal

If we notice that we unprivileged and not in any of the groups which
have access to /var/log/journal, print a nice message about which groups

This checks and prints all groups that are in the default ACL for
/var/log/journal, which is not necessarily correct for all journal
files, but pretty close.

7 years agocgroup: minor optimization
Lennart Poettering [Fri, 22 Mar 2013 05:01:04 +0000 (06:01 +0100)]
cgroup: minor optimization

7 years agobus: implement object handler registry
Lennart Poettering [Fri, 22 Mar 2013 04:58:47 +0000 (05:58 +0100)]
bus: implement object handler registry

7 years agomount: mount all cgroup controllers in containers, too
Lennart Poettering [Fri, 22 Mar 2013 03:42:48 +0000 (04:42 +0100)]
mount: mount all cgroup controllers in containers, too

7 years agomain: use strv_find() where we can
Lennart Poettering [Fri, 22 Mar 2013 03:42:26 +0000 (04:42 +0100)]
main: use strv_find() where we can

7 years agomain: don't mount cgroup controller unless PID == 1
Lennart Poettering [Fri, 22 Mar 2013 03:40:05 +0000 (04:40 +0100)]
main: don't mount cgroup controller unless PID == 1

This completes c1dae1b3c9729fb8ab749dd4e2dad07e0fad7ed8 in a way.

7 years agoFix vacuum logic error
Jan Alexander Steffens (heftig) [Wed, 20 Mar 2013 20:32:05 +0000 (21:32 +0100)]
Fix vacuum logic error

The vacuum code used to stop vacuuming after one deletion, even
when max_use was still exceeded.

Also make usage a uint64_t, as the code already pretends it is one.

Signed-off-by: Jan Alexander Steffens (heftig) <>
7 years agoman/shutdown: /etc/nologin is called /run/nologin now
Zbigniew Jędrzejewski-Szmek [Fri, 22 Mar 2013 02:47:32 +0000 (22:47 -0400)]
man/shutdown: /etc/nologin is called /run/nologin now

7 years agosystemd-python: allow retrieval of single fields
Zbigniew Jędrzejewski-Szmek [Thu, 21 Mar 2013 03:01:32 +0000 (23:01 -0400)]
systemd-python: allow retrieval of single fields

This can give huge efficiency gains, e.g. if only MESSAGE
is required and all other fields can be ignored.

7 years agosystemd-python: split out realtime and monotonic into separate functions
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 23:12:27 +0000 (19:12 -0400)]
systemd-python: split out realtime and monotonic into separate functions

This matches the C API more closely, and also enables the
user to get just partial information, should she desire to
do so.

Functions names in error messages are modified to not include
the class name, because Python uses just the function name
into functions declared as METH_NOARGS, and error messages
were inconsistent.

7 years agosystemd-python: implement _Reader.test_cursor
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 23:00:37 +0000 (19:00 -0400)]
systemd-python: implement _Reader.test_cursor

Getting the cursor is split out from .get_next() into
.get_cursor(). This mirrors the C API more closely, and
also makes things a bit faster if the cursor is not needed.

7 years agosystemd-python: cleanup up usec_t handling
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 22:40:05 +0000 (18:40 -0400)]
systemd-python: cleanup up usec_t handling

The behaviour wrt. seconds vs. microseconds was inconsistent.
Now _Reader always uses native units (us), while Reader always
uses seconds and accepts both floats and ints. This way the
conversion is always done in the Python layer, and the lower
level API allows access to the journal API without the potentially
lossy conversion between double and uint64_t.

7 years agosystemd-python: export sd_journal_get_usage
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 22:30:10 +0000 (18:30 -0400)]
systemd-python: export sd_journal_get_usage

7 years agoefivars: fix return code
Zbigniew Jędrzejewski-Szmek [Fri, 22 Mar 2013 00:55:17 +0000 (20:55 -0400)]
efivars: fix return code

Was returning 1 on read error.

7 years agoshutdownd: shut up bogus gcc warning
Zbigniew Jędrzejewski-Szmek [Thu, 21 Mar 2013 23:20:41 +0000 (19:20 -0400)]
shutdownd: shut up bogus gcc warning

This one is fake. But let's kill it, avoiding two condition checks
in the process.

src/shutdownd/shutdownd.c: In function 'when_wall':
src/shutdownd/shutdownd.c:182:44: warning: 'sub' may be used uninitialized in this function [-Wmaybe-uninitialized]
         return elapse > sub ? elapse - sub : 1;

7 years agobootchart: fix two unitialized memory frees
Zbigniew Jędrzejewski-Szmek [Thu, 21 Mar 2013 23:10:50 +0000 (19:10 -0400)]
bootchart: fix two unitialized memory frees

The new gcc isn't bad!

In file included from src/bootchart/svg.c:36:0:
src/bootchart/svg.c: In function 'svg_ps_bars':
./src/shared/util.h:524:13: warning: 'enc_name' may be used uninitialized in this function [-Wmaybe-uninitialized]
         free(*(void**) p);
src/bootchart/svg.c:821:37: note: 'enc_name' was declared here
                 char _cleanup_free_*enc_name;
  CC     src/udev/mtd_probe/mtd_probe-probe_smartmedia.o
  XSLT     man/systemd.unit.5
In file included from src/bootchart/svg.c:36:0:
src/bootchart/svg.c: In function 'svg_pss_graph':
./src/shared/util.h:524:13: warning: 'enc_name' may be used uninitialized in this function [-Wmaybe-uninitialized]
         free(*(void**) p);
src/bootchart/svg.c:395:37: note: 'enc_name' was declared here
                 char _cleanup_free_*enc_name;

7 years agoinitctl: fix return from unitialized memory in error path
Zbigniew Jędrzejewski-Szmek [Thu, 21 Mar 2013 23:06:55 +0000 (19:06 -0400)]
initctl: fix return from unitialized memory in error path

src/initctl/initctl.c: In function 'server_init':
src/initctl/initctl.c:282:13: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
         int r;

7 years agobuild-sys: use _FORTIFY_SOURCE with new gcc level -Og
Zbigniew Jędrzejewski-Szmek [Thu, 21 Mar 2013 18:53:12 +0000 (18:53 +0000)]
build-sys: use _FORTIFY_SOURCE with new gcc level -Og

7 years agobus: implicitly collect ucred/label information
Lennart Poettering [Fri, 22 Mar 2013 02:36:58 +0000 (03:36 +0100)]
bus: implicitly collect ucred/label information

7 years agobus: also finish connection before returning from sd_bus_get_unique_name()
Lennart Poettering [Fri, 22 Mar 2013 02:34:29 +0000 (03:34 +0100)]
bus: also finish connection before returning from sd_bus_get_unique_name()

7 years agobus: when parsing enforce maximum container depth
Lennart Poettering [Fri, 22 Mar 2013 01:32:34 +0000 (02:32 +0100)]
bus: when parsing enforce maximum container depth

7 years agobus: fix uninitialized variable
Lennart Poettering [Fri, 22 Mar 2013 01:20:39 +0000 (02:20 +0100)]
bus: fix uninitialized variable

7 years agobus: validate the hello response properly
Lennart Poettering [Fri, 22 Mar 2013 01:20:21 +0000 (02:20 +0100)]
bus: validate the hello response properly

7 years agobus: properly verify recursion depth of signatures
Lennart Poettering [Fri, 22 Mar 2013 01:19:49 +0000 (02:19 +0100)]
bus: properly verify recursion depth of signatures

7 years agobus: rework synchronization logic
Lennart Poettering [Fri, 22 Mar 2013 00:49:56 +0000 (01:49 +0100)]
bus: rework synchronization logic

Instead of allowing certain actions fail during authentication and
connection setup, implicitly synchronize on the connection to be set up
completely before returning.

7 years agobus: reuse more code
Lennart Poettering [Fri, 22 Mar 2013 00:49:13 +0000 (01:49 +0100)]
bus: reuse more code

7 years agobus: validate the entire header more closely
Lennart Poettering [Fri, 22 Mar 2013 00:15:20 +0000 (01:15 +0100)]
bus: validate the entire header more closely

7 years agobus: properly validate object path values
Lennart Poettering [Thu, 21 Mar 2013 23:42:53 +0000 (00:42 +0100)]
bus: properly validate object path values

7 years agobus: generate a nice error when attempting to add a NULL string
Lennart Poettering [Thu, 21 Mar 2013 23:24:21 +0000 (00:24 +0100)]
bus: generate a nice error when attempting to add a NULL string

7 years agobus: implicitly handle peer commands Ping() and GetMachineId()
Lennart Poettering [Thu, 21 Mar 2013 23:08:58 +0000 (00:08 +0100)]
bus: implicitly handle peer commands Ping() and GetMachineId()

7 years agobus: enforce limits on all client influenced data objects
Lennart Poettering [Thu, 21 Mar 2013 22:20:25 +0000 (23:20 +0100)]
bus: enforce limits on all client influenced data objects

7 years agobus: implicitly set no_reply flag on outgoing messages if the serial number is not...
Lennart Poettering [Thu, 21 Mar 2013 22:01:59 +0000 (23:01 +0100)]
bus: implicitly set no_reply flag on outgoing messages if the serial number is not kept

If nobody keeps the serial number of an outgoing message we know that
nobody expects an answer to it, so set the no_reply flag accordingly.

7 years agoudev: always set selinux label at "add" events
Kay Sievers [Thu, 21 Mar 2013 22:11:51 +0000 (23:11 +0100)]
udev: always set selinux label at "add" events

7 years agobus: implement full method call timeout logic
Lennart Poettering [Thu, 21 Mar 2013 21:50:25 +0000 (22:50 +0100)]
bus: implement full method call timeout logic

7 years agohwdb: update
Kay Sievers [Thu, 21 Mar 2013 21:17:13 +0000 (22:17 +0100)]
hwdb: update

7 years whitespace cleanup
Kay Sievers [Thu, 21 Mar 2013 21:16:55 +0000 (22:16 +0100)] whitespace cleanup

7 years agodoc: disable gtk-doc test again - you are a really annoying piece of software
Kay Sievers [Thu, 21 Mar 2013 14:07:54 +0000 (15:07 +0100)]
doc: disable gtk-doc test again - you are a really annoying piece of software

make  check-TESTS
make[5]: Nothing to be done for `/usr/bin/gtkdoc-check.log'.
fatal: making test-suite.log: failed to create /usr/bin/gtkdoc-check.trs
fatal: making test-suite.log: failed to create /usr/bin/gtkdoc-check.log
make[4]: *** [test-suite.log] Error 1
make[3]: *** [check-TESTS] Error 2
make[2]: *** [check-am] Error 2
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2

7 years agobuild-sys: include missing header in dist tarball
Michael Biebl [Thu, 21 Mar 2013 10:05:43 +0000 (11:05 +0100)]
build-sys: include missing header in dist tarball

7 years agoshared: add simple priority queue implementation
Lennart Poettering [Thu, 21 Mar 2013 01:42:28 +0000 (02:42 +0100)]
shared: add simple priority queue implementation

7 years agobus: compare to negative errno
Dave Reisner [Wed, 20 Mar 2013 23:25:37 +0000 (19:25 -0400)]
bus: compare to negative errno

7 years agoactivate: avoid warning from -Wshadow
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 22:30:31 +0000 (18:30 -0400)]
activate: avoid warning from -Wshadow

src/activate/activate.c:167:51: warning: declaration shadows a variable in the global scope [-Wshadow]
static int launch(char* name, char **argv, char **environ, int fds) {
/usr/include/unistd.h:546:15: note: previous declaration is here
extern char **environ;

7 years agoMake two functions static
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 22:27:49 +0000 (18:27 -0400)]
Make two functions static

7 years agoRemove some unused variables
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 22:25:35 +0000 (18:25 -0400)]
Remove some unused variables

7 years agosystemd-analyze: do not format timestamp when not printing it
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 22:22:20 +0000 (18:22 -0400)]
systemd-analyze: do not format timestamp when not printing it

../src/analyze/systemd-analyze.c:530:88: warning: data argument not used by format string [-Wformat-extra-args]
  ...svg_text(false, u->ixt, y, u->time? "%s (%s)" : "%s", u->name, format_timespan(ts, sizeof(ts), u->time));
                                                     ~~~~           ^

7 years agocore: remove unnecessary goto in setup_namespace
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 22:12:37 +0000 (18:12 -0400)]
core: remove unnecessary goto in setup_namespace

7 years agobus-message: fix typo
Tom Gundersen [Wed, 20 Mar 2013 23:01:14 +0000 (00:01 +0100)]
bus-message: fix typo

7 years agoupdate TODO
Lennart Poettering [Wed, 20 Mar 2013 21:57:55 +0000 (22:57 +0100)]
update TODO

7 years agobus: hook up client with socket communication
Lennart Poettering [Wed, 20 Mar 2013 21:56:25 +0000 (22:56 +0100)]
bus: hook up client with socket communication

7 years agobus: introduce bus_error_is_dirty() independently of sd_bus_error_is_set()
Lennart Poettering [Wed, 20 Mar 2013 12:10:12 +0000 (13:10 +0100)]
bus: introduce bus_error_is_dirty() independently of sd_bus_error_is_set()

7 years agobus: demarshal header fields properly
Lennart Poettering [Wed, 20 Mar 2013 04:29:20 +0000 (05:29 +0100)]
bus: demarshal header fields properly

7 years agobus: implement demarshaller
Lennart Poettering [Wed, 20 Mar 2013 02:15:03 +0000 (03:15 +0100)]
bus: implement demarshaller

7 years agobus: suppress reply messages to method calls with no_reply set
Lennart Poettering [Tue, 19 Mar 2013 19:16:27 +0000 (20:16 +0100)]
bus: suppress reply messages to method calls with no_reply set

7 years agobus: add basic implementation of a native bus client library
Lennart Poettering [Tue, 19 Mar 2013 19:03:16 +0000 (20:03 +0100)]
bus: add basic implementation of a native bus client library

7 years agostdio-bridge: modernization
Lennart Poettering [Tue, 19 Mar 2013 19:01:35 +0000 (20:01 +0100)]
stdio-bridge: modernization

7 years agoutil: add hexmem() and strextend() calls
Lennart Poettering [Tue, 19 Mar 2013 19:01:18 +0000 (20:01 +0100)]
util: add hexmem() and strextend() calls

7 years agomacro: add CHAR_TO_STR macro to make a one character string from a char
Lennart Poettering [Tue, 19 Mar 2013 19:00:55 +0000 (20:00 +0100)]
macro: add CHAR_TO_STR macro to make a one character string from a char

7 years agomacro: don't redefine CLAMP if it is already defined by glib or some other library
Lennart Poettering [Tue, 19 Mar 2013 19:00:29 +0000 (20:00 +0100)]
macro: don't redefine CLAMP if it is already defined by glib or some other library

7 years agoMake PrivateTmp dirs also inaccessible from the outside
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 05:38:28 +0000 (01:38 -0400)]
Make PrivateTmp dirs also inaccessible from the outside

Currently, PrivateTmp=yes means that the service cannot see the /tmp
shared by rest of the system and is isolated from other services using
PrivateTmp, but users can access and modify /tmp as seen by the

Move the private /tmp and /var/tmp directories into a 0077-mode
directory. This way unpriviledged users on the system cannot see (or
modify) /tmp as seen by the service.

7 years agobuild-sys: fix typo in human-readable output
Jan Engelhardt [Wed, 20 Mar 2013 14:23:30 +0000 (15:23 +0100)]
build-sys: fix typo in human-readable output

7 years agolibudev: avoid potential misaligned accesses
Jan Engelhardt [Wed, 20 Mar 2013 14:23:32 +0000 (15:23 +0100)]
libudev: avoid potential misaligned accesses

clang reports:
  src/libudev/libudev-util.c:665:35: warning: cast from
  "const unsigned char *" to "unsigned int *" increases required alignment
  from 1 to 4 [-Wcast-align]