Windows: only elevate the SMART agent from a protected install location
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- java, powershell
- Área
- desktop-dev, security
Línea de trabajo
Start with SmartEscalation.ensureAgentRunning() and how it gets its path from Smart.resolveSmartctlPath(), then read SmartEscalation.isProtectedLocation() as it is used in PR #261 for the cache drop path. Done means the SMART elevation path applies the same protected-location check, with the -Djdm.devElevation=true opt-in, and the design question of signature or ACL verification is settled first. Expect a maintainer decision before coding, since the issue leaves the approach open.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Found in the PR #261 review (Copilot, "Restrict elevation to verified protected installations").
Problem
SmartEscalation.ensureAgentRunning() elevates smart-agent.ps1 from wherever Smart.resolveSmartctlPath() finds smartctl.exe: jar-relative, java.home-relative, APPDIR, or system paths. Outside the MSI install (zip/portable layout, IDE target/), that folder can be user-writable, so any process could replace the script and get code run elevated when the user approves the SMART UAC prompt.
PR #261 already restricts the new cache drop use of the agent to installs under Program Files (SmartEscalation.isProtectedLocation(), dev opt-in -Djdm.devElevation=true). The existing SMART path is unchanged to avoid breaking SMART in dev runs.
Proposal
- Apply
isProtectedLocation()to SMART elevation too; outside Program Files show SMART as unavailable (or ask to run as admin), with the same dev opt-in. - Consider verifying the script's signature or ACL instead of the path alone.
- Review the zip distribution plan (README: portable, run from USB) against this.
- Lenguaje dominante
- Java
- Estrellas
- 6
- Forks
- 6
- Merge medio
- 10 h 11 min
- PR fusionados (30 d)
- 12
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de JDiskMark/jdm-java
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
enhancement linux
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
documentation linux
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Publish JDiskMark on FlathubAbiertoenhancement linux
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
bug linux
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
Los mantenedores suelen responder en 1 día
Todos los issues de JDiskMark/jdm-java
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
bloxbean/yaci-store#1445 ·
Los mantenedores suelen responder en 1 día
-
图片灯箱过长的话底部carousel滑动没有惯性Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
-
Spare PermissionAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
Etar-Group/Etar-Calendar#2234 ·
Los mantenedores suelen responder en 1 día
-
[BUG] MCP resources-as-tools drops invocation context when listing templatesPosiblemente ocupada @CryoThrust la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
langchain4j/langchain4j#7320 ·
Los mantenedores suelen responder en 1 día