Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 489872 Details for
Bug 628434
<net-irc/unrealircd-4.0.18-r1: 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]
unrealircd.initd-r2
unrealircd.initd-r2 (text/plain), 1.14 KB, created by
Michael Orlitzky
on 2017-08-20 20:20:02 UTC
(
hide
)
Description:
unrealircd.initd-r2
Filename:
MIME Type:
Creator:
Michael Orlitzky
Created:
2017-08-20 20:20:02 UTC
Size:
1.14 KB
patch
obsolete
>#!/sbin/openrc-run ># Copyright 1999-2017 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > ># Defaults >: ${UNREALIRCD_CONF:=/etc/unrealircd/${SVCNAME}.conf} >: ${UNREALIRCD_PIDFILE:=/run/unrealircd/${SVCNAME#unreal}.pid} > >command="/usr/bin/unrealircd" ># Run the daemon in the foreground and let OpenRC background it. ># This way the PID file is created securely, as root. >command_args="-F -f ${UNREALIRCD_CONF} ${UNREALIRCD_OPTS}" >command_user=unrealircd >command_background=true >pidfile="${UNREALIRCD_PIDFILE}" >start_stop_daemon_args="${UNREALIRCD_SSD_OPTS}" >extra_started_commands="reload" > >depend() { > use dns net > provide ircd >} > ># It is unsafe for the unrealircd user to be able to write to its own ># PID file, since root will be sending e.g. kill signals to the PID ># listed in that file. Ensure that we overwrite the ownership and ># permissions on /run/unrealircd from previous init scripts. >start_pre() { > checkpath --directory --owner root:root --mode 0700 /run/unrealircd >} > >reload() { > ebegin "Reloading ${RC_SVCNAME}" > start-stop-daemon --signal HUP \ > --pidfile "${pidfile}" \ > ${UNREALIRCD_SSD_OPTS} > eend $? >}
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 628434
:
489870
| 489872 |
489874