From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 227B115800F for ; Sun, 29 Jan 2023 03:36:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 720F2E0839; Sun, 29 Jan 2023 03:36:55 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 57BC1E0839 for ; Sun, 29 Jan 2023 03:36:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 03A75335DB5 for ; Sun, 29 Jan 2023 03:36:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5C19A889 for ; Sun, 29 Jan 2023 03:36:52 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1674901114.f8287200aec0ca33ef07fafcdd5aef0aa6eb1306.sam@gentoo> Subject: [gentoo-commits] proj/pax-utils:master commit in: / X-VCS-Repository: proj/pax-utils X-VCS-Files: dumpelf.c paxelf.c paxelf.h paxinc.c paxinc.h paxldso.c paxldso.h paxmacho.c paxmacho.h pspax.c scanelf.c scanmacho.c security.c xfuncs.c X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: f8287200aec0ca33ef07fafcdd5aef0aa6eb1306 X-VCS-Branch: master Date: Sun, 29 Jan 2023 03:36:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ff6616fd-7b80-44f1-8a5f-0c57dc8ac99f X-Archives-Hash: 89c5a2ad92adfc8b1ce6e4f7fd26b36b commit: f8287200aec0ca33ef07fafcdd5aef0aa6eb1306 Author: Sam James gentoo org> AuthorDate: Sat Jan 28 10:15:57 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sat Jan 28 10:18:34 2023 +0000 URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=f8287200 *: IWYU fixes Separate from the first commit as this one was done programmatically with dev-util/include-what-you-use. Signed-off-by: Sam James gentoo.org> dumpelf.c | 13 +++++++++++++ paxelf.c | 13 +++++++++++++ paxelf.h | 2 ++ paxinc.c | 7 +++++++ paxinc.h | 10 +++++++++- paxldso.c | 17 +++++++++++++++++ paxldso.h | 2 ++ paxmacho.c | 12 ++++++++++++ paxmacho.h | 2 ++ pspax.c | 21 ++++++++++++++++++++- scanelf.c | 22 ++++++++++++++++++++++ scanmacho.c | 19 +++++++++++++++++++ security.c | 13 +++++++++++++ xfuncs.c | 6 ++++++ 14 files changed, 157 insertions(+), 2 deletions(-) diff --git a/dumpelf.c b/dumpelf.c index 4742a50..baa6358 100644 --- a/dumpelf.c +++ b/dumpelf.c @@ -8,7 +8,20 @@ const char argv0[] = "dumpelf"; +#include +#include +#include +#include +#include +#include +#include +#include + #include "paxinc.h" +#include "elf.h" +#include "pax_utils_version.h" +#include "porting.h" +#include "security.h" /* prototypes */ static void dump_ehdr(const elfobj *elf, const void *ehdr); diff --git a/paxelf.c b/paxelf.c index 331f1b4..0268fa4 100644 --- a/paxelf.c +++ b/paxelf.c @@ -6,7 +6,20 @@ * Copyright 2005-2012 Mike Frysinger - */ +#include +#include +#include +#include +#include +#include +#include +#include + #include "paxinc.h" +#include "elf.h" +#include "paxelf.h" +#include "porting.h" +#include "xfuncs.h" /* * Setup a bunch of helper functions to translate diff --git a/paxelf.h b/paxelf.h index ac41a64..31ef298 100644 --- a/paxelf.h +++ b/paxelf.h @@ -16,6 +16,8 @@ #include #include +#include "elf.h" + typedef struct { const void *phdr; const void *shdr; diff --git a/paxinc.c b/paxinc.c index 64a3069..7dfd4ca 100644 --- a/paxinc.c +++ b/paxinc.c @@ -11,6 +11,13 @@ #define IN_paxinc #include "paxinc.h" +#include +#include +#include +#include + +#include "xfuncs.h" + char do_reverse_endian; /* some of this ar code was taken from busybox */ diff --git a/paxinc.h b/paxinc.h index 3dd163a..7eb6802 100644 --- a/paxinc.h +++ b/paxinc.h @@ -11,6 +11,15 @@ #ifndef _PAX_INC_H #define _PAX_INC_H +#include +#include +#include +#include +#include +#include +#include +#include + #include "porting.h" #include "xfuncs.h" #include "security.h" @@ -35,7 +44,6 @@ #include "elf.h" #include "paxelf.h" #include "paxldso.h" - /* Mach-O love */ #include "macho.h" #include "paxmacho.h" diff --git a/paxldso.c b/paxldso.c index ce7facd..acab364 100644 --- a/paxldso.c +++ b/paxldso.c @@ -6,7 +6,24 @@ * Copyright 2004-2016 Mike Frysinger - */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include "paxinc.h" +#include "elf.h" +#include "paxelf.h" +#include "paxldso.h" +#include "xfuncs.h" /* * ld.so.cache logic diff --git a/paxldso.h b/paxldso.h index fd9f344..1e95851 100644 --- a/paxldso.h +++ b/paxldso.h @@ -9,6 +9,8 @@ #ifndef _PAX_LDSO_H #define _PAX_LDSO_H +#include + #include "paxelf.h" #include "porting.h" #include "xfuncs.h" diff --git a/paxmacho.c b/paxmacho.c index 74f02da..fcdff4b 100644 --- a/paxmacho.c +++ b/paxmacho.c @@ -7,7 +7,19 @@ * 2008-2021 Fabian Groffen - */ +#include +#include +#include +#include +#include +#include +#include +#include + #include "paxinc.h" +#include "macho.h" +#include "paxmacho.h" +#include "xfuncs.h" /* lil' static string pool */ static const char STR_BE[] = "BE"; diff --git a/paxmacho.h b/paxmacho.h index c32ccbb..b109af5 100644 --- a/paxmacho.h +++ b/paxmacho.h @@ -13,6 +13,8 @@ #define _PAX_MACHO_H #include +#include +#include #include "macho.h" diff --git a/pspax.c b/pspax.c index 6094882..1e75494 100644 --- a/pspax.c +++ b/pspax.c @@ -14,12 +14,31 @@ const char argv0[] = "pspax"; -#include "paxinc.h" #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "paxinc.h" +#include "elf.h" +#include "pax_utils_version.h" +#include "paxelf.h" +#include "security.h" #ifdef WANT_SYSCAP # undef _POSIX_SOURCE # include + # define WRAP_SYSCAP(x) x #else # define WRAP_SYSCAP(x) diff --git a/scanelf.c b/scanelf.c index 50497b2..ee990c9 100644 --- a/scanelf.c +++ b/scanelf.c @@ -8,7 +8,29 @@ const char argv0[] = "scanelf"; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include "paxinc.h" +#include "elf.h" +#include "pax_utils_version.h" +#include "paxldso.h" +#include "porting.h" +#include "security.h" +#include "xfuncs.h" #define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+') diff --git a/scanmacho.c b/scanmacho.c index e2aa485..fa1eee1 100644 --- a/scanmacho.c +++ b/scanmacho.c @@ -11,7 +11,26 @@ const char argv0[] = "scanmacho"; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include "paxinc.h" +#include "macho.h" +#include "pax_utils_version.h" +#include "paxmacho.h" +#include "porting.h" +#include "security.h" +#include "xfuncs.h" #define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+') diff --git a/security.c b/security.c index 19bf78f..f1a34df 100644 --- a/security.c +++ b/security.c @@ -5,8 +5,21 @@ * Copyright 2015 Mike Frysinger - */ +#include + +#ifdef WANT_SECCOMP +#include +#include +#endif + +#include +#include +#include +#include + #include "paxinc.h" #include "seccomp-bpf.h" +#include "security.h" #ifdef __linux__ diff --git a/xfuncs.c b/xfuncs.c index cd73dfa..e912fb0 100644 --- a/xfuncs.c +++ b/xfuncs.c @@ -6,7 +6,13 @@ * Copyright 2004-2012 Mike Frysinger - */ +#include +#include +#include +#include + #include "paxinc.h" +#include "xfuncs.h" char *xstrdup(const char *s) {