the fixing permission of runroot used by verify command
| 636 | |
| 637 | // the fixing permission of runroot used by verify command |
| 638 | static void |
| 639 | fix_runroot(PermissionMapType &permission_map, const struct passwd *pwd) |
| 640 | { |
| 641 | fix_flag = true; |
| 642 | for (const auto &it : permission_map) { |
| 643 | std::string name = it.first; |
| 644 | std::string value = it.second.path; |
| 645 | permission_entry = permission_map[name]; |
| 646 | ftw(value.c_str(), permission_handler, OPEN_MAX_FILE); |
| 647 | } |
| 648 | fix_flag = false; |
| 649 | set_permission(permission_map, pwd); |
| 650 | } |
| 651 | |
| 652 | void |
| 653 | LayoutEngine::verify_runroot() |
no test coverage detected