Liu Jiang
b63774ec61
libs/safe-path: add crate to safely resolve fs paths
...
There are always path(symlink) based attacks, so the `safe-path` crate
tries to provde some mechanisms to harden path resolution related code.
Fixes : #3451
Signed-off-by: Liu Jiang <gerry@linux.alibaba.com >
2022-04-21 10:01:21 +08:00
James O. D. Hunt
b1f4e945b3
security: Update rust crate versions
...
Update the rust dependencies that have upstream security fixes. Issues
fixed by this change:
- [`RUSTSEC-2020-0002`](https://rustsec.org/advisories/RUSTSEC-2020-0002 ) (`prost` crate)
- [`RUSTSEC-2020-0036`](https://rustsec.org/advisories/RUSTSEC-2020-0036 ) (`failure` crate)
- [`RUSTSEC-2021-0073`](https://rustsec.org/advisories/RUSTSEC-2021-0073 ) (`prost-types` crate)
- [`RUSTSEC-2021-0119`](https://rustsec.org/advisories/RUSTSEC-2021-0119 ) (`nix` crate)
This change also includes:
- Minor code changes for the new version of `prometheus` for the agent.
- A *downgrade* of the version of the `futures` crate to the (new)
latest version (`0.3.17`) since version `0.3.18` was removed [1].
Fixes : #3296 .
[1] - See https://crates.io/crates/futures/versions
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com >
2021-12-22 07:41:16 +00:00
Peng Tao
7c4263b3e1
src: reorg source directories
...
To make the code directory structure more clear:
└── src
├── agent
├── libs
│ └── logging
├── runtime
├── runtime-rs (to be added)
└── tools
├── agent-ctl
└── trace-forwarder
Fixes : #3204
Signed-off-by: Peng Tao <bergwolf@hyper.sh >
2021-12-14 10:30:08 +08:00