X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=container.h;h=dede69632dfc7435d0c6430059499e01db3e96f4;hb=e1d7cee59b08655c224999b21e9fbf139f5ee54e;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