
macOS应用记述一
获取签名方法一 std::string get_publisher_from_identifier(std::string& identifier) { std::string res; @autorelea...
获取签名方法一 std::string get_publisher_from_identifier(std::string& identifier) { std::string res; @autorelea...
接口卡信息获取 这里是外面有地方需要获取en0信息,所以使用了一个map,以接口卡名字为键,保存了对应的接口卡信息 std::vector<std::map<std::string, std::strin...
关于sandbox相关 用途 进程隔离 CEF采多进程架构,主要包括浏览器进程和渲染进程 沙盒机制将渲染进程与浏览器进程隔离开来,使得即使渲染进程中存在恶意代码或漏洞,也不会直接影响浏览器进程及宿主系统 权限限制 沙...
问题 M2 Macbook开发,发现不识别#if defined(__aarch64__) 原因 编译dylib的时候,指定了编x86_64,然后被识别成intel的 解决方法一 通过在cmake里面判断架构结构,自...
概述 AddressSanitizer(ASan)最初由 Google 开发并开源,是 LLVM/Clang 编译器工具链的一部分 它的核心目标是检测内存错误(如缓冲区溢出、释放后使用等),并通过 影子内存(Shad...
cef结构简介 CMakeLists.txt Debug cef的debug构建,以及平台需要的其他库 include cef头文件 libcef_dll libcef_dll静态库的源代码, 用到cef的C++AP...
otool -f print the fat headers -a print the archive header -h print the mach header -l print the load comman...
登录用户 获取登录用户名 std::string get_login_name() { std::string res; char* name = new char[512]; auto len = getlogin...
服务类型 Login item 不由launchd管理,其他3个是 有UI XPC service 无UI,除非是用IOSurface这种方式 Launch Daemon 运行在系统上下文中,其他三个运行在用户上下文...