mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-09-22 03:00:12 +00:00
fix(agentcompat): secure legacy file manager boundaries
Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
This commit is contained in:
@@ -133,9 +133,9 @@ func newLegacyFMRunID() (string, error) {
|
||||
return hex.EncodeToString(bytes), nil
|
||||
}
|
||||
|
||||
func verifyLegacyFMSentinels(sentinelPaths []string, sentinel []byte) error {
|
||||
for _, path := range sentinelPaths {
|
||||
content, err := os.ReadFile(path)
|
||||
func verifyLegacyFMSentinels(root *os.Root, sentinelNames []string, sentinel []byte) error {
|
||||
for _, name := range sentinelNames {
|
||||
content, err := root.ReadFile(name)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user