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.
10 years ago
Thomas Perl
d543d53b3f
[rebuild] mapplauncherd C++ fixes (Fixes JB#27875)
10 years ago
Thomas Perl
4aa1314204
Merge pull request #31 from thp/fstream
...
[launcherlib] Use fstream for file I/O
10 years ago
Thomas Perl
2af3c8ea95
[launcherlib] Use fstream for file I/O
10 years ago
Thomas Perl
b2fa57c0c4
Merge pull request #27 from nemomobile/systemd
...
Allow booster start earlier during the startup.
10 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>
10 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
11 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.
11 years ago
John Brooks
ff5740ca25
Merge pull request #25 from neochapay/master
...
Fix codestyle error
11 years ago
Чуплыгин Сергей
034ac5277a
Fix codestyle error
11 years ago
John Brooks
e874b7c88a
Merge pull request #24 from neochapay/master
...
[mapplauncherd] Fix build error on Ubuntu
11 years ago
Чуплыгин Сергей
1f7b21a569
Fix build error on Ubuntu
11 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
Thomas Perl
ef26ef5bf0
[launcherlib] Handle failures of resolving main() dynamically
...
In case where the binary to be invoked is either not a shared library
object (e.g. it's a shell script) or when main() cannot be resolved
as shared library (because it hasn't been exported as such), instead
of abort()ing due to an uncaught exception, handle the exception and
print the error message in the log + on the console, and then fail.
12 years ago
Robin Burchell
85dce78c1b
Merge pull request #20 from rburchell/master
...
[mapplauncherd] When trying to invoke an application fails, fall back to...
12 years ago
Robin Burchell
18a6a1f0e2
[mapplauncherd] When trying to invoke an application fails, fall back to the generic booster.
...
Falling back to an unboosted exec should be the path of absolute last resort,
nothing more. Failing to do this can result in broken privileges, etc.
12 years ago
Carsten Munk
88e63726cc
Merge pull request #19 from faenil/oom
...
[service] Added OOMScoreAdjust to service file
12 years ago
Andrea Bernabei
0b55814c27
[service] Added OOMScoreAdjust to service file
12 years ago
John Brooks
96084ef437
Merge pull request #18 from rainisto/master
...
[mapplauncherd] Permission fix for OOM handling
12 years ago
Jonni Rainisto
ac420a1ed7
[mapplauncherd] Permission fix for OOM handling
12 years ago
John Brooks
d11c8ef004
Merge pull request #17 from thp/remove-obsolete-code
...
[booster] Remove unused / broken code
12 years ago
Thomas Perl
5ee322dd64
[booster] Remove unused / broken code
...
We don't have a "boosted" group anymore, so the call fails.
Remove all code related to the failing call.
The re-classification for policy does not seem to be needed anymore?
And if it is indeed still needed, it probably doesn't work atm.
12 years ago
John Brooks
683aeb74ba
Merge pull request #16 from special/master
...
[mapplauncherd] Improve OOM score handling
12 years ago
John Brooks
9471a69431
[mapplauncherd] Rename invoker --daemon-mode to --keep-oom-score
...
The old name was vague and didn't indicate the change in behavior at
all. Its documentation also described the behavior incorrectly. If the
-o or --keep-oom-score parameter is passed, the OOM score of the boosted
process will be unchanged. Normally, it will be reset to 0 on launch.
The --daemon-mode parameter is kept as an alias for compatibility.
12 years ago
John Brooks
6f93c2947a
[mapplauncherd] Reset oom_score_adj instead of oom_adj if needed
12 years ago
chriadam
30d2007c5e
Merge pull request #15 from rainisto/master
...
[mapplauncherd] drop setgid from processes that are not isPrivileged()
12 years ago
Jonni Rainisto
764fd9f3ad
[mapplauncherd] added error logging to setregid()
12 years ago
Jonni Rainisto
bb6033b1af
[mapplauncherd] drop setgid from processes that are not isPrivileged()
12 years ago
John Brooks
2265cc2e0f
Merge pull request #14 from rainisto/master
...
[mapplauncherd] Add privileged group and setgit binaries.
12 years ago
Jonni Rainisto
a063dfc7da
[mapplauncherd] Add privileged group and setgit binaries.
12 years ago
Thomas Perl
e51e40e3a1
Merge pull request #13 from thp/progname-for-launcher
...
[invoker] For launchers, add the first argument to the name
12 years ago
Thomas Perl
5771a1acd7
[invoker] For launchers, add the first argument to the name
12 years ago
Thomas Perl
925b07a306
Merge pull request #12 from thp/argv0-full-path
...
[mapplauncherd] Add full path to argv[0] of invoked process
12 years ago
Thomas Perl
a07b13b192
[mapplauncherd] Add full path to argv[0] of invoked process
...
This allows the application to look up its installation prefix (e.g.
/usr) by just looking at argv[0] and calculating relative paths from
there (previously one would need to pass the full path to invoker).
12 years ago
Thomas Perl
702e915d20
Merge pull request #11 from thp/booster-name-update
...
[mapplauncherd] Update names and mappings of boosters for Qt 5
12 years ago
Thomas Perl
52f1fa4798
[mapplauncherd] Update names and mappings of boosters for Qt 5
12 years ago
chriadam
5c7bf2b8b6
Merge pull request #10 from chriadam/privs
...
[mapplauncherd] Drop user/group ID only if not privileged
12 years ago
Chris Adams
dee0f6be15
[mapplauncherd] Drop user/group ID only if not privileged
...
Previously, the user ID and group ID of the process was always set
to that of the application, if it differed from that of the invoker.
This commit adds simple privileges checking for the application
to determine whether or not it is allowed to access privileged
system information, before deciding to drop user ID or group ID.
12 years ago
Pekka Lundstrom
128912aa48
Merge pull request #9 from plundstr/master
...
[systemd] restart booster if crash
12 years ago
Pekka Lundstrom
d97d1fc65c
[systemd] restart booster if crash
...
Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
12 years ago
Robin Burchell
aa82164908
Merge pull request #7 from rburchell/splash
...
[mapplauncherd] Remove splash support.
12 years ago