summaryrefslogtreecommitdiff
path: root/src/bluetooth.service.in
Commit message (Collapse)AuthorAgeFilesLines
* bluetooth.service: Set ConfigurationDirectoryModeLuiz Augusto von Dentz2022-04-191-0/+1
| | | | | | | This sets ConfigurationDirectoryMode to 0555 to really enforce the ConfigurationDirectory to be read-only [1]. [1] https://github.com/bluez/bluez/issues/329#issuecomment-1102459104
* bluetooth.service: Set StateDirectoryModeLuiz Augusto von Dentz2022-04-191-0/+1
| | | | | | | | This sets StateDirectoryMode to 0700 as it is the current mode used for creating files inside the storage and it is different than the default systemd uses which is 0755: [1] https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectoryMode=
* build: Make use of StateDirectory and ConfigurationDirectoryLuiz Augusto von Dentz2022-04-181-3/+3
| | | | | | | | | | This makes use of StateDirectory[1] and ConfigurationDirectory[1] to inform systemd what those paths are used for instead of using ReadWritePaths and ReadOnlyPaths which can lead to issues. Fixes: https://github.com/bluez/bluez/issues/329 [1] https://www.freedesktop.org/software/systemd/man/systemd.exec.html
* systemd: More lockdownBastien Nocera2022-01-311-0/+6
| | | | | bluetoothd does not need to execute mapped memory, or real-time access, so block those.
* systemd: Add more filesystem lockdownBastien Nocera2022-01-311-0/+4
| | | | | We can only access the configuration file as read-only and read-write to the Bluetooth cache directory and sub-directories.
* systemd: Add PrivateTmp and NoNewPrivileges optionsCraig Andrews2022-01-311-0/+6
| | | | | | | | | | PrivateTmp makes bluetoothd's /tmp and /var/tmp be inside a different namespace. This is useful to secure access to temporary files of the process. NoNewPrivileges ensures that service process and all its children can never gain new privileges through execve(), lowering the risk of possible privilege escalations.
* build: rename libexecdir to pkglibexecdirJan Engelhardt2018-11-211-1/+1
| | | | | | | When files are to be placed not in libexecdir but a subdirectory of it, automake has a variable name reserved for exactly that purpose (and a default value, which Makefile.am will override), called pkglibexecdir. Let's use it.
* systemd: Enable ProtectHome and ProtectSystem optionsLuiz Augusto von Dentz2016-04-081-0/+2
| | | | | These options protect from unintended access to the filesystem see SYSTEMD.EXEC(5) for mode detail.
* systemd: Check if bluetooth is supported in the kernelMartin Pitt2015-10-231-0/+1
| | | | | | | | | | | | | | | | | When running a kernel without bluetooth support, bluetooth.service fails to start with bluetoothd[1640]: Failed to access management interface bluetoothd[1640]: Adapter handling initialization failed systemd[1]: bluetooth.service: Main process exited, code=exited, status=1/FAILURE systemd[1]: Failed to start Bluetooth service. This causes an unnecessary "degraded" state and more importantly breaks package installation when the bluez package auto-starts the daemon. Add a condition to only start the service if /sys/class/bluetooth exists. https://launchpad.net/bugs/1506774
* core: Remove NET_RAW from list of required capabilitiesJohan Hedberg2013-10-221-1/+1
| | | | | This is a left-over from times that raw HCI sockets were used. It's not needed anymore.
* core: Fix issue with wrong path for daemon in systemd unitMarcel Holtmann2012-12-111-1/+1
|
* build: Use @libexecdir@/bluetooth path for daemonsMarcel Holtmann2012-12-111-1/+1
|
* core: Mention bluetoothd manual pageMarcel Holtmann2012-12-101-0/+1
|
* core: Don't daemonize and just toggle foreground loggingMarcel Holtmann2012-12-101-2/+1
|
* core: Set LimitNPROC and CapabilityBoundingSet optionsMarcel Holtmann2012-12-101-0/+2
|
* core: Add options for systemd status notification and watchdogMarcel Holtmann2012-12-101-0/+3
|
* build: Use libexecdir for Bluetooth daemonMarcel Holtmann2012-12-091-1/+1
|
* systemd: prevent duplicate logging messages in journalMarti Raudsepp2012-10-251-0/+1
| | | | | By default, both stdout and syslog messages go to the systemd journal, which results in duplicate messages being logged.
* Add dbus service file that references the systemd unitAlex Elsayed2012-05-171-0/+1
| | | | This allows bluez to be bus-activated.
* systemd: don't order against syslog.targetTom Gundersen2012-05-081-2/+0
| | | | | This was only needed in old versions of systemd. All messages are logged by default to the journal now, no ordering required.
* build: Add support for systemd service configurationLucas De Marchi2011-07-011-0/+12