source: trunk/server/fedora/config/etc/scripts/modprobe @ 1780

Last change on this file since 1780 was 1717, checked in by andersk, 14 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
12false
Note: See TracBrowser for help on using the repository browser.