Changeset 1717 for trunk


Ignore:
Timestamp:
Oct 30, 2010, 8:06:37 PM (12 years ago)
Author:
andersk
Message:
Identify processes triggering the kernel module loader for the logs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/fedora/config/etc/scripts/modprobe

    r1688 r1717  
    11#!/bin/sh
    2 logger -p authpriv.info -- "Ignoring request from kernel: modprobe $*"
     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
    312false
Note: See TracChangeset for help on using the changeset viewer.