Bug 21394

Summary: apmscript unloads sound module on resume instead of suspend
Product: [Retired] Red Hat Linux Reporter: Patrick C. F. Ernzer <pcfe>
Component: apmdAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-11-27 21:17:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
quick and dirty patch none

Description Patrick C. F. Ernzer 2000-11-27 21:16:29 UTC
/etc/sysconfig/apm-scripts/apmscript unloads the sound modules on resume.
This leads to a crash on a Dell Latitude CPx J650GT. Unloading the module
on suspend fixes this.

I made a quick patch which can be e-mailed upon request.

Comment 1 Patrick C. F. Ernzer 2000-11-27 21:17:53 UTC
Created attachment 5749 [details]
quick and dirty patch

Comment 2 Bernhard Rosenkraenzer 2001-01-08 18:38:33 UTC
Fixed in 3.0final-26.
I've had to redo large parts of your patch because it introduces a couple of
nice ways to get a root shell...
e.g.

SOUNDUSER=`perl -e 's/\000/\n/g;' -p /proc/$SOUNDPID/environ|grep USER=|cut -d=
-f2`

Applications can overwrite the USER variable, or just set an AUSER variable that
would be matched first, so you could "re"start any program as root.