34 Commits (fc1fad883adf446e1dd654f28dfed468228b80c3)

Author SHA1 Message Date
Dmitry Gerasimov 169bfacc53 [mapplauncherd] Require sailjail. JB#54548 OMP#JOLLA-191 4 years ago
Matti Lehtimäki 3465fc3e01 [mapplauncherd] Move .so file to devel package. Cleanup spec. JB#54626 4 years ago
Matti Lehtimäki 99db471353 Bump version. Update URL in spec. 4 years ago
Bart Ribbers f110211be1
Packaging: add new pkgconfig file to devel package and add new dep on ECM 4 years ago
Raine Makelainen 51abc464b7 Bump version 4 years ago
Simo Piiroinen 833b551af1 [mapplauncerd] Sandboxed application boosters. JB#53844 OMP#JOLLA-43
When booster is executing in sandbox as an applicatiom booster, it
needs to verify that command line received from invoker matches
Exec line in application desktop file, application launch is allowed,
and permissions granted are as was expected at the time of booster
launch.

Provide booster-generic@.service that can be used for instantiating
sandboxed application boosters.

D-Bus ipc with sailjaild is modified version of similar code in
sailjailclient. The biggest difference is that this version uses
private connection via libdbus to avoid leaving stray dbus connections
or threads behind when transferring control to application code
without use of exec*() functions.

Remove cap_sys_ptrace from booster executable as makes it impossible
to run the booster within a no-new-privs sandbox.

Fix socket passing from booster instance to booster daemon so that it
works also when invoker is running in different namespace than booster
instance (invoker pid might be unresolvable).

Replace ad-hoc booster argument parsing with getopt_long().

Fix issues with argv handling: using const pointers for non-const
data, passing data by reference between objects that might have
different lifespans and never releasing the dynamically allocated
arrays.

Fix issues with env passing: duplicating invoker env at booster
side as-is can lead to problems like loss of customg session
bus socket address that has been set up by firejail.

If booster bumps into command read problems, bailout immediately
instead of relying on out-of sequence data possibly triggering
exit due to unknown commands.

As an enabler for sharing code between invoker (written in c) and
daemon (written in c++), modify Logger class used by c++ code so
that it is just a wrapper for logging functionality used by invoker.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
4 years ago
Simo Piiroinen 15f235ff24 Version to 4.2.1
Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
5 years ago
Simo Piiroinen dbd90c880e Version to 4.2.0
Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
5 years ago
Tomi Leppänen 82acc16141 [mapplauncherd] Drop capabilities before launching process. Contributes to JB#53620
Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
5 years ago
Tomi Leppänen 338e69d20f [mapplauncherd] Set CAP_SYS_PTRACE to allow reading /proc/pid/exe. Fixes JB#53620
All other boosters must be changed as well.

Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
5 years ago
Tomi Leppänen 46a89c4705 Fix changelog date 5 years ago
Niels Breet e4cc3b8f79 [aarch64] Use macros, not hardcoded paths. Contributes to JB#49681 6 years ago
Chupligin Sergey ef26653ca6 [Packaging] Remove python2 requires 6 years ago
Raine Makelainen f84e8e15e0 Bump version to 4.1.31 6 years ago
Aleksey Mikhaylov 2442117654 [mapplauncherd] Fixes MER#1916
Signed-off-by: Aleksey Mikhaylov <a.mikhaylov@omprussia.ru>
7 years ago
Slava Monich f35103e569 Version 4.1.24 9 years ago
Slava Monich b9c591ab8e [mapplauncherd] Own the config directories. Contributes to JB#38236 9 years ago
Chris Adams 406794ce0c [mapplauncherd] Bump version with fix for MER#1607 9 years ago
Marko Saukko 39c2f31aa6 Allow booster start earlier during the startup.
[systemd] Allow booster to start earlier in the bootup.
[packaging] Drop .yaml support.

Signed-off-by: Marko Saukko <marko.saukko@jolla.com>
11 years ago
Thomas Perl 738bf5c0f9 [spec] Remove old spectacle cruft 11 years ago
Jonni Rainisto a063dfc7da [mapplauncherd] Add privileged group and setgit binaries. 12 years ago
Robin Burchell 6ad8d7ac16 [mapplauncherd] Remove splash support.
This feature only encourages poor application interactivity: anything which is
sufficiently slow to require a splash screen should be made faster instead.

In addition to that, the feature is poorly implemented (X11-specific), and thus
useless. Rip it out, and remove the last dependency on X11 from applauncherd.
12 years ago
Robin Burchell 71fd46dd80 Merge pull request #8 from rburchell/single-instance
[mapplauncherd] Remove X11 dependency from single-instance.
12 years ago
Robin Burchell ce482b52c5 [mapplauncherd] Remove X11 dependency from single-instance.
Instead of using windowsystem-specific functionality, ask the system compositor
to activate the given binary for us.
12 years ago
Robin Burchell 32ad5ce75c [mapplauncherd] Remove obsolete tests.
The tests in here have been in a completely non-working state for a very long
time, and it's now getting to a point where it hurts, rather than hinders
development. Nuke them from the tree.

In the future, the useful parts can be brought back easily from history.
12 years ago
Pekka Lundstrom aa38d37ad0 Removed mapplauncherd.target
Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
13 years ago
Pekka Lundstrom 585025c8a9 [boot] start using new session targets
Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
13 years ago
John Brooks 8b2d165a85 Rename ebooster to booster-generic 13 years ago
John Brooks 9dd3ef92cb [mapplauncherd] Install mapplauncherd.target for systemd startup 13 years ago
John Brooks b6e9aa171b [mapplauncherd] Remove applauncherd and refactor boosters into independent processes
Having a single applauncherd process with boosters as plugins is a
flawed idea: most notably, it's not possible to have two boosters with
conflicting libraries, like Qt4 and Qt5.

A much cleaner solution is to turn libapplauncherd into a support
library for boosters, and have each booster run as an independent
process.
13 years ago
John Brooks f6b9e71d2b [mapplauncherd] Fix tests package dependency 13 years ago
John Brooks f86d2d489c Require mapplauncherd-qt4 for tests 13 years ago
John Brooks adef09cd6f [mapplauncherd] Remove Qt boosters and related tests
These have been split to a separate repository and package.
13 years ago
Robin Burchell 7938f7cada [mapplauncherd] Convert to git packaging. 13 years ago