Hackfut Security File Manager
Current Path:
/opt/passenger-5.3.7-4.el6.cloudlinux/src/cxx_supportlib/SystemTools
opt
/
passenger-5.3.7-4.el6.cloudlinux
/
src
/
cxx_supportlib
/
SystemTools
/
📁
..
📄
ContainerHelpers.h
(768 B)
📄
ProcessMetricsCollector.h
(13.76 KB)
📄
README.md
(63 B)
📄
SystemMetricsCollector.h
(40.39 KB)
📄
SystemTime.cpp
(1.92 KB)
📄
SystemTime.h
(11.15 KB)
📄
UserDatabase.cpp
(5.99 KB)
📄
UserDatabase.h
(5.37 KB)
Editing: ContainerHelpers.h
/* * Phusion Passenger - https://www.phusionpassenger.com/ * Copyright (c) 2018 Phusion Holding B.V. * * "Passenger", "Phusion Passenger" and "Union Station" are registered * trademarks of Phusion Holding B.V. * * See LICENSE file for license information. */ #ifndef _PASSENGER_SYSTEM_TOOLS_CONTAINER_HELPERS_H_ #define _PASSENGER_SYSTEM_TOOLS_CONTAINER_HELPERS_H_ #include <boost/predef.h> #include <FileTools/FileManip.h> namespace Passenger { using namespace std; inline bool autoDetectInContainer() { #if BOOST_OS_LINUX // https://github.com/moby/moby/issues/26102#issuecomment-253621560 return fileExists("/.dockerenv"); #else return false; #endif } } // namespace Passenger #endif /* _PASSENGER_SYSTEM_TOOLS_CONTAINER_HELPERS_H_ */
Upload File
Create Folder