From mboxrd@z Thu Jan 1 00:00:00 1970 From: hsultan@thefroid.net Subject: Detecting loading of libraries Date: Wed, 21 Jan 2015 16:01:59 -0800 Message-ID: <5dc8468401e6007eaad18a0b7d782927@thefroid.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com (ext-mx13.extmail.prod.ext.phx2.redhat.com [10.5.110.18]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t0M021fi019608 for ; Wed, 21 Jan 2015 19:02:01 -0500 Received: from homiemail-a44.g.dreamhost.com (sub5.mail.dreamhost.com [208.113.200.129]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0M021aQ030872 for ; Wed, 21 Jan 2015 19:02:01 -0500 Received: from homiemail-a44.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a44.g.dreamhost.com (Postfix) with ESMTP id D01FB11805C for ; Wed, 21 Jan 2015 16:02:00 -0800 (PST) Received: from webmail.thefroid.net (caiajhbihbdd.dreamhost.com [208.97.187.133]) (Authenticated sender: hsultan@thefroid.net) by homiemail-a44.g.dreamhost.com (Postfix) with ESMTPA id C3FF2118057 for ; Wed, 21 Jan 2015 16:02:00 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com Hi, I'm wondering if there's a good way of detecting the loading of libraries by processes (I am specifically NOT talking about the uselib syscall). strace shows me apps do open(...)/mmap/mprotect I'm currently intercepting mmap calls, however no additional context records are given to provide the name of the library, and the file descriptor is the 5th parameter, so I can't get that either to match it to an open(...) Is there a way to do this that I'm missing ? Thanks, Hassan