Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

Commit

Permalink
allow aufs to be compiled as a module
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Duklas authored and hyperb1iss committed Jun 21, 2010
1 parent 23ba0c3 commit cf55e5b
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fs/aufs/Kconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
config AUFS_FS
bool "Aufs (Advanced multi layered unification filesystem) support"
tristate "Aufs (Advanced multi layered unification filesystem) support"
depends on EXPERIMENTAL
help
Aufs is a stackable unification filesystem such as Unionfs,
Expand Down
3 changes: 3 additions & 0 deletions fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ int deny_write_access(struct file * file)

return 0;
}
EXPORT_SYMBOL(deny_write_access);

/**
* path_get - get a reference to a path
Expand Down Expand Up @@ -1186,6 +1187,7 @@ struct dentry *lookup_hash(struct nameidata *nd)
return ERR_PTR(err);
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)
Expand All @@ -1208,6 +1210,7 @@ int __lookup_one_len(const char *name, struct qstr *this,
this->hash = end_name_hash(hash);
return 0;
}
EXPORT_SYMBOL(__lookup_one_len);

/**
* lookup_one_len - filesystem helper to lookup single pathname component
Expand Down
1 change: 1 addition & 0 deletions fs/open.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
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)
{
Expand Down
1 change: 1 addition & 0 deletions fs/splice.c
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,7 @@ long do_splice_to(struct file *in, loff_t *ppos,

return splice_read(in, ppos, pipe, len, flags);
}
EXPORT_SYMBOL(do_splice_to);

/**
* splice_direct_to_actor - splices data directly between two non-pipes
Expand Down
1 change: 1 addition & 0 deletions security/device_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ int devcgroup_inode_permission(struct inode *inode, int mask)

return -EPERM;
}
EXPORT_SYMBOL(devcgroup_inode_permission);

int devcgroup_inode_mknod(int mode, dev_t dev)
{
Expand Down
1 change: 1 addition & 0 deletions security/integrity/ima/ima_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ int ima_file_mmap(struct file *file, unsigned long prot)
MAY_EXEC, FILE_MMAP);
return 0;
}
EXPORT_SYMBOL(ima_file_mmap);

/**
* ima_bprm_check - based on policy, collect/store measurement.
Expand Down
11 changes: 11 additions & 0 deletions security/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,20 +411,23 @@ int security_path_mkdir(struct path *dir, struct dentry *dentry, int 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)
{
if (unlikely(IS_PRIVATE(dir->dentry->d_inode)))
return 0;
return security_ops->path_rmdir(dir, dentry);
}
EXPORT_SYMBOL(security_path_rmdir);

int security_path_unlink(struct path *dir, struct dentry *dentry)
{
if (unlikely(IS_PRIVATE(dir->dentry->d_inode)))
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)
Expand All @@ -433,6 +436,7 @@ int security_path_symlink(struct path *dir, struct dentry *dentry,
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)
Expand All @@ -441,6 +445,7 @@ int security_path_link(struct dentry *old_dentry, struct path *new_dir,
return 0;
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)
Expand All @@ -451,6 +456,7 @@ int security_path_rename(struct path *old_dir, struct dentry *old_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, loff_t length,
unsigned int time_attrs)
Expand All @@ -459,6 +465,7 @@ int security_path_truncate(struct path *path, loff_t length,
return 0;
return security_ops->path_truncate(path, length, time_attrs);
}
EXPORT_SYMBOL(security_path_truncate);

int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
mode_t mode)
Expand Down Expand Up @@ -559,6 +566,7 @@ int security_inode_readlink(struct dentry *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)
{
Expand All @@ -573,6 +581,7 @@ int security_inode_permission(struct inode *inode, int mask)
return 0;
return security_ops->inode_permission(inode, mask);
}
EXPORT_SYMBOL(security_inode_permission);

int security_inode_setattr(struct dentry *dentry, struct iattr *attr)
{
Expand Down Expand Up @@ -673,6 +682,7 @@ int security_file_permission(struct file *file, int mask)
{
return security_ops->file_permission(file, mask);
}
EXPORT_SYMBOL(security_file_permission);

int security_file_alloc(struct file *file)
{
Expand Down Expand Up @@ -700,6 +710,7 @@ int security_file_mmap(struct file *file, unsigned long reqprot,
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)
Expand Down

0 comments on commit cf55e5b

Please sign in to comment.