补充目录权限扫描说明

This commit is contained in:
xuans committed 2026-09-22 03:43:39 +08:00
1 parent 3c831a6133
commit 0e434e3819
5 files changed
+5 -5

No files matched your search

@@ -33,7 +33,7 @@ func ListenUnix(path string, allowedUIDs []uint32) (*UnixServer, error) {
if err := validateControlDirectory(parent); err != nil {
return nil, err
}
if err := os.Chmod(parent, 0750); err != nil {
if err := os.Chmod(parent, 0750); err != nil { // #nosec G302
return nil, fmt.Errorf("set control directory permissions: %w", err)
}
if info, err := os.Lstat(path); err == nil {