updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / kernel26rt / aufs2-standalone.patch
blobc945ba15edcd54fa2300fde0403f6ea9dd6a03ca
1 aufs2 standalone patch for linux-2.6.33
3 diff --git a/fs/namei.c b/fs/namei.c
4 index 1d12d37..7cb8e5d 100644
5 --- a/fs/namei.c
6 +++ b/fs/namei.c
7 @@ -349,6 +349,7 @@ int deny_write_access(struct file * file)
9 return 0;
11 +EXPORT_SYMBOL(deny_write_access);
13 /**
14 * path_get - get a reference to a path
15 @@ -1216,6 +1217,7 @@ struct dentry *lookup_hash(struct nameidata *nd)
16 return ERR_PTR(err);
17 return __lookup_hash(&nd->last, nd->path.dentry, nd);
19 +EXPORT_SYMBOL(lookup_hash);
21 int __lookup_one_len(const char *name, struct qstr *this,
22 struct dentry *base, int len)
23 @@ -1238,6 +1240,7 @@ int __lookup_one_len(const char *name, struct qstr *this,
24 this->hash = end_name_hash(hash);
25 return 0;
27 +EXPORT_SYMBOL(__lookup_one_len);
29 /**
30 * lookup_one_len - filesystem helper to lookup single pathname component
31 diff --git a/fs/namespace.c b/fs/namespace.c
32 index c768f73..0fd78c3 100644
33 --- a/fs/namespace.c
34 +++ b/fs/namespace.c
35 @@ -39,6 +39,7 @@
37 /* spinlock for vfsmount related operations, inplace of dcache_lock */
38 __cacheline_aligned_in_smp DEFINE_SPINLOCK(vfsmount_lock);
39 +EXPORT_SYMBOL(vfsmount_lock);
41 static int event;
42 static DEFINE_IDA(mnt_id_ida);
43 diff --git a/fs/notify/group.c b/fs/notify/group.c
44 index 0e16771..3fab10a 100644
45 --- a/fs/notify/group.c
46 +++ b/fs/notify/group.c
47 @@ -22,6 +22,7 @@
48 #include <linux/srcu.h>
49 #include <linux/rculist.h>
50 #include <linux/wait.h>
51 +#include <linux/module.h>
53 #include <linux/fsnotify_backend.h>
54 #include "fsnotify.h"
55 @@ -169,6 +170,7 @@ void fsnotify_put_group(struct fsnotify_group *group)
56 fsnotify_recalc_global_mask();
57 fsnotify_destroy_group(group);
59 +EXPORT_SYMBOL(fsnotify_put_group);
62 * Simply run the fsnotify_groups list and find a group which matches
63 @@ -252,3 +254,4 @@ struct fsnotify_group *fsnotify_obtain_group(unsigned int group_num, __u32 mask,
65 return group;
67 +EXPORT_SYMBOL(fsnotify_obtain_group);
68 diff --git a/fs/notify/inode_mark.c b/fs/notify/inode_mark.c
69 index 3165d85..4586162 100644
70 --- a/fs/notify/inode_mark.c
71 +++ b/fs/notify/inode_mark.c
72 @@ -106,6 +106,7 @@ void fsnotify_put_mark(struct fsnotify_mark_entry *entry)
73 if (atomic_dec_and_test(&entry->refcnt))
74 entry->free_mark(entry);
76 +EXPORT_SYMBOL(fsnotify_put_mark);
79 * Recalculate the mask of events relevant to a given inode locked.
80 @@ -216,6 +217,7 @@ void fsnotify_destroy_mark_by_entry(struct fsnotify_mark_entry *entry)
81 if (unlikely(atomic_dec_and_test(&group->num_marks)))
82 fsnotify_final_destroy_group(group);
84 +EXPORT_SYMBOL(fsnotify_destroy_mark_by_entry);
87 * Given a group, destroy all of the marks associated with that group.
88 @@ -282,6 +284,7 @@ struct fsnotify_mark_entry *fsnotify_find_mark_entry(struct fsnotify_group *grou
90 return NULL;
92 +EXPORT_SYMBOL(fsnotify_find_mark_entry);
95 * Nothing fancy, just initialize lists and locks and counters.
96 @@ -298,6 +301,7 @@ void fsnotify_init_mark(struct fsnotify_mark_entry *entry,
97 entry->inode = NULL;
98 entry->free_mark = free_mark;
100 +EXPORT_SYMBOL(fsnotify_init_mark);
103 * Attach an initialized mark entry to a given group and inode.
104 @@ -353,6 +357,7 @@ int fsnotify_add_mark(struct fsnotify_mark_entry *entry,
106 return ret;
108 +EXPORT_SYMBOL(fsnotify_add_mark);
111 * fsnotify_unmount_inodes - an sb is unmounting. handle any watched inodes.
112 diff --git a/fs/open.c b/fs/open.c
113 index 040cef7..453b782 100644
114 --- a/fs/open.c
115 +++ b/fs/open.c
116 @@ -226,6 +226,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
117 mutex_unlock(&dentry->d_inode->i_mutex);
118 return ret;
120 +EXPORT_SYMBOL(do_truncate);
122 static long do_sys_truncate(const char __user *pathname, loff_t length)
124 diff --git a/fs/splice.c b/fs/splice.c
125 index b13a9a2..3931ee0 100644
126 --- a/fs/splice.c
127 +++ b/fs/splice.c
128 @@ -1077,6 +1077,7 @@ long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
130 return splice_write(pipe, out, ppos, len, flags);
132 +EXPORT_SYMBOL(do_splice_from);
135 * Attempt to initiate a splice from a file to a pipe.
136 @@ -1103,6 +1104,7 @@ long do_splice_to(struct file *in, loff_t *ppos,
138 return splice_read(in, ppos, pipe, len, flags);
140 +EXPORT_SYMBOL(do_splice_to);
143 * splice_direct_to_actor - splices data directly between two non-pipes
144 diff --git a/security/commoncap.c b/security/commoncap.c
145 index f800fdb..ea457bc 100644
146 --- a/security/commoncap.c
147 +++ b/security/commoncap.c
148 @@ -946,3 +946,4 @@ int cap_file_mmap(struct file *file, unsigned long reqprot,
150 return ret;
152 +EXPORT_SYMBOL(cap_file_mmap);
153 diff --git a/security/device_cgroup.c b/security/device_cgroup.c
154 index 6cf8fd2..008e0d8 100644
155 --- a/security/device_cgroup.c
156 +++ b/security/device_cgroup.c
157 @@ -514,6 +514,7 @@ found:
159 return -EPERM;
161 +EXPORT_SYMBOL(devcgroup_inode_permission);
163 int devcgroup_inode_mknod(int mode, dev_t dev)
165 diff --git a/security/security.c b/security/security.c
166 index 122b748..a4a3d99 100644
167 --- a/security/security.c
168 +++ b/security/security.c
169 @@ -404,6 +404,7 @@ int security_path_mkdir(struct path *path, struct dentry *dentry, int mode)
170 return 0;
171 return security_ops->path_mkdir(path, dentry, mode);
173 +EXPORT_SYMBOL(security_path_mkdir);
175 int security_path_rmdir(struct path *path, struct dentry *dentry)
177 @@ -411,6 +412,7 @@ int security_path_rmdir(struct path *path, struct dentry *dentry)
178 return 0;
179 return security_ops->path_rmdir(path, dentry);
181 +EXPORT_SYMBOL(security_path_rmdir);
183 int security_path_unlink(struct path *path, struct dentry *dentry)
185 @@ -418,6 +420,7 @@ int security_path_unlink(struct path *path, struct dentry *dentry)
186 return 0;
187 return security_ops->path_unlink(path, dentry);
189 +EXPORT_SYMBOL(security_path_unlink);
191 int security_path_symlink(struct path *path, struct dentry *dentry,
192 const char *old_name)
193 @@ -426,6 +429,7 @@ int security_path_symlink(struct path *path, struct dentry *dentry,
194 return 0;
195 return security_ops->path_symlink(path, dentry, old_name);
197 +EXPORT_SYMBOL(security_path_symlink);
199 int security_path_link(struct dentry *old_dentry, struct path *new_dir,
200 struct dentry *new_dentry)
201 @@ -434,6 +438,7 @@ int security_path_link(struct dentry *old_dentry, struct path *new_dir,
202 return 0;
203 return security_ops->path_link(old_dentry, new_dir, new_dentry);
205 +EXPORT_SYMBOL(security_path_link);
207 int security_path_rename(struct path *old_dir, struct dentry *old_dentry,
208 struct path *new_dir, struct dentry *new_dentry)
209 @@ -444,6 +449,7 @@ int security_path_rename(struct path *old_dir, struct dentry *old_dentry,
210 return security_ops->path_rename(old_dir, old_dentry, new_dir,
211 new_dentry);
213 +EXPORT_SYMBOL(security_path_rename);
215 int security_path_truncate(struct path *path, loff_t length,
216 unsigned int time_attrs)
217 @@ -452,6 +458,7 @@ int security_path_truncate(struct path *path, loff_t length,
218 return 0;
219 return security_ops->path_truncate(path, length, time_attrs);
221 +EXPORT_SYMBOL(security_path_truncate);
223 int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
224 mode_t mode)
225 @@ -460,6 +467,7 @@ int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
226 return 0;
227 return security_ops->path_chmod(dentry, mnt, mode);
229 +EXPORT_SYMBOL(security_path_chmod);
231 int security_path_chown(struct path *path, uid_t uid, gid_t gid)
233 @@ -467,6 +475,7 @@ int security_path_chown(struct path *path, uid_t uid, gid_t gid)
234 return 0;
235 return security_ops->path_chown(path, uid, gid);
237 +EXPORT_SYMBOL(security_path_chown);
239 int security_path_chroot(struct path *path)
241 @@ -543,6 +552,7 @@ int security_inode_readlink(struct dentry *dentry)
242 return 0;
243 return security_ops->inode_readlink(dentry);
245 +EXPORT_SYMBOL(security_inode_readlink);
247 int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd)
249 @@ -557,6 +567,7 @@ int security_inode_permission(struct inode *inode, int mask)
250 return 0;
251 return security_ops->inode_permission(inode, mask);
253 +EXPORT_SYMBOL(security_inode_permission);
255 int security_inode_setattr(struct dentry *dentry, struct iattr *attr)
257 @@ -657,6 +668,7 @@ int security_file_permission(struct file *file, int mask)
259 return security_ops->file_permission(file, mask);
261 +EXPORT_SYMBOL(security_file_permission);
263 int security_file_alloc(struct file *file)
265 @@ -684,6 +696,7 @@ int security_file_mmap(struct file *file, unsigned long reqprot,
266 return ret;
267 return ima_file_mmap(file, prot);
269 +EXPORT_SYMBOL(security_file_mmap);
271 int security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot,
272 unsigned long prot)