Fixed system calls to look both /sbin and /usr/sbin. This is partial fix to NB#433

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
Reduce indentation in dsme-wdd-wc.c

This simplifies the code a little for adding support for watchdog core
compatible device drivers.

Signed-off-by: Jarkko Nikula <jarkko.nikula@jollamobile.com>
Swap driver order in table wd[]

This is preparation for watchog core compatible device drivers. Later we are
assuming here that the first registered /dev/watchdog0 is omap_wdt and
thus will try to match "no-omap-wd" R&D flag with it and "no-ext-wd"
with /dev/watchdog1 respectively.

Signed-off-by: Jarkko Nikula <jarkko.nikula@jollamobile.com>
Add basic support for watchdog core compatible device drivers

This patch tries to first open /dev/watchdog[0-9] before legacy Nokia
specific nodes in table wd[]. This allows basic backward-forward
compatibility in DSME to work both with legacy Nokia N9xx and newer
Linux kernels.

Signed-off-by: Jarkko Nikula <jarkko.nikula@jollamobile.com>
Bump version to 0.62.2

Signed-off-by: Jarkko Nikula <jarkko.nikula@jollamobile.com>
validatorlistener module loading can be omitted with --disable-validatorlistener
Fixes NEMO#471
validatorlistener module loading can be omitted with --disable-validatorlistener
Fixes NEMO#471

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
Merge branch 'master' of github.com:nemomobile/dsme
Added exception to dsme dbus rules to allow at_console daemons to
send shutdown/reboot requests
Fixes: NEMO#433 : power off' option does not work
Version 0.62.4

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
Changed oom.c so that it supports oom value change both on new and old kernel
Fixes NEMO#475: dsme gives warning about deprecated use of oom_adj

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
This commit removes the libcreds dependency. The reason for the dependency
is that in dsme/dsmesock.c we check that the clients accessing DSME
over a socket have a credential for access. Since we no longer in fact
perform the check, the whole libcreds dependency (and the check)
can be removed.
Added support to signal systemd when ready. Fixes NEMO#566

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
dsme uses libdsme to get default socket location. Fixes NEMO#575

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
Enabled runlevels. Fixes NEMO#608
Enabled runlevels. Fixes NEMO#608

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
Merge branch 'master' of github.com:nemomobile/dsme
Fix automatic detection of powerkey input devices

Instead of relying on driver names, the code now detects
devices that can send KEY_POWER events.

In case there are several devices that can emit power key
events, all are tracked. However no attempt is made to try
to separate simultaneous powerkey presses from several
sources.
Normalized whitespace and fixed a typo
Made state change timeouts longer

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
vers 0.62.9

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>