From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB826C2D0E8 for ; Tue, 31 Mar 2020 08:03:15 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 431D820CC7 for ; Tue, 31 Mar 2020 08:03:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=szofi.net header.i=@szofi.net header.b="MgD/BevN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 431D820CC7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=szofi.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1jJBr2-00084u-8y; Tue, 31 Mar 2020 04:02:36 -0400 Received: from slice.szofi.net ([209.20.69.84]) by shelob.surriel.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.92.3) (envelope-from ) id 1jJBr0-00084o-Ji for kernelnewbies@kernelnewbies.org; Tue, 31 Mar 2020 04:02:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=szofi.net; s=szofi1; h=Content-Type:MIME-Version:References:Message-ID:In-Reply-To:Subject:cc:To:From:Date; bh=PIGuEfdhB2wXved/fw6vyOqC88akd4yCm5QpprYd5kY=; b=MgD/BevN6wgMY1zhTK50K1ahtJYfsFFWdFxAq2FAHyM//EnBHgupz/A8dnBdgs+B19Eh5WEOg5RfOIuiy5alh1ZxGyIi6lapxPa5l5AmQz+d2POhhUHkhiUyAE9RiGP3U0OOibiTMjJlHJ2MzZBNTD3jI+yyxO+CVGUqvbeCI4M=; Received: from [172.31.2.1] (helo=szofi.elte.hu ident=Debian-exim) by slice.szofi.net with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1jJBqy-0003Uj-Pe; Tue, 31 Mar 2020 08:02:32 +0000 Received: from apal (helo=localhost) by szofi.elte.hu with local-esmtp (Exim 4.80) (envelope-from ) id 1jJBqx-00061a-11; Tue, 31 Mar 2020 10:02:31 +0200 Date: Tue, 31 Mar 2020 10:02:31 +0200 (CEST) From: Andras Pal X-X-Sender: apal@szofi.elte.hu To: Jeffrey Walton Subject: Re: Monitor filesystem write to a specific directory? In-Reply-To: Message-ID: References: MIME-Version: 1.0 Cc: kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: kernelnewbies-bounces@kernelnewbies.org Hi Jeffrey, you may looking for the inotify(7) API and/or the inotifiwait(1)/inotifywatch(1) command line tools. These latter ones usually shipped within the inotify-tools package. Andras On Tue, 31 Mar 2020, Jeffrey Walton wrote: > Hi Everyone, > > I have some build scripts that allow me to install updated developer > tools on older machines. It builds and installs tools like Git, Curl > and Wget. It also builds dependencies. The scripts can handle about 80 > packages. > > One of those scripts is building a package that is performing a > wayward write during 'make install'. It is not using my specified > --libdir; instead it appears to hard code ${prefix}/lib. The incorrect > hard coded path breaks on Red Hat systems and Solaris. I need to > determine the offender. > > On Windows I would use Process Monitor, run the programs and then > filter the events. I'm trying to find a Linux equivalent but neither > strace nor ltrace looks like an equivalent. For strace and ltrace it > does not look like I can setup a filter and get the process name. > > How can I monitor filesystem writes to a specific directory? > > Thanks in advance. > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies