diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-07-22 14:04:18 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2007-10-21 08:37:45 +0200 |
commit | 74c3cbe33bc077ac1159cadfea608b501e100344 (patch) | |
tree | 4c4023caa4e15d19780255fa5880df3d36eb292c /fs | |
parent | [PATCH] new helper - inotify_evict_watch() (diff) | |
download | linux-74c3cbe33bc077ac1159cadfea608b501e100344.tar.xz linux-74c3cbe33bc077ac1159cadfea608b501e100344.zip |
[PATCH] audit: watching subtrees
New kind of audit rule predicates: "object is visible in given subtree".
The part that can be sanely implemented, that is. Limitations:
* if you have hardlink from outside of tree, you'd better watch
it too (or just watch the object itself, obviously)
* if you mount something under a watched tree, tell audit
that new chunk should be added to watched subtrees
* if you umount something in a watched tree and it's still mounted
elsewhere, you will get matches on events happening there. New command
tells audit to recalculate the trees, trimming such sources of false
positives.
Note that it's _not_ about path - if something mounted in several places
(multiple mount, bindings, different namespaces, etc.), the match does
_not_ depend on which one we are using for access.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/dcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index 5489b2d98a00..2bb3f7ac683b 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -38,7 +38,7 @@ int sysctl_vfs_cache_pressure __read_mostly = 100; EXPORT_SYMBOL_GPL(sysctl_vfs_cache_pressure); __cacheline_aligned_in_smp DEFINE_SPINLOCK(dcache_lock); -static __cacheline_aligned_in_smp DEFINE_SEQLOCK(rename_lock); +__cacheline_aligned_in_smp DEFINE_SEQLOCK(rename_lock); EXPORT_SYMBOL(dcache_lock); |