Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 494076 Details for
Bug 630758
app-text/groonga: privilege escalation via PID file manipulation
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
groonga.initd-r1
groonga (text/plain), 920 bytes, created by
Michael Orlitzky
on 2017-09-12 00:54:56 UTC
(
hide
)
Description:
groonga.initd-r1
Filename:
MIME Type:
Creator:
Michael Orlitzky
Created:
2017-09-12 00:54:56 UTC
Size:
920 bytes
patch
obsolete
>#!/sbin/openrc-run ># Copyright 1999-2017 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >command="/usr/bin/groonga" >pidfile="/run/${RC_SVCNAME}.pid" > ># Groonga can't drop permissions on its own so there's no safe way to ># use the PID file that it would create if we started it as an ># unprivileged user and let it daemonize itself (and write its own PID ># file). Run it in "server" (i.e. foreground) mode instead, and have ># OpenRC background it and manage its PID file. >command_args="-s > --config-path=${GROONGA_CONFIG:-/etc/groonga/groonga.conf} > ${GROONGA_DATABASE}" >command_user="${GROONGA_USER:-groonga}:${GROONGA_GROUP:-groonga}" >command_background="true" > >depend() { > use net >} > >start_pre() { > if [ ! -e "${GROONGA_DATABASE}" ] ; then > einfo "Creating database ${GROONGA_DATABASE}" > su -s /bin/sh -c "${command} -n ${GROONGA_DATABASE} quit" ${GROONGA_USER:-groonga} > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 630758
: 494076 |
494078