summaryrefslogtreecommitdiffstats
path: root/fs/file_table.c
diff options
context:
space:
mode:
authorAl Viro2011-03-13 22:08:22 +0100
committerAl Viro2011-03-15 07:21:45 +0100
commit326be7b484843988afe57566b627fb7a70beac56 (patch)
tree04a15bfdb681ad09444cf2f3d72ae0d38fb0432b /fs/file_table.c
parentreadlinkat(), fchownat() and fstatat() with empty relative pathnames (diff)
downloadkernel-qcow2-linux-326be7b484843988afe57566b627fb7a70beac56.tar.gz
kernel-qcow2-linux-326be7b484843988afe57566b627fb7a70beac56.tar.xz
kernel-qcow2-linux-326be7b484843988afe57566b627fb7a70beac56.zip
Allow passing O_PATH descriptors via SCM_RIGHTS datagrams
Just need to make sure that AF_UNIX garbage collector won't confuse O_PATHed socket on filesystem for real AF_UNIX opened socket. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/file_table.c')
-rw-r--r--fs/file_table.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/file_table.c b/fs/file_table.c
index 3c16e1ca163e..74a9544ac770 100644
--- a/fs/file_table.c
+++ b/fs/file_table.c
@@ -305,6 +305,8 @@ struct file *fget_raw(unsigned int fd)
return file;
}
+EXPORT_SYMBOL(fget_raw);
+
/*
* Lightweight file lookup - no refcnt increment if fd table isn't shared.
*