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

Last change on this file since 1781 was 1781, checked in by geofft, 11 years ago
Don't log harmless modprobe requests for invalid ELF binaries
  • Property svn:executable set to *
File size: 595 bytes
Line 
1#!/bin/sh
2case "$*" in
3  *binfmt-464c*) # 464c are the second two bytes of the ELF magic.
4                 # This module doesn't exist; being called for it
5                 # indicates the in-kernel binfmt_elf decided to
6                 # return ENOEXEC for this ELF file for some reason.
7                 exit 1 ;;
8esac
9(
10    echo "Ignoring request from kernel: modprobe $*"
11    stacks=$(grep -ls request_module /proc/*/stack)
12    if [ "$stacks" ]; then
13        ps -Lfwp $(for stack in $stacks; do
14                proc="${stack%/stack}"
15                echo "${proc#/proc/}";
16            done)
17    fi
18) | logger -p authpriv.info
19false
Note: See TracBrowser for help on using the repository browser.