aboutsummaryrefslogtreecommitdiff
path: root/data/ModemManager.service.in
AgeCommit message (Collapse)Author
2022-03-14systemd: don't run ModemManager in containersSimon Deziel
This assumes the needed modem hardware is typically not available inside containers. If however, the local admin configures the container to get access to the hardware in question, ModemManager can be instructed to run in that specific container by doing: `sudo systemctl edit ModemManager.service` Then entering the following text in the editor: [Unit] # Remove condition of "not container" ConditionVirtualization= Upon saving/exiting, ModemManager can then be started with: `sudo systemctl start ModemManager.service` Signed-off-by: Simon Deziel <simon@sdeziel.info>
2021-05-21service: add QIPCRTR address familyArnaud Ferraris
With the recently added support for modems using QRTR, ModemManager needs to have access to the corresponding address family so it can interact with the modem. Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
2021-05-20service: Fix Mobile Data on EG25Undef
This allows mobile data to work on the EG25 (and probably other modems).
2019-10-11systemd: always start MM after polkit service if enabling policyAleksander Morgado
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues/113
2018-06-13service: set User=root so that gio doesn't have to look into /etc/passwdLubomir Rintel
GVfs' libgvfsdbus.so GIo module, when automatically loaded, attempts to discover if there's a session D-Bus instance to use. It tries real hard to get the socket name it would use -- in absence of XDG_RUNTIME_DIR it decides to make it up with user's home directory. When HOME is unset too, it just tries to figure it out by looking into /etc/passwd. Which upsets SELinux that would better not see us looking into it. We trigger the load of the GIo modules, by using the GFile API to access the the ports in /dev. They're utterly uesless to us, but there doesn't seem to be a way to disable their load. Oh well. For now, let's just ensure HOME is set and the problematic path in glib is not taken.
2017-06-18systemd: drop After=syslog.target ruleAleksander Morgado
syslog implementations are using socket activation nowadays, so an explicit ordering is not necessary anymore. Plus, syslog.target was already dropped from systemd in v198. Reported-by: Michael Biebl <biebl@debian.org>
2016-10-24systemd: tighten the service security a bitLubomir Rintel
What's left enabled: * Access to /dev -- obviously * CAP_SYS_ADMIN -- this is needed by TIOCSSERIAL only. Too bad this also allows TIOCSTI, which allows for code injection unless something else (SELinux) disallows access to ttys with shells. Maybe kernel should use CAP_SYS_TTY_CONFIG for this. * socket(AF_NETLINK) -- udev & kernel device changes * socket(AF_UNIX) -- D-Bus
2013-06-25systemd: schedule to restart the service on-abortAleksander Morgado
See https://bugzilla.gnome.org/show_bug.cgi?id=701229.
2013-06-23Revert "systemd: simplify unit file"Aleksander Morgado
This reverts commit 91898aa8b0bb8164b61e84ae68534c38cebb1482. See additional comments in the following bug: https://bugzilla.gnome.org/show_bug.cgi?id=701229 Basically, 'mask' and 'unmask' operations are not the ones we should be using or suggesting; and the Alias= for the DBus file is the correct way to go.
2013-06-06systemd: simplify unit fileAleksander Morgado
Avoid setting up the Alias rule, which was a helper to let us 'disable' the systemd service including dbus-activations. Without the Alias, 'disable' will still let starting ModemManager through dbus-activation. If you really want to fully disallow starting MM also through dbus-activation, you should 'mask' and 'unmask' the service. E.g.: $ sudo systemctl mask ModemManager ln -s '/dev/null' '/etc/systemd/system/ModemManager.service' $ sudo mmcli -L error: couldn't find the ModemManager process in the bus $ sudo systemctl unmask ModemManager rm '/etc/systemd/system/ModemManager.service' $ sudo mmcli -L No modems were found https://bugzilla.gnome.org/show_bug.cgi?id=701229
2013-02-06systemd: include systemd unit file supportAleksander Morgado
Allow having systemd handling the life cycle of the ModemManager process.