Skip to content

Fix sudoers.d file name filtering - #608

Open
UOS-liang wants to merge 1 commit into
sudo-project:mainfrom
UOS-liang:sudoers-d-dotfiles
Open

UOS-liang wants to merge 1 commit into
sudo-project:mainfrom
UOS-liang:sudoers-d-dotfiles

Conversation

@UOS-liang

Copy link
Copy Markdown
Contributor

Files in an @includedir were skipped whenever their name contained a ".", so legitimate files such as myrules.conf were silently ignored. The check was originally meant only to skip editor and package manager temporary/backup files.

Only skip names beginning with "." or ending in "~", ".bak", ".orig", ".rej", or ".swp". Update the sudoers manual and add a regression test.

Directories included via @includedir skipped any file whose name
contained a ".", which also ignored legitimate files such as
myrules.conf.  Only skip editor and package manager temporary or
backup files: names beginning with "." or ending in "~", ".bak",
".orig", ".rej", or ".swp".

Update the sudoers manual and add a regression test.

Fixes: sudo-project#486
Signed-off-by: Hailiang Ma <mahailiang@uniontech.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant