regexes are not supported
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start by tracing sudo-rs handling of regular expressions in sudoers, then compare its behavior with chapters 9.3.3 and 9.3.4 of the referenced POSIX standard. Reproduce the LHCATHOMEBOINC_11 example and verify that escaped dots are treated as literal dots while unescaped dots retain their wildcard meaning.
Written by the indexing model from the issue text.
Description
Please ensure sudo-rs does not violate the regular expressions standard published here:
https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap09.html
A volunteer running tasks for CERN's public project https://lhcathome.cern.ch/lhcathome/index.php recently reported his CERN tasks were failing after he upgraded his Linux box to Ubuntu 25.10.
He could track this down to sudo-rs which complains about a custom sudoers file using regular expressions like this:
Cmnd_Alias LHCATHOMEBOINC_11 = /usr/bin/systemctl ^(freeze|thaw) ATLAS_[-a-zA-Z0-9_]+\.scope$
The volunteer found out that after replacing \. with . sudo-rs accepts the sudoers file.
According to the regular expressions standard above (especially chapters 9.3.3, 9.3.4) a dot is a placeholder for nearly 'all characters' while an escaped dot stands for a literal dot.
The latter is the expected meaning in the custom sudoers file.
- Dominant language
- Rust
- Stars
- 4.5k
- Forks
- 179
- Avg merge
- 16h 45m
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from trifectatechfoundation/sudo-rs
-
C-cli enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
trifectatechfoundation/sudo-rs#1659 · 9 comments · 3 reactions ·
-
consultation enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
trifectatechfoundation/sudo-rs#1596 · 5 comments ·
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
trifectatechfoundation/sudo-rs#1564 ·
-
chore enhancement
trifectatechfoundation/sudo-rs#1679 · 4 comments · 1 assignee ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
trifectatechfoundation/sudo-rs#1668 · 1 comment ·
All issues in trifectatechfoundation/sudo-rs
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100