diff options
author | avg <avg@FreeBSD.org> | 2013-07-26 14:25:58 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2013-07-26 14:25:58 +0000 |
commit | 4b4c561bbf9e16f81ad2235acb49b805fea3263c (patch) | |
tree | 5d8a84c97d82b21a8b881f446dcd99c15b256286 /UPDATING | |
parent | eb8dc560e4774a1c127fb60c9427d40b25f03b25 (diff) | |
download | FreeBSD-src-4b4c561bbf9e16f81ad2235acb49b805fea3263c.zip FreeBSD-src-4b4c561bbf9e16f81ad2235acb49b805fea3263c.tar.gz |
make path matching in devfs rules consistent and sane (and safer)
Before this change path matching had the following features:
- for device nodes the patterns were matched against full path
- in the above case '/' in a path could be matched by a wildcard
- for directories and links only the last component was matched
So, for example, a pattern like 're*' could match the following entries:
- re0 device
- responder/u0 device
- zvol/recpool directory
Although it was possible to work around this behavior (once it was spotted
and understood), it was very confusing and contrary to documentation.
Now we always match a full path for all types of devfs entries (devices,
directories, links) and a '/' has to be matched explicitly.
This behavior follows the shell globbing rules.
This change is originally developed by Jaakko Heinonen.
Many thanks!
PR: kern/122838
Submitted by: jh
MFC after: 4 weeks
Diffstat (limited to 'UPDATING')
-rw-r--r-- | UPDATING | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -64,6 +64,13 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 10.x IS SLOW: even if neither the traced process nor the tracing process had write access to that file. +201306XX: + Behavior of devfs rules path matching has been changed. + Pattern is now always matched against fully qualified devfs + path and slash characters must be explicitly matched by + slashes in pattern (FNM_PATHNAME). Rulesets involving devfs + subdirectories must be reviewed. + 20130615: CVS has been removed from the base system. An exact copy of the code is available from the devel/cvs port. |