aboutsummaryrefslogtreecommitdiffstats
path: root/fs/posix_acl.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-07-23 03:27:37 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-07-25 14:27:32 -0400
commitedde854e8bb34a7f32fa993d721f1da0faf64165 (patch)
tree90fae3003a748bd0faec4041ca36528073366487 /fs/posix_acl.c
parent826cae2f2b4d726b925f43bc208a571639da4761 (diff)
bury posix_acl_..._masq() variants
made static; no callers left outside of posix_acl.c. posix_acl_clone() also has lost all external callers and became static... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/posix_acl.c')
-rw-r--r--fs/posix_acl.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/fs/posix_acl.c b/fs/posix_acl.c
index 365a0712da6a..0dd0266f9796 100644
--- a/fs/posix_acl.c
+++ b/fs/posix_acl.c
@@ -24,12 +24,9 @@
24 24
25EXPORT_SYMBOL(posix_acl_init); 25EXPORT_SYMBOL(posix_acl_init);
26EXPORT_SYMBOL(posix_acl_alloc); 26EXPORT_SYMBOL(posix_acl_alloc);
27EXPORT_SYMBOL(posix_acl_clone);
28EXPORT_SYMBOL(posix_acl_valid); 27EXPORT_SYMBOL(posix_acl_valid);
29EXPORT_SYMBOL(posix_acl_equiv_mode); 28EXPORT_SYMBOL(posix_acl_equiv_mode);
30EXPORT_SYMBOL(posix_acl_from_mode); 29EXPORT_SYMBOL(posix_acl_from_mode);
31EXPORT_SYMBOL(posix_acl_create_masq);
32EXPORT_SYMBOL(posix_acl_chmod_masq);
33EXPORT_SYMBOL(posix_acl_permission); 30EXPORT_SYMBOL(posix_acl_permission);
34 31
35/* 32/*
@@ -59,7 +56,7 @@ posix_acl_alloc(int count, gfp_t flags)
59/* 56/*
60 * Clone an ACL. 57 * Clone an ACL.
61 */ 58 */
62struct posix_acl * 59static struct posix_acl *
63posix_acl_clone(const struct posix_acl *acl, gfp_t flags) 60posix_acl_clone(const struct posix_acl *acl, gfp_t flags)
64{ 61{
65 struct posix_acl *clone = NULL; 62 struct posix_acl *clone = NULL;
@@ -283,8 +280,7 @@ check_perm:
283 * system calls. All permissions that are not granted by the acl are removed. 280 * system calls. All permissions that are not granted by the acl are removed.
284 * The permissions in the acl are changed to reflect the mode_p parameter. 281 * The permissions in the acl are changed to reflect the mode_p parameter.
285 */ 282 */
286int 283static int posix_acl_create_masq(struct posix_acl *acl, mode_t *mode_p)
287posix_acl_create_masq(struct posix_acl *acl, mode_t *mode_p)
288{ 284{
289 struct posix_acl_entry *pa, *pe; 285 struct posix_acl_entry *pa, *pe;
290 struct posix_acl_entry *group_obj = NULL, *mask_obj = NULL; 286 struct posix_acl_entry *group_obj = NULL, *mask_obj = NULL;
@@ -341,8 +337,7 @@ posix_acl_create_masq(struct posix_acl *acl, mode_t *mode_p)
341/* 337/*
342 * Modify the ACL for the chmod syscall. 338 * Modify the ACL for the chmod syscall.
343 */ 339 */
344int 340static int posix_acl_chmod_masq(struct posix_acl *acl, mode_t mode)
345posix_acl_chmod_masq(struct posix_acl *acl, mode_t mode)
346{ 341{
347 struct posix_acl_entry *group_obj = NULL, *mask_obj = NULL; 342 struct posix_acl_entry *group_obj = NULL, *mask_obj = NULL;
348 struct posix_acl_entry *pa, *pe; 343 struct posix_acl_entry *pa, *pe;