|
Bugzilla – Full Text Bug Listing |
| Summary: | Rule with wildcard in path takes forever due to stat | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | jl_ewing |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED INVALID | ||
| Severity: | high | ||
| Priority: | low | ||
| Version: | 1.7.2 | ||
| Hardware: | Sun | ||
| OS: | Solaris 2.x | ||
|
Description
jl_ewing
2012-06-06 22:54:16 MDT
If you are going to use patterns like that in sudoers you probably want to enable the fast_glob option which causes sudo to use the fnmatch() function instead of glob(). Sudo matches commands by inode, which is why you are seeing all those stats. This is the only way to safely handle '!' rules and to consistently support things like "sudo ./command". |