Signed-off-by: Andy Whitcroft <apw@canonical.com>
+EXPORT_SYMBOL(file_sb_list_del);
+
* the i_state of an inode while it is in use..
*/
DEFINE_SPINLOCK(inode_lock);
* the i_state of an inode while it is in use..
*/
DEFINE_SPINLOCK(inode_lock);
+EXPORT_SYMBOL(inode_lock);
/*
* iprune_sem provides exclusion between the kswapd or try_to_free_pages
/*
* iprune_sem provides exclusion between the kswapd or try_to_free_pages
+EXPORT_SYMBOL(deny_write_access);
/**
* path_get - get a reference to a path
/**
* path_get - get a reference to a path
{
return __lookup_hash(&nd->last, nd->path.dentry, nd);
}
{
return __lookup_hash(&nd->last, nd->path.dentry, nd);
}
+EXPORT_SYMBOL(lookup_hash);
int __lookup_one_len(const char *name, struct qstr *this,
struct dentry *base, int len)
int __lookup_one_len(const char *name, struct qstr *this,
struct dentry *base, int len)
this->hash = end_name_hash(hash);
return 0;
}
this->hash = end_name_hash(hash);
return 0;
}
+EXPORT_SYMBOL(__lookup_one_len);
/**
* lookup_one_len - filesystem helper to lookup single pathname component
/**
* lookup_one_len - filesystem helper to lookup single pathname component
+EXPORT_SYMBOL(iterate_mounts);
static void cleanup_group_ids(struct vfsmount *mnt, struct vfsmount *end)
{
static void cleanup_group_ids(struct vfsmount *mnt, struct vfsmount *end)
{
#include <linux/srcu.h>
#include <linux/rculist.h>
#include <linux/wait.h>
#include <linux/srcu.h>
#include <linux/rculist.h>
#include <linux/wait.h>
+#include <linux/module.h>
#include <linux/fsnotify_backend.h>
#include "fsnotify.h"
#include <linux/fsnotify_backend.h>
#include "fsnotify.h"
if (atomic_dec_and_test(&group->refcnt))
fsnotify_destroy_group(group);
}
if (atomic_dec_and_test(&group->refcnt))
fsnotify_destroy_group(group);
}
+EXPORT_SYMBOL(fsnotify_put_group);
/*
* Create a new fsnotify_group and hold a reference for the group returned.
/*
* Create a new fsnotify_group and hold a reference for the group returned.
+EXPORT_SYMBOL(fsnotify_alloc_group);
if (atomic_dec_and_test(&mark->refcnt))
mark->free_mark(mark);
}
if (atomic_dec_and_test(&mark->refcnt))
mark->free_mark(mark);
}
+EXPORT_SYMBOL(fsnotify_put_mark);
/*
* Any time a mark is getting freed we end up here.
/*
* Any time a mark is getting freed we end up here.
if (unlikely(atomic_dec_and_test(&group->num_marks)))
fsnotify_final_destroy_group(group);
}
if (unlikely(atomic_dec_and_test(&group->num_marks)))
fsnotify_final_destroy_group(group);
}
+EXPORT_SYMBOL(fsnotify_destroy_mark);
void fsnotify_set_mark_mask_locked(struct fsnotify_mark *mark, __u32 mask)
{
void fsnotify_set_mark_mask_locked(struct fsnotify_mark *mark, __u32 mask)
{
+EXPORT_SYMBOL(fsnotify_add_mark);
/*
* clear any marks in a group in which mark->flags & flags is true
/*
* clear any marks in a group in which mark->flags & flags is true
atomic_set(&mark->refcnt, 1);
mark->free_mark = free_mark;
}
atomic_set(&mark->refcnt, 1);
mark->free_mark = free_mark;
}
+EXPORT_SYMBOL(fsnotify_init_mark);
static int fsnotify_mark_destroy(void *ignored)
{
static int fsnotify_mark_destroy(void *ignored)
{
mutex_unlock(&dentry->d_inode->i_mutex);
return ret;
}
mutex_unlock(&dentry->d_inode->i_mutex);
return ret;
}
+EXPORT_SYMBOL(do_truncate);
static long do_sys_truncate(const char __user *pathname, loff_t length)
{
static long do_sys_truncate(const char __user *pathname, loff_t length)
{
return splice_write(pipe, out, ppos, len, flags);
}
return splice_write(pipe, out, ppos, len, flags);
}
+EXPORT_SYMBOL(do_splice_from);
/*
* Attempt to initiate a splice from a file to a pipe.
/*
* Attempt to initiate a splice from a file to a pipe.
return splice_read(in, ppos, pipe, len, flags);
}
return splice_read(in, ppos, pipe, len, flags);
}
+EXPORT_SYMBOL(do_splice_to);
/**
* splice_direct_to_actor - splices data directly between two non-pipes
/**
* splice_direct_to_actor - splices data directly between two non-pipes
+EXPORT_SYMBOL(cap_file_mmap);
+EXPORT_SYMBOL(devcgroup_inode_permission);
int devcgroup_inode_mknod(int mode, dev_t dev)
{
int devcgroup_inode_mknod(int mode, dev_t dev)
{
return 0;
return security_ops->path_mkdir(dir, dentry, mode);
}
return 0;
return security_ops->path_mkdir(dir, dentry, mode);
}
+EXPORT_SYMBOL(security_path_mkdir);
int security_path_rmdir(struct path *dir, struct dentry *dentry)
{
int security_path_rmdir(struct path *dir, struct dentry *dentry)
{
return 0;
return security_ops->path_rmdir(dir, dentry);
}
return 0;
return security_ops->path_rmdir(dir, dentry);
}
+EXPORT_SYMBOL(security_path_rmdir);
int security_path_unlink(struct path *dir, struct dentry *dentry)
{
int security_path_unlink(struct path *dir, struct dentry *dentry)
{
return 0;
return security_ops->path_unlink(dir, dentry);
}
return 0;
return security_ops->path_unlink(dir, dentry);
}
+EXPORT_SYMBOL(security_path_unlink);
int security_path_symlink(struct path *dir, struct dentry *dentry,
const char *old_name)
int security_path_symlink(struct path *dir, struct dentry *dentry,
const char *old_name)
return 0;
return security_ops->path_symlink(dir, dentry, old_name);
}
return 0;
return security_ops->path_symlink(dir, dentry, old_name);
}
+EXPORT_SYMBOL(security_path_symlink);
int security_path_link(struct dentry *old_dentry, struct path *new_dir,
struct dentry *new_dentry)
int security_path_link(struct dentry *old_dentry, struct path *new_dir,
struct dentry *new_dentry)
#endif
return security_ops->path_link(old_dentry, new_dir, new_dentry);
}
#endif
return security_ops->path_link(old_dentry, new_dir, new_dentry);
}
+EXPORT_SYMBOL(security_path_link);
int security_path_rename(struct path *old_dir, struct dentry *old_dentry,
struct path *new_dir, struct dentry *new_dentry)
int security_path_rename(struct path *old_dir, struct dentry *old_dentry,
struct path *new_dir, struct dentry *new_dentry)
return security_ops->path_rename(old_dir, old_dentry, new_dir,
new_dentry);
}
return security_ops->path_rename(old_dir, old_dentry, new_dir,
new_dentry);
}
+EXPORT_SYMBOL(security_path_rename);
int security_path_truncate(struct path *path)
{
int security_path_truncate(struct path *path)
{
return 0;
return security_ops->path_truncate(path);
}
return 0;
return security_ops->path_truncate(path);
}
+EXPORT_SYMBOL(security_path_truncate);
int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
mode_t mode)
int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
mode_t mode)
return 0;
return security_ops->path_chmod(dentry, mnt, mode);
}
return 0;
return security_ops->path_chmod(dentry, mnt, mode);
}
+EXPORT_SYMBOL(security_path_chmod);
int security_path_chown(struct path *path, uid_t uid, gid_t gid)
{
int security_path_chown(struct path *path, uid_t uid, gid_t gid)
{
return 0;
return security_ops->path_chown(path, uid, gid);
}
return 0;
return security_ops->path_chown(path, uid, gid);
}
+EXPORT_SYMBOL(security_path_chown);
int security_path_chroot(struct path *path)
{
int security_path_chroot(struct path *path)
{
return 0;
return security_ops->inode_readlink(dentry);
}
return 0;
return security_ops->inode_readlink(dentry);
}
+EXPORT_SYMBOL(security_inode_readlink);
int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd)
{
int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd)
{
return 0;
return security_ops->inode_permission(inode, mask);
}
return 0;
return security_ops->inode_permission(inode, mask);
}
+EXPORT_SYMBOL(security_inode_permission);
int security_inode_exec_permission(struct inode *inode, unsigned int flags)
{
int security_inode_exec_permission(struct inode *inode, unsigned int flags)
{
return fsnotify_perm(file, mask);
}
return fsnotify_perm(file, mask);
}
+EXPORT_SYMBOL(security_file_permission);
int security_file_alloc(struct file *file)
{
int security_file_alloc(struct file *file)
{
return ret;
return ima_file_mmap(file, prot);
}
return ret;
return ima_file_mmap(file, prot);
}
+EXPORT_SYMBOL(security_file_mmap);
int security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot,
unsigned long prot)
int security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot,
unsigned long prot)