| 
                Last change
                  on this file since 1760 was
                  1717,
                  checked in by andersk, 15 years ago
           | 
        
        
          | 
            Identify processes triggering the kernel module loader for the logs
           | 
        
        
          
            
              - 
                  Property svn:executable set to
                  
*
               
             
           | 
        
        | 
            File size:
            283 bytes
           | 
      
      
        
  | Line |   | 
|---|
| 1 | #!/bin/sh | 
|---|
| 2 | ( | 
|---|
| 3 |     echo "Ignoring request from kernel: modprobe $*" | 
|---|
| 4 |     stacks=$(grep -ls request_module /proc/*/stack) | 
|---|
| 5 |     if [ "$stacks" ]; then | 
|---|
| 6 |         ps -Lfwp $(for stack in $stacks; do | 
|---|
| 7 |                 proc="${stack%/stack}" | 
|---|
| 8 |                 echo "${proc#/proc/}"; | 
|---|
| 9 |             done) | 
|---|
| 10 |     fi | 
|---|
| 11 | ) | logger -p authpriv.info | 
|---|
| 12 | false | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.