Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 99881 Details for
Bug 150568
media-tv/freevo init script runs freevo as root (potential security risk)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
freevo.rc6
freevo.rc6 (text/plain), 2.08 KB, created by
Matteo Azzali (RETIRED)
on 2006-10-17 07:42:22 UTC
(
hide
)
Description:
freevo.rc6
Filename:
MIME Type:
Creator:
Matteo Azzali (RETIRED)
Created:
2006-10-17 07:42:22 UTC
Size:
2.08 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/media-tv/freevo/files/freevo.rc6,v 1.6 2004/07/14 22:52:05 agriffis Exp $ > >depend() { > use net xfs lircd > after hald dbus hotplug >} > >checkconfig() { > if [ -z "${freevo}" -o "${freevo}" = "no" ] && \ > [ -z "${webserver}" -o "${webserver}" = "no" ] && \ > [ -z "${recordserver}" -o "${recordserver}" = "no" ] ; then > eerror "All services are disabled." > eerror "Please check /etc/conf.d/freevo" > return 1 > fi > > sysctl -w dev.rtc.max-user-freq=1024 &> /dev/null >} > >start() { > checkconfig || return 1 > > if [ "${freevo}" == "daemon" ] ; then > ebegin "Starting Freevo daemon" > su - ${freevouser} -c `source /etc/profile;/usr/bin/freevo daemon start` > eend $? > elif [ "${freevo}" == "yes" ]; then > ebegin "Starting Freevo" > if egrep -q '^display.*(x11|dga)' /etc/freevo/freevo.conf ; then > su - ${freevouser} -c `source /etc/profile;/usr/bin/freevo -fs &>/dev/null &` > else > su - ${freevouser} -c `source /etc/profile;/usr/bin/freevo start` > fi > eend $? > fi > > if [ "${recordserver}" == "yes" ]; then > ebegin "Starting Freevo recordserver" > su - ${freevouser} -c `source /etc/profile;/usr/bin/freevo recordserver start` > eend $? > fi > > if [ "${webserver}" == "yes" ]; then > ebegin "Starting Freevo webserver" > su - ${freevouser} -c `source /etc/profile;/usr/bin/freevo webserver start` > eend $? > fi >} > >stop() { > if [ "${webserver}" == "yes" ]; then > ebegin "Stopping Freevo webserver" > su - ${freevouser} -c `source /etc/profile;/usr/bin/freevo webserver stop` > eend $? > fi > > if [ "${recordserver}" == "yes" ]; then > ebegin "Stopping Freevo recordserver" > su - ${freevouser} -c `source /etc/profile;/usr/bin/freevo recordserver stop` > eend $? > fi > > if [ "${freevo}" == "daemon" ]; then > ebegin "Stopping Freevo daemon" > su - ${freevouser} -c `source /etc/profile;/usr/bin/freevo daemon stop` > eend $? > elif [ "${freevo}" == "yes" ]; then > ebegin "Stopping Freevo" > su - ${freevouser} -c `source /etc/profile;/usr/bin/freevo stop` > eend $? > 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 150568
:
99820
|
99880
| 99881 |
99908