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

Commit

Permalink
fix aufs as a module (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Berhent committed Jun 19, 2010
1 parent bb3338d commit afafae1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions fs/aufs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ endchoice

config AUFS_HNOTIFY
bool "Detect direct branch access (bypassing aufs)"
depends on !AUFS_FS=m
help
If you want to modify files on branches directly, eg. bypassing aufs,
and want aufs to detect the changes of them fully, then enable this
Expand Down
9 changes: 9 additions & 0 deletions security/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,18 +467,21 @@ int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
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)
{
if (unlikely(IS_PRIVATE(path->dentry->d_inode)))
return 0;
return security_ops->path_chown(path, uid, gid);
}
EXPORT_SYMBOL(security_path_chown);

int security_path_chroot(struct path *path)
{
return security_ops->path_chroot(path);
}
EXPORT_SYMBOL(security_path_chroot);
#endif

int security_inode_create(struct inode *dir, struct dentry *dentry, int mode)
Expand All @@ -496,13 +499,15 @@ int security_inode_link(struct dentry *old_dentry, struct inode *dir,
return 0;
return security_ops->inode_link(old_dentry, dir, new_dentry);
}
EXPORT_SYMBOL(security_inode_link);

int security_inode_unlink(struct inode *dir, struct dentry *dentry)
{
if (unlikely(IS_PRIVATE(dentry->d_inode)))
return 0;
return security_ops->inode_unlink(dir, dentry);
}
EXPORT_SYMBOL(security_inode_unlink);

int security_inode_symlink(struct inode *dir, struct dentry *dentry,
const char *old_name)
Expand All @@ -511,6 +516,7 @@ int security_inode_symlink(struct inode *dir, struct dentry *dentry,
return 0;
return security_ops->inode_symlink(dir, dentry, old_name);
}
EXPORT_SYMBOL(security_inode_symlink);

int security_inode_mkdir(struct inode *dir, struct dentry *dentry, int mode)
{
Expand All @@ -526,13 +532,15 @@ int security_inode_rmdir(struct inode *dir, struct dentry *dentry)
return 0;
return security_ops->inode_rmdir(dir, dentry);
}
EXPORT_SYMBOL(security_inode_rmdir);

int security_inode_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev)
{
if (unlikely(IS_PRIVATE(dir)))
return 0;
return security_ops->inode_mknod(dir, dentry, mode, dev);
}
EXPORT_SYMBOL(security_inode_mknod);

int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry,
struct inode *new_dir, struct dentry *new_dentry)
Expand All @@ -543,6 +551,7 @@ int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry,
return security_ops->inode_rename(old_dir, old_dentry,
new_dir, new_dentry);
}
EXPORT_SYMBOL(security_inode_rename);

int security_inode_readlink(struct dentry *dentry)
{
Expand Down

0 comments on commit afafae1

Please sign in to comment.