rev |
line source |
pankso@12285
|
1 aufs2.1 standalone patch for linux-2.6.
|
gokhlayeh@8761
|
2
|
gokhlayeh@8761
|
3 diff --git a/fs/file_table.c b/fs/file_table.c
|
pankso@12285
|
4 index 01e4c1e..0e800e2 100644
|
gokhlayeh@8761
|
5 --- a/fs/file_table.c
|
gokhlayeh@8761
|
6 +++ b/fs/file_table.c
|
pankso@12285
|
7 @@ -443,6 +443,8 @@ void file_sb_list_del(struct file *file)
|
gokhlayeh@8761
|
8 }
|
gokhlayeh@8761
|
9 }
|
gokhlayeh@8761
|
10
|
gokhlayeh@8761
|
11 +EXPORT_SYMBOL(file_sb_list_del);
|
gokhlayeh@8761
|
12 +
|
gokhlayeh@8761
|
13 #ifdef CONFIG_SMP
|
gokhlayeh@8761
|
14
|
gokhlayeh@8761
|
15 /*
|
gokhlayeh@8761
|
16 diff --git a/fs/inode.c b/fs/inode.c
|
pankso@12285
|
17 index 43566d1..4291eae 100644
|
gokhlayeh@8761
|
18 --- a/fs/inode.c
|
gokhlayeh@8761
|
19 +++ b/fs/inode.c
|
pankso@12285
|
20 @@ -69,6 +69,7 @@ static DEFINE_SPINLOCK(inode_lru_lock);
|
pankso@12285
|
21
|
pankso@12285
|
22 __cacheline_aligned_in_smp DEFINE_SPINLOCK(inode_sb_list_lock);
|
pankso@12285
|
23 __cacheline_aligned_in_smp DEFINE_SPINLOCK(inode_wb_list_lock);
|
pankso@12285
|
24 +EXPORT_SYMBOL(inode_sb_list_lock);
|
gokhlayeh@8761
|
25
|
gokhlayeh@8761
|
26 /*
|
pankso@12285
|
27 * iprune_sem provides exclusion between the icache shrinking and the
|
gokhlayeh@8761
|
28 diff --git a/fs/namei.c b/fs/namei.c
|
pankso@12285
|
29 index 95978ec..f86d670 100644
|
gokhlayeh@8761
|
30 --- a/fs/namei.c
|
gokhlayeh@8761
|
31 +++ b/fs/namei.c
|
pankso@12285
|
32 @@ -365,6 +365,7 @@ int deny_write_access(struct file * file)
|
gokhlayeh@8761
|
33
|
gokhlayeh@8761
|
34 return 0;
|
gokhlayeh@8761
|
35 }
|
gokhlayeh@8761
|
36 +EXPORT_SYMBOL(deny_write_access);
|
gokhlayeh@8761
|
37
|
gokhlayeh@8761
|
38 /**
|
gokhlayeh@8761
|
39 * path_get - get a reference to a path
|
pankso@12285
|
40 @@ -1696,6 +1697,7 @@ struct dentry *lookup_hash(struct nameidata *nd)
|
gokhlayeh@8761
|
41 {
|
gokhlayeh@8761
|
42 return __lookup_hash(&nd->last, nd->path.dentry, nd);
|
gokhlayeh@8761
|
43 }
|
gokhlayeh@8761
|
44 +EXPORT_SYMBOL(lookup_hash);
|
gokhlayeh@8761
|
45
|
gokhlayeh@8761
|
46 /**
|
gokhlayeh@8761
|
47 * lookup_one_len - filesystem helper to lookup single pathname component
|
gokhlayeh@8761
|
48 diff --git a/fs/namespace.c b/fs/namespace.c
|
pankso@12285
|
49 index fe59bd1..7d3843f 100644
|
gokhlayeh@8761
|
50 --- a/fs/namespace.c
|
gokhlayeh@8761
|
51 +++ b/fs/namespace.c
|
pankso@12285
|
52 @@ -1508,6 +1508,7 @@ int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg,
|
gokhlayeh@8761
|
53 }
|
gokhlayeh@8761
|
54 return 0;
|
gokhlayeh@8761
|
55 }
|
gokhlayeh@8761
|
56 +EXPORT_SYMBOL(iterate_mounts);
|
gokhlayeh@8761
|
57
|
gokhlayeh@8761
|
58 static void cleanup_group_ids(struct vfsmount *mnt, struct vfsmount *end)
|
gokhlayeh@8761
|
59 {
|
gokhlayeh@8761
|
60 diff --git a/fs/notify/group.c b/fs/notify/group.c
|
gokhlayeh@8761
|
61 index d309f38..f0e9568 100644
|
gokhlayeh@8761
|
62 --- a/fs/notify/group.c
|
gokhlayeh@8761
|
63 +++ b/fs/notify/group.c
|
gokhlayeh@8761
|
64 @@ -22,6 +22,7 @@
|
gokhlayeh@8761
|
65 #include <linux/srcu.h>
|
gokhlayeh@8761
|
66 #include <linux/rculist.h>
|
gokhlayeh@8761
|
67 #include <linux/wait.h>
|
gokhlayeh@8761
|
68 +#include <linux/module.h>
|
gokhlayeh@8761
|
69
|
gokhlayeh@8761
|
70 #include <linux/fsnotify_backend.h>
|
gokhlayeh@8761
|
71 #include "fsnotify.h"
|
gokhlayeh@8761
|
72 @@ -70,6 +71,7 @@ void fsnotify_put_group(struct fsnotify_group *group)
|
gokhlayeh@8761
|
73 if (atomic_dec_and_test(&group->refcnt))
|
gokhlayeh@8761
|
74 fsnotify_destroy_group(group);
|
gokhlayeh@8761
|
75 }
|
gokhlayeh@8761
|
76 +EXPORT_SYMBOL(fsnotify_put_group);
|
gokhlayeh@8761
|
77
|
gokhlayeh@8761
|
78 /*
|
gokhlayeh@8761
|
79 * Create a new fsnotify_group and hold a reference for the group returned.
|
gokhlayeh@8761
|
80 @@ -102,3 +104,4 @@ struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops)
|
gokhlayeh@8761
|
81
|
gokhlayeh@8761
|
82 return group;
|
gokhlayeh@8761
|
83 }
|
gokhlayeh@8761
|
84 +EXPORT_SYMBOL(fsnotify_alloc_group);
|
gokhlayeh@8761
|
85 diff --git a/fs/notify/mark.c b/fs/notify/mark.c
|
pankso@12285
|
86 index 252ab1f..2199b9b 100644
|
gokhlayeh@8761
|
87 --- a/fs/notify/mark.c
|
gokhlayeh@8761
|
88 +++ b/fs/notify/mark.c
|
pankso@12285
|
89 @@ -112,6 +112,7 @@ void fsnotify_put_mark(struct fsnotify_mark *mark)
|
gokhlayeh@8761
|
90 if (atomic_dec_and_test(&mark->refcnt))
|
gokhlayeh@8761
|
91 mark->free_mark(mark);
|
gokhlayeh@8761
|
92 }
|
gokhlayeh@8761
|
93 +EXPORT_SYMBOL(fsnotify_put_mark);
|
gokhlayeh@8761
|
94
|
gokhlayeh@8761
|
95 /*
|
gokhlayeh@8761
|
96 * Any time a mark is getting freed we end up here.
|
pankso@12285
|
97 @@ -189,6 +190,7 @@ void fsnotify_destroy_mark(struct fsnotify_mark *mark)
|
gokhlayeh@8761
|
98 if (unlikely(atomic_dec_and_test(&group->num_marks)))
|
gokhlayeh@8761
|
99 fsnotify_final_destroy_group(group);
|
gokhlayeh@8761
|
100 }
|
gokhlayeh@8761
|
101 +EXPORT_SYMBOL(fsnotify_destroy_mark);
|
gokhlayeh@8761
|
102
|
gokhlayeh@8761
|
103 void fsnotify_set_mark_mask_locked(struct fsnotify_mark *mark, __u32 mask)
|
gokhlayeh@8761
|
104 {
|
pankso@12285
|
105 @@ -276,6 +278,7 @@ err:
|
gokhlayeh@8761
|
106
|
gokhlayeh@8761
|
107 return ret;
|
gokhlayeh@8761
|
108 }
|
gokhlayeh@8761
|
109 +EXPORT_SYMBOL(fsnotify_add_mark);
|
gokhlayeh@8761
|
110
|
gokhlayeh@8761
|
111 /*
|
gokhlayeh@8761
|
112 * clear any marks in a group in which mark->flags & flags is true
|
pankso@12285
|
113 @@ -331,6 +334,7 @@ void fsnotify_init_mark(struct fsnotify_mark *mark,
|
gokhlayeh@8761
|
114 atomic_set(&mark->refcnt, 1);
|
gokhlayeh@8761
|
115 mark->free_mark = free_mark;
|
gokhlayeh@8761
|
116 }
|
gokhlayeh@8761
|
117 +EXPORT_SYMBOL(fsnotify_init_mark);
|
gokhlayeh@8761
|
118
|
gokhlayeh@8761
|
119 static int fsnotify_mark_destroy(void *ignored)
|
gokhlayeh@8761
|
120 {
|
gokhlayeh@8761
|
121 diff --git a/fs/open.c b/fs/open.c
|
pankso@12285
|
122 index b52cf01..c1b341c 100644
|
gokhlayeh@8761
|
123 --- a/fs/open.c
|
gokhlayeh@8761
|
124 +++ b/fs/open.c
|
gokhlayeh@8761
|
125 @@ -60,6 +60,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
|
gokhlayeh@8761
|
126 mutex_unlock(&dentry->d_inode->i_mutex);
|
gokhlayeh@8761
|
127 return ret;
|
gokhlayeh@8761
|
128 }
|
gokhlayeh@8761
|
129 +EXPORT_SYMBOL(do_truncate);
|
gokhlayeh@8761
|
130
|
gokhlayeh@8761
|
131 static long do_sys_truncate(const char __user *pathname, loff_t length)
|
gokhlayeh@8761
|
132 {
|
gokhlayeh@8761
|
133 diff --git a/fs/splice.c b/fs/splice.c
|
pankso@12285
|
134 index 19afec6..11f07f8 100644
|
gokhlayeh@8761
|
135 --- a/fs/splice.c
|
gokhlayeh@8761
|
136 +++ b/fs/splice.c
|
pankso@12285
|
137 @@ -1109,6 +1109,7 @@ long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
|
gokhlayeh@8761
|
138
|
gokhlayeh@8761
|
139 return splice_write(pipe, out, ppos, len, flags);
|
gokhlayeh@8761
|
140 }
|
gokhlayeh@8761
|
141 +EXPORT_SYMBOL(do_splice_from);
|
gokhlayeh@8761
|
142
|
gokhlayeh@8761
|
143 /*
|
gokhlayeh@8761
|
144 * Attempt to initiate a splice from a file to a pipe.
|
pankso@12285
|
145 @@ -1135,6 +1136,7 @@ long do_splice_to(struct file *in, loff_t *ppos,
|
gokhlayeh@8761
|
146
|
gokhlayeh@8761
|
147 return splice_read(in, ppos, pipe, len, flags);
|
gokhlayeh@8761
|
148 }
|
gokhlayeh@8761
|
149 +EXPORT_SYMBOL(do_splice_to);
|
gokhlayeh@8761
|
150
|
gokhlayeh@8761
|
151 /**
|
gokhlayeh@8761
|
152 * splice_direct_to_actor - splices data directly between two non-pipes
|
gokhlayeh@8761
|
153 diff --git a/security/commoncap.c b/security/commoncap.c
|
pankso@12285
|
154 index a93b3b7..024282c 100644
|
gokhlayeh@8761
|
155 --- a/security/commoncap.c
|
gokhlayeh@8761
|
156 +++ b/security/commoncap.c
|
pankso@12285
|
157 @@ -971,3 +971,4 @@ int cap_file_mmap(struct file *file, unsigned long reqprot,
|
gokhlayeh@8761
|
158 }
|
gokhlayeh@8761
|
159 return ret;
|
gokhlayeh@8761
|
160 }
|
gokhlayeh@8761
|
161 +EXPORT_SYMBOL(cap_file_mmap);
|
gokhlayeh@8761
|
162 diff --git a/security/device_cgroup.c b/security/device_cgroup.c
|
pankso@12285
|
163 index 1be6826..215278c 100644
|
gokhlayeh@8761
|
164 --- a/security/device_cgroup.c
|
gokhlayeh@8761
|
165 +++ b/security/device_cgroup.c
|
pankso@12285
|
166 @@ -508,6 +508,7 @@ found:
|
gokhlayeh@8761
|
167
|
gokhlayeh@8761
|
168 return -EPERM;
|
gokhlayeh@8761
|
169 }
|
pankso@12285
|
170 +EXPORT_SYMBOL(__devcgroup_inode_permission);
|
gokhlayeh@8761
|
171
|
gokhlayeh@8761
|
172 int devcgroup_inode_mknod(int mode, dev_t dev)
|
gokhlayeh@8761
|
173 {
|
gokhlayeh@8761
|
174 diff --git a/security/security.c b/security/security.c
|
pankso@12285
|
175 index 4ba6d4c..9f64bb8 100644
|
gokhlayeh@8761
|
176 --- a/security/security.c
|
gokhlayeh@8761
|
177 +++ b/security/security.c
|
pankso@12285
|
178 @@ -373,6 +373,7 @@ int security_path_rmdir(struct path *dir, struct dentry *dentry)
|
gokhlayeh@8761
|
179 return 0;
|
gokhlayeh@8761
|
180 return security_ops->path_rmdir(dir, dentry);
|
gokhlayeh@8761
|
181 }
|
gokhlayeh@8761
|
182 +EXPORT_SYMBOL(security_path_rmdir);
|
gokhlayeh@8761
|
183
|
gokhlayeh@8761
|
184 int security_path_unlink(struct path *dir, struct dentry *dentry)
|
gokhlayeh@8761
|
185 {
|
pankso@12285
|
186 @@ -389,6 +390,7 @@ int security_path_symlink(struct path *dir, struct dentry *dentry,
|
gokhlayeh@8761
|
187 return 0;
|
gokhlayeh@8761
|
188 return security_ops->path_symlink(dir, dentry, old_name);
|
gokhlayeh@8761
|
189 }
|
gokhlayeh@8761
|
190 +EXPORT_SYMBOL(security_path_symlink);
|
gokhlayeh@8761
|
191
|
gokhlayeh@8761
|
192 int security_path_link(struct dentry *old_dentry, struct path *new_dir,
|
gokhlayeh@8761
|
193 struct dentry *new_dentry)
|
pankso@12285
|
194 @@ -397,6 +399,7 @@ int security_path_link(struct dentry *old_dentry, struct path *new_dir,
|
gokhlayeh@8761
|
195 return 0;
|
gokhlayeh@8761
|
196 return security_ops->path_link(old_dentry, new_dir, new_dentry);
|
gokhlayeh@8761
|
197 }
|
gokhlayeh@8761
|
198 +EXPORT_SYMBOL(security_path_link);
|
gokhlayeh@8761
|
199
|
gokhlayeh@8761
|
200 int security_path_rename(struct path *old_dir, struct dentry *old_dentry,
|
gokhlayeh@8761
|
201 struct path *new_dir, struct dentry *new_dentry)
|
pankso@12285
|
202 @@ -415,6 +418,7 @@ int security_path_truncate(struct path *path)
|
gokhlayeh@8761
|
203 return 0;
|
gokhlayeh@8761
|
204 return security_ops->path_truncate(path);
|
gokhlayeh@8761
|
205 }
|
gokhlayeh@8761
|
206 +EXPORT_SYMBOL(security_path_truncate);
|
gokhlayeh@8761
|
207
|
gokhlayeh@8761
|
208 int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
|
gokhlayeh@8761
|
209 mode_t mode)
|
pankso@12285
|
210 @@ -423,6 +427,7 @@ int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
|
gokhlayeh@8761
|
211 return 0;
|
gokhlayeh@8761
|
212 return security_ops->path_chmod(dentry, mnt, mode);
|
gokhlayeh@8761
|
213 }
|
gokhlayeh@8761
|
214 +EXPORT_SYMBOL(security_path_chmod);
|
gokhlayeh@8761
|
215
|
gokhlayeh@8761
|
216 int security_path_chown(struct path *path, uid_t uid, gid_t gid)
|
gokhlayeh@8761
|
217 {
|
pankso@12285
|
218 @@ -430,6 +435,7 @@ int security_path_chown(struct path *path, uid_t uid, gid_t gid)
|
gokhlayeh@8761
|
219 return 0;
|
gokhlayeh@8761
|
220 return security_ops->path_chown(path, uid, gid);
|
gokhlayeh@8761
|
221 }
|
gokhlayeh@8761
|
222 +EXPORT_SYMBOL(security_path_chown);
|
gokhlayeh@8761
|
223
|
gokhlayeh@8761
|
224 int security_path_chroot(struct path *path)
|
gokhlayeh@8761
|
225 {
|
pankso@12285
|
226 @@ -506,6 +512,7 @@ int security_inode_readlink(struct dentry *dentry)
|
gokhlayeh@8761
|
227 return 0;
|
gokhlayeh@8761
|
228 return security_ops->inode_readlink(dentry);
|
gokhlayeh@8761
|
229 }
|
gokhlayeh@8761
|
230 +EXPORT_SYMBOL(security_inode_readlink);
|
gokhlayeh@8761
|
231
|
gokhlayeh@8761
|
232 int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd)
|
gokhlayeh@8761
|
233 {
|
pankso@12285
|
234 @@ -520,6 +527,7 @@ int security_inode_permission(struct inode *inode, int mask)
|
gokhlayeh@8761
|
235 return 0;
|
pankso@12285
|
236 return security_ops->inode_permission(inode, mask, 0);
|
gokhlayeh@8761
|
237 }
|
gokhlayeh@8761
|
238 +EXPORT_SYMBOL(security_inode_permission);
|
gokhlayeh@8761
|
239
|
pankso@12285
|
240 int security_inode_exec_permission(struct inode *inode, unsigned int flags)
|
gokhlayeh@8761
|
241 {
|
pankso@12285
|
242 @@ -626,6 +634,7 @@ int security_file_permission(struct file *file, int mask)
|
gokhlayeh@8761
|
243
|
gokhlayeh@8761
|
244 return fsnotify_perm(file, mask);
|
gokhlayeh@8761
|
245 }
|
gokhlayeh@8761
|
246 +EXPORT_SYMBOL(security_file_permission);
|
gokhlayeh@8761
|
247
|
gokhlayeh@8761
|
248 int security_file_alloc(struct file *file)
|
gokhlayeh@8761
|
249 {
|
pankso@12285
|
250 @@ -653,6 +662,7 @@ int security_file_mmap(struct file *file, unsigned long reqprot,
|
gokhlayeh@8761
|
251 return ret;
|
gokhlayeh@8761
|
252 return ima_file_mmap(file, prot);
|
gokhlayeh@8761
|
253 }
|
gokhlayeh@8761
|
254 +EXPORT_SYMBOL(security_file_mmap);
|
gokhlayeh@8761
|
255
|
gokhlayeh@8761
|
256 int security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot,
|
gokhlayeh@8761
|
257 unsigned long prot)
|