diff options
author | Tomas Mozes <hydrapolic@gmail.com> | 2017-09-26 13:26:27 +0200 |
---|---|---|
committer | Ultrabug <ultrabug@gentoo.org> | 2017-10-13 10:33:13 +0200 |
commit | c309a1e0e20fd3af6f21f91db6ad67eddc3a488c (patch) | |
tree | 72c52a6245b3b02707af05f353ab9ce11e6a1e2b /dev-db/mongodb/files/mongos.initd-r3 | |
parent | app-admin/mongo-tools: remove libressl support (bug #614384) (diff) | |
download | gentoo-c309a1e0e20fd3af6f21f91db6ad67eddc3a488c.tar.gz gentoo-c309a1e0e20fd3af6f21f91db6ad67eddc3a488c.tar.bz2 gentoo-c309a1e0e20fd3af6f21f91db6ad67eddc3a488c.zip |
dev-db/mongodb: prevent privilege escalation (bug #631000)
Package-Manager: Portage-2.3.10, Repoman-2.3.3
Closes: https://github.com/gentoo/gentoo/pull/5763
Diffstat (limited to 'dev-db/mongodb/files/mongos.initd-r3')
-rw-r--r-- | dev-db/mongodb/files/mongos.initd-r3 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-db/mongodb/files/mongos.initd-r3 b/dev-db/mongodb/files/mongos.initd-r3 new file mode 100644 index 000000000000..cf5844ae30a9 --- /dev/null +++ b/dev-db/mongodb/files/mongos.initd-r3 @@ -0,0 +1,18 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +: ${config_file:="/etc/${RC_SVCNAME}.conf"} +: ${user:=mongodb} +: ${group:=mongodb} + +command="/usr/bin/mongos" +command_args="--config ${config_file}" +command_background="true" +pidfile="/run/${RC_SVCNAME}.pid" +command_user="${user}:${group}" +required_files="${config_file}" + +depend() { + use net +} |