Handling of double quotes in command arguments
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
- 35/100
Línea de trabajo
Start by reading the sudoers manual section on command arguments and the parser or matching code that handles quoted arguments; the issue does not name specific files or tests. Reproduce the two examples from the report on a current version and trace how quoted and empty arguments are matched. Done means the allowed commands match the documented quoting rules, with regression tests covering both examples.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
As far as I understand from the manual, double quotes can be used to escape special characters in any context and they should always be balanced (or escaped with a \). When it comes to command-line arguments though, I observe the following behaviour (on version 1.9.9 and prior; apologies I'm not able to test on the latest version):
The following entry:
test ALL = NOPASSWD: /bin/ls " foo"
results in user test being able to run these two commands:
sudo ls '" foo"'
sudo ls '"' 'foo"'
but not what is expected:
sudo ls ' foo'
and the following entry:
test ALL = NOPASSWD: /bin/ls ""
results in user test being able to run both:
sudo ls '""'
sudo ls
- Lenguaje dominante
- C
- Estrellas
- 1.7k
- Forks
- 306
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 24
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 sudo-project/sudo
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
sudo-project/sudo#583 ·
Los mantenedores suelen responder en 1 día
-
Signal forwarded to the command is lost when it arrives between fork() and execve() of the commandAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
sudo-project/sudo#566 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
sudo-project/sudo#553 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
sudo-project/sudo#552 ·
Los mantenedores suelen responder en 1 día
-
Documentation text overflows container instead of wrappingQuizá libre de nuevo @BittuBarnwal7479 la tomó hace 131 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 58/100
sudo-project/sudo#547 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de sudo-project/sudo
Issues similares
-
vim.filetype.match() prefixes a URL buffer name with the cwd before passing it to filetype functionsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Los mantenedores suelen responder en 1 día
-
compilation errorAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
COVESA/dlt-daemon#925 · 1 reacción ·
-
stream_curl: retry_count never resets after a successful reconnect, so long sequential streams die after 5 dropsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
mpv-player/mpv#18728 ·
Los mantenedores suelen responder en 1 día
-
followup Prio 📌
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
cyrusimap/cyrus-imapd#6640 ·
Los mantenedores suelen responder en 2 días