diff options
author | Jeremy Allison <jra@samba.org> | 2008-10-31 10:51:45 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-10-31 10:51:45 -0700 |
commit | 8344e945742ff343702b9667e26082c560014523 (patch) | |
tree | 1e63530a7e4d96b47abaab0192f1f302b6aefb2e /source3/modules | |
parent | 161cb81911fe8877bfefd8bd3553f0b3166299fb (diff) | |
download | samba-8344e945742ff343702b9667e26082c560014523.tar.gz samba-8344e945742ff343702b9667e26082c560014523.tar.bz2 samba-8344e945742ff343702b9667e26082c560014523.zip |
Unify se_access_check with the S4 code. Will make
calculation of SEC_FLAG_MAXIMUM_ALLOWED much easier
for files.
Jeremy.
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_acl_xattr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/modules/vfs_acl_xattr.c b/source3/modules/vfs_acl_xattr.c index 6932d522d4..ca34e97155 100644 --- a/source3/modules/vfs_acl_xattr.c +++ b/source3/modules/vfs_acl_xattr.c @@ -376,11 +376,11 @@ static int open_acl_xattr(vfs_handle_struct *handle, &pdesc); if (NT_STATUS_IS_OK(status)) { /* See if we can access it. */ - if (!se_access_check(pdesc, + status = se_access_check(pdesc, handle->conn->server_info->ptok, fsp->access_mask, - &access_granted, - &status)) { + &access_granted); + if (!NT_STATUS_IS_OK(status)) { errno = map_errno_from_nt_status(status); return -1; } |