aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs_struct.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2009-03-28 19:23:01 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-03-28 20:30:00 -0400
commit795e2fe0a3b69dbc040d7efcf517e0cbad6901d0 (patch)
tree8d39fb27b46822003d316c8ce315211baa13b79d /include/linux/fs_struct.h
parent7c2c7d993044cddc5010f6f429b100c63bc7dffb (diff)
Annotate struct fs_struct's usage count restriction
Annotate struct fs_struct's usage count to indicate the restrictions upon it. It may not be incremented, except by clone(CLONE_FS), as this affects the check in check_unsafe_exec() in fs/exec.c. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Hugh Dickins <hugh@veritas.com> Cc: stable@kernel.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/fs_struct.h')
-rw-r--r--include/linux/fs_struct.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/fs_struct.h b/include/linux/fs_struct.h
index a97c053d3a9a..18b467dbe278 100644
--- a/include/linux/fs_struct.h
+++ b/include/linux/fs_struct.h
@@ -4,7 +4,10 @@
4#include <linux/path.h> 4#include <linux/path.h>
5 5
6struct fs_struct { 6struct fs_struct {
7 atomic_t count; 7 atomic_t count; /* This usage count is used by check_unsafe_exec() for
8 * security checking purposes - therefore it may not be
9 * incremented, except by clone(CLONE_FS).
10 */
8 rwlock_t lock; 11 rwlock_t lock;
9 int umask; 12 int umask;
10 struct path root, pwd; 13 struct path root, pwd;