lkml.org 
[lkml]   [2007]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 34/52] CRED: Make Ext3 ACL set handlers pass credentials down
Date
Make Ext3 ACL set handlers pass credentials down to lower functions.

Signed-off-by: David Howells <dhowells@redhat.com>
---

fs/ext3/acl.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/fs/ext3/acl.c b/fs/ext3/acl.c
index 1db810a..239efa9 100644
--- a/fs/ext3/acl.c
+++ b/fs/ext3/acl.c
@@ -483,9 +483,8 @@ ext3_xattr_get_acl_default(struct inode *inode, const char *name,

static int
ext3_xattr_set_acl(struct inode *inode, int type, const void *value,
- size_t size)
+ size_t size, struct cred *cred)
{
- struct cred *cred = current->cred;
handle_t *handle;
struct posix_acl *acl;
int error, retries = 0;
@@ -526,18 +525,20 @@ static int
ext3_xattr_set_acl_access(struct inode *inode, const char *name,
const void *value, size_t size, int flags)
{
+ struct cred *cred = current->cred;
if (strcmp(name, "") != 0)
return -EINVAL;
- return ext3_xattr_set_acl(inode, ACL_TYPE_ACCESS, value, size);
+ return ext3_xattr_set_acl(inode, ACL_TYPE_ACCESS, value, size, cred);
}

static int
ext3_xattr_set_acl_default(struct inode *inode, const char *name,
const void *value, size_t size, int flags)
{
+ struct cred *cred = current->cred;
if (strcmp(name, "") != 0)
return -EINVAL;
- return ext3_xattr_set_acl(inode, ACL_TYPE_DEFAULT, value, size);
+ return ext3_xattr_set_acl(inode, ACL_TYPE_DEFAULT, value, size, cred);
}

struct xattr_handler ext3_xattr_acl_access_handler = {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-10-12 18:27    [W:0.154 / U:2.968 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site