From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by sourceware.org (Postfix) with ESMTPS id C311E3856DC2 for ; Thu, 6 Oct 2022 17:05:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C311E3856DC2 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=ucsc.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=ucsc.edu Received: by mail-pj1-x102d.google.com with SMTP id o9-20020a17090a0a0900b0020ad4e758b3so2335515pjo.4 for ; Thu, 06 Oct 2022 10:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsc.edu; s=ucsc-google-2018; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=CUYGAeR0boJZ48qKm+5AmeMHK5MekJCkqWqwuM7Mudg=; b=dUBsttWbpwQhqY8zjZ+81Ri7WtkLKJxZz3iGPjsrTqTyWLX4vaazsObZH0UMyKayBG dEL5KEKDh55tNeoLSOURkpYffcRP64Ipz5wkFO7LaQAye9i6TTOJS4iYJGS2I2mYB9vE dSSXlbzPS2oR5SBSayZE08n/+BBShi3lwb97VJXaIpmeJJdgp9IYwQriJbD4VMFYnP/B +sfPcxeH/gamiTcSAmmdz0vd17mLP6emYio37/orb/nY3M6e55cVcTd+0X2OnjM8vFh4 IVB0wdkc5vfr0zYMoDrD36VSlBByKyG3DmkGEpiUtQclTZ5YUwsdUx6BVp7uG/2Po2zo uHMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=CUYGAeR0boJZ48qKm+5AmeMHK5MekJCkqWqwuM7Mudg=; b=tZ07ROZuBOt97rcXBjozhtLaCMMORYF6s6atHYFkTVdS/mn04MhKlnAANFHumrn4JX TFEG03QDRzPnfCh+s71xZnlFEYcHbtsgnoLenLfeiBLiuNVVhipSRY44SDxrqn+Mi049 AFega5CPYifvGO0cGZ7h2ALRaK2Go0ijY0Ganqle+9pky1v5yjnUPLvoFNXLWjin/BNz g7L26brSzjt/TTOvYLiU1WeRo9jhSDRNAUDTD2HcW3Qanl+p0tvA23EFrQspMKwTekxK upYgnx7IFDJjPEK90nschscm+WZZa7QWNkg1y73bayW7kLRIYDZgtngfZp2g2+iFF407 fSsw== X-Gm-Message-State: ACrzQf0uDKWlmKllqNz4rGKQQ0aXI0Us1U6Trzv4zsfzGgC8N6RRXpaw e4B4UpHA02P4J7Q6TjCcEZjG7RGTAjW1Ibaz61b+4kRKFrbW8Q== X-Google-Smtp-Source: AMsMyM6DnSuNFNipj4VphHs3pIPuT2OGbDAzLQEfGp0Us/xE8BRQTOPrzjeos5ZzyPhPCoCryCfnk1zgJhs8E+2icIA= X-Received: by 2002:a17:90b:3a85:b0:203:214d:4288 with SMTP id om5-20020a17090b3a8500b00203214d4288mr11442229pjb.183.1665075949216; Thu, 06 Oct 2022 10:05:49 -0700 (PDT) MIME-Version: 1.0 From: Farid Zakaria Date: Thu, 6 Oct 2022 10:05:38 -0700 Message-ID: Subject: Can I use la_symbind to change the shared object file where it's binded? To: Libc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hello! I am looking to see if I can replicate LD_PRELOAD using la_symbind in the rltd-audit API. I would like to provide the audit API a: symbol -> shared object file (perhaps with offset) and have the audit API override it. Is this possible? I am thinking perhaps I can dlopen the file in the audit method and then use dlsym as well. (Hopefully this question makes sense and appreciate any advice)