-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Running daemon under nobody user is not recommended (Closes: #970045)
Create a galera user that will run the daemon instead. See: https://github.com/systemd/systemd/blob/v246/NEWS#L106-L113
- Loading branch information
Showing
5 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#Teemu Ollakka Nov 17th, 2020: | ||
# SONAME is useful only for libraries which are intended to be linked | ||
# against, but not so much for libraries which are loaded dynamically | ||
# during runtime. | ||
# | ||
# Debian policy about shared libraries: | ||
# https://www.debian.org/doc/debian-policy/ch-sharedlibs.html | ||
# | ||
# "Shared libraries that are internal to a particular package or that are | ||
# only loaded as dynamic modules are not covered by this section and are | ||
# not subject to its requirements." | ||
# | ||
# This seems also be the approach CMake has taken, see for example | ||
# https://stackoverflow.com/a/42186654 | ||
galera-4: sharedobject-in-library-directory-missing-soname [usr/lib/libgalera_smm.so] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -o nounset | ||
set -o pipefail | ||
set -o posix | ||
|
||
# creating _galera user, note that the '_' (underscore) before the name of the | ||
# user is a recommendation from | ||
# https://www.debian.org/doc/debian-policy/ch-opersys.html#users-and-groups | ||
getent passwd _galera >/dev/null 2>&1 || | ||
adduser --system --no-create-home --home /nonexistent \ | ||
--disabled-password --disabled-login --force-badname _galera | ||
|
||
#DEBHELPER# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters