Bug 21394 - apmscript unloads sound module on resume instead of suspend
apmscript unloads sound module on resume instead of suspend
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: apmd (Show other bugs)
7.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Aaron Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-11-27 16:16 EST by Patrick C. F. Ernzer
Modified: 2007-04-18 12:30 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-11-27 16:17:55 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
quick and dirty patch (5.35 KB, patch)
2000-11-27 16:17 EST, Patrick C. F. Ernzer
no flags Details | Diff

  None (edit)
Description Patrick C. F. Ernzer 2000-11-27 16:16:29 EST
/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 16:17:53 EST
Created attachment 5749 [details]
quick and dirty patch
Comment 2 Bernhard Rosenkraenzer 2001-01-08 13:38:33 EST
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.

Note You need to log in before you can comment on or make changes to this bug.