summaryrefslogtreecommitdiff
path: root/source3/lib/util_seaccess.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-08-10 19:51:45 +0000
committerJeremy Allison <jra@samba.org>2000-08-10 19:51:45 +0000
commit1e823bc781fdb0738a58f478432c017732b69068 (patch)
tree2e16ea3c32ecdec25787aaf43b908bf3d08a181f /source3/lib/util_seaccess.c
parent1e46bde597eb77ed708649585d6125f8e82dde31 (diff)
downloadsamba-1e823bc781fdb0738a58f478432c017732b69068.tar.gz
samba-1e823bc781fdb0738a58f478432c017732b69068.tar.bz2
samba-1e823bc781fdb0738a58f478432c017732b69068.zip
Tidied up security rights definitions.
Jeremy. (This used to be commit e466c863f5540e13776f4477b6d58e3fbfe7276d)
Diffstat (limited to 'source3/lib/util_seaccess.c')
-rw-r--r--source3/lib/util_seaccess.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/util_seaccess.c b/source3/lib/util_seaccess.c
index 486db7c8c8..cacdad16fd 100644
--- a/source3/lib/util_seaccess.c
+++ b/source3/lib/util_seaccess.c
@@ -241,16 +241,16 @@ BOOL se_access_check(SEC_DESC *sd, struct current_user *user,
/*
* The owner always has SEC_RIGHTS_WRITE_DAC.
*/
- if (tmp_acc_desired & SEC_RIGHTS_WRITE_DAC)
- tmp_acc_desired &= ~SEC_RIGHTS_WRITE_DAC;
+ if (tmp_acc_desired & WRITE_DAC_ACCESS)
+ tmp_acc_desired &= ~WRITE_DAC_ACCESS;
}
}
}
acl = sd->dacl;
- if (tmp_acc_desired & SEC_RIGHTS_MAXIMUM_ALLOWED) {
- tmp_acc_desired &= ~SEC_RIGHTS_MAXIMUM_ALLOWED;
+ if (tmp_acc_desired & MAXIMUM_ALLOWED_ACCESS) {
+ tmp_acc_desired &= ~MAXIMUM_ALLOWED_ACCESS;
return get_max_access( acl, token, acc_granted, tmp_acc_desired, status);
}