X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=container.h;h=dede69632dfc7435d0c6430059499e01db3e96f4;hb=122a5e3b8455f88fef4e050a229c4625a9a7c6ec;hp=903e3e809627170b852c1f9fe541df3087005018;hpb=ade00ca585a49c8478bf60eb24ce385676be37a4;p=project%2Fprocd.git diff --git a/container.h b/container.h index 903e3e8..dede696 100644 --- a/container.h +++ b/container.h @@ -21,7 +21,8 @@ static inline bool is_container() { struct stat s; int r = stat("/.dockerenv", &s); - return !!getenv("container") || r == 0; + int pv_r = stat("/pantavisor", &s); + return !!getenv("container") || r == 0 || pv_r == 0; } #endif