forked from percona/percona-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[plugin/procfs] PS-7784: Fix misc ProcFS issues
PS-7784 Status variable `procfs_access_violations` has same value as `procfs_queries` Fix typo Replace queries->access_violations for procfs_access_violations -------------------------------------------------------------------------- PS-7785 Default value for `procfs_files_spec` contains non-existing entries Fix typo Lost semicolon -------------------------------------------------------------------------- PS-7788 Wildcard globbing in `procfs_files_spec` does not work 1) The length of the string as an array is `sizeof(PROC_NAME) - 1` 2) Also condition `last_sep_before_star == std::string::npos` will never work and its body searches for files in the current directory. Corrected that in the absence of a pattern, the search logic for the pattern would be reused, where pattern is the file name -------------------------------------------------------------------------- PS-7790 ProcFS access boundary to `/proc` and `/sys` can be bypassed with `..` Use `realpath()` to expands all symbolic links and resolves references to /./, /../ and make sure that path start from /proc/ or /sys/
- Loading branch information
Showing
3 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters