1121 Commits (6d319389299b6557e004070ea057e344e6532981)
 

Author SHA1 Message Date
Bart Ribbers 6d31938929 Fix Musl incompabilities
Without including libgen.h, basename is not available on Musl.
sourceArgv[0] is a const char* which can not be converted to char*, so
cast it instead
RTLD_DEEPBIND is not available on Musl, only on glibc (since 2.3.4)
ARG_MAX is already defined so it has to be renamed
Even according to glibc itself, <bits/socket.h> should never be included
directly and <sys/socket.h> should, which is already done anyway
5 years ago
Raine Makelainen 7e93b143a1 Merge branch 'jb49088' into 'master'
[booster] Always drop extra groups for non-privileged apps. Fixes JB#49088

See merge request mer-core/mapplauncherd!14
6 years ago
Igor Zhbanov 294cd4d37c [booster] Always drop extra groups for non-privileged apps. Fixes JB#49088
Don't trust to UID/GID received from untrusted invoker request when deciding
whether to drop extra groups for non-privileged apps. The application's
rights should depend only on the stated application's privileges and not
on the caller's process rights.

Drop setuid() because the boosters are launched under "nemo" user ID in
user session.

Signed-off-by: Igor Zhbanov <i.zhbanov@omprussia.ru>
6 years ago
Raine Makelainen f84e8e15e0 Bump version to 4.1.31 6 years ago
Raine Makelainen 16c9749dd6 Merge branch 'jb48847' into 'master'
[booster] Drop privileged SGID for non-privileged apps. Fixes JB#48847

See merge request mer-core/mapplauncherd!13
6 years ago
Igor Zhbanov b62ef0d2d4 [booster] Drop privileged SGID for non-privileged apps. Fixes JB#48847
Under Linux, setgid() is implemented like the POSIX version with the
_POSIX_SAVED_IDS feature. That means that after "setgid(nemo)" SGID
will be set to "privileged" instead of "nemo". So using "setresuid()"
instead.

Signed-off-by: Igor Zhbanov <i.zhbanov@omprussia.ru>
6 years ago
Andrew den Exter 6912348d5a Merge branch 'jb44214' into 'master'
[booster] Check for execute permissions before invoking a process. Fixes JB#44214

See merge request mer-core/mapplauncherd!12
7 years ago
Andrew den Exter a841302207 [booster] Check for execute permissions before invoking a process. Fixes JB#44214 7 years ago
Raine Makelainen db11a3a532 Merge branch 'jb42038' into 'master'
[mapplauncherd] Add booster cgroup mount service. Fixes MER#1916

See merge request mer-core/mapplauncherd!9
7 years ago
Aleksey Mikhaylov 2442117654 [mapplauncherd] Fixes MER#1916
Signed-off-by: Aleksey Mikhaylov <a.mikhaylov@omprussia.ru>
7 years ago
Raine Makelainen 6e72366257 Merge branch 'master' into 'master'
[mapplauncherd] Create cgroup for each process if possible. Fixes MER#1896

See merge request mer-core/mapplauncherd!7
8 years ago
Andrew den Exter 41a44c5ab4 Merge branch 'jb41671' into 'master'
[mapplauncherd] Fix race when in writing the daemon PID file and exiting. Contributes to JB#41671

See merge request mer-core/mapplauncherd!8
8 years ago
Andrew den Exter d57148540f [mapplauncherd] Fix race when in writing the daemon PID file and exiting. Contributes to JB#41671
The process forks twice when daemonizing, we need to wait for
the first fork to exit after it has written the PID of the second
fork before exiting the original process otherwise systemd may
try and read the file before it exists.
8 years ago
Aleksey Mikhaylov a480e5fd36 [mapplauncherd] Create cgroup for each process if possible. Fixes MER#1896
Signed-off-by: Aleksey Mikhaylov <a.mikhaylov@omprussia.ru>
8 years ago
Andrew den Exter 78d0dc16f1 Merge branch 'jb40880' into 'master'
[mapplauncherd] Support running boosters as forking systemd services. Contributes to JB#40880

See merge request mer-core/mapplauncherd!6
8 years ago
Andrew den Exter 95f0d02446 [mapplauncherd] Support running boosters as forking systemd services. Contributes to JB#40880
This enables the case where the booster itself is launcher via an
invoker.
8 years ago
pvuorela 6439643867 Merge branch 'master' into 'master'
Fix build with new systemd

See merge request !3
9 years ago
Slava Monich f35103e569 Version 4.1.24 9 years ago
Slava Monich b8170de1d4 Merge branch 'dir' into 'master'
Own the config directories

See merge request !4
9 years ago
Slava Monich b9c591ab8e [mapplauncherd] Own the config directories. Contributes to JB#38236 9 years ago
Sergey Chupligin fcac0eb973 Fix build with new systemd 9 years ago
Chris Adams 406794ce0c [mapplauncherd] Bump version with fix for MER#1607 9 years ago
chriadam 84ba4c7960 Merge branch 'master' into 'master'
Add support for multiple privileges file

Fixes MER#1607

See merge request !2
9 years ago
Lucien XU 3f64a9869e Add support for multiple privileges file
Fixes MER#1607
9 years ago
martinjones df3254d72e Merge branch 'jb34267' into 'master'
[mapplauncherd] Allow a list of booster types to be provided. Contributes to JB#34267

Allows fallback boosters to be specified, e.g.

invoker -s --type=silica-media,silica-qt5 /usr/bin/jolla-camera

See merge request !1
10 years ago
Martin Jones 627bc74e65 [mapplauncherd] Allow a list of booster types to be provided. Contributes to JB#34267
Allows fallback boosters to be specified, e.g.

invoker -s --type=silica-media,silica-qt5 /usr/bin/jolla-camera
10 years ago
Robin Burchell 45ed31bffd Merge pull request #34 from rburchell/master
Clean up some remnants of the single-process-applauncherd model.
10 years ago
Robin Burchell 0ee65f7fa9 [README] Update to match reality a little closer. 10 years ago
Robin Burchell cf20fde0a6 [launcherlib] Remove some dead code.
This is unused since the switch from single daemon to
library-plus-multiple-processes.

Closes #33.
10 years ago
Thomas Perl 01ef004c8c Merge pull request #32 from nemomobile/jb30107
[invoker] Reduce the default respawn delay. Contributes to JB#30107
10 years ago
Martin Jones 02c79d3da7 [invoker] Reduce the default respawn delay. Contributes to JB#30107
This was perhaps a reasonable default 5 years ago, but today 1s is plenty.
11 years ago
Thomas Perl d543d53b3f [rebuild] mapplauncherd C++ fixes (Fixes JB#27875) 11 years ago
Thomas Perl 4aa1314204 Merge pull request #31 from thp/fstream
[launcherlib] Use fstream for file I/O
11 years ago
Thomas Perl 2af3c8ea95 [launcherlib] Use fstream for file I/O 11 years ago
Thomas Perl b2fa57c0c4 Merge pull request #27 from nemomobile/systemd
Allow booster start earlier during the startup.
11 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 9412d3fe3d Merge pull request #30 from nemomobile/cleanup
[spec] Remove old spectacle cruft
11 years ago
Thomas Perl 738bf5c0f9 [spec] Remove old spectacle cruft 11 years ago
Giulio Camuffo aaf1f0eec4 Merge pull request #28 from giucam/notifylaunch
[invoker] Use a DBus method to notify lipstick an app is started
11 years ago
Thomas Perl 6b3426a86e Merge pull request #29 from thp/invoker-read-crash
[launcherlib] Handle booster exception gracefully
11 years ago
Giulio Camuffo 6b17aea5d0 [invoker] Use a DBus method to notify lipstick an app is started
This patch adds a new -F/--desktop-file command line option to
invoker which takes a desktop file name as argument. Using it will
notify lipstick that  the app which goes with that desktop file is
being started.
11 years ago
Thomas Perl 0736ccbf28 [launcherlib] Handle booster exception gracefully
When the booster fails to read information from the client,
we need to handle the exception to not cause std::terminate.
11 years ago
John Brooks 728960f81b Merge pull request #26 from special/getopt-posixly-correct
[invoker] Don't add POSIXLY_CORRECT to the environment
12 years ago
John Brooks 70c1cd2da7 [invoker] Don't add POSIXLY_CORRECT to the environment
As a GNU extension, passing '+' to getopt_long can be used as an
alternative to the POSIXLY_CORRECT environment variable to get the
argument behavior that invoker relies on. Variables set in the invoker
environment will pass onto child processes, and adding this to the
environment would break some applications.
12 years ago
John Brooks ff5740ca25 Merge pull request #25 from neochapay/master
Fix codestyle error
12 years ago
Чуплыгин Сергей 034ac5277a Fix codestyle error 12 years ago
John Brooks e874b7c88a Merge pull request #24 from neochapay/master
[mapplauncherd] Fix build error on Ubuntu
12 years ago
Чуплыгин Сергей 1f7b21a569 Fix build error on Ubuntu 12 years ago
Thomas Perl e2bfc733db [launcherlib] Drop privileges also in developer mode 12 years ago
Thomas Perl 0449a674f5 Merge pull request #21 from thp/handle-runtime-errors
[launcherlib] Handle failures of resolving main() dynamically
12 years ago