--- a/src/libostree/ostree-repo-checkout.c 2022-10-07 09:49:24.000000000 +0200 +++ b/src/libostree/ostree-repo-checkout.c 2022-11-04 21:53:56.272931320 +0100 @@ -37,6 +37,10 @@ #define OVERLAYFS_WHITEOUT_PREFIX ".ostree-wh." +#if !defined(ALLPERMS) +# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) /* 07777 */ +#endif + /* Per-checkout call state/caching */ typedef struct { GString *path_buf; /* buffer for real path if filtering enabled */