diff options
author | Christof Schmitt <cs@samba.org> | 2015-04-24 08:51:32 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-04-25 00:04:23 +0200 |
commit | 9e1ebdc7ec3b0a7c49d8b7469c0d07486f797a74 (patch) | |
tree | 33a2367a3bdbb210838bc748fb72d906bf81325a /source3/utils/smbcacls.c | |
parent | d0c496958192bef7446c760df689f1fecb28cb71 (diff) | |
download | samba-9e1ebdc7ec3b0a7c49d8b7469c0d07486f797a74.tar.gz |
smbcacls: Use defines for security flags
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11237
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/utils/smbcacls.c')
-rw-r--r-- | source3/utils/smbcacls.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 742b8220474..f3e0eb52126 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -54,19 +54,20 @@ struct perm_value { /* These values discovered by inspection */ static const struct perm_value special_values[] = { - { "R", 0x00120089 }, - { "W", 0x00120116 }, - { "X", 0x001200a0 }, - { "D", 0x00010000 }, - { "P", 0x00040000 }, - { "O", 0x00080000 }, + { "R", SEC_RIGHTS_FILE_READ }, + { "W", SEC_RIGHTS_FILE_WRITE }, + { "X", SEC_RIGHTS_FILE_EXECUTE }, + { "D", SEC_STD_DELETE }, + { "P", SEC_STD_WRITE_DAC }, + { "O", SEC_STD_WRITE_OWNER }, { NULL, 0 }, }; static const struct perm_value standard_values[] = { - { "READ", 0x001200a9 }, - { "CHANGE", 0x001301bf }, - { "FULL", 0x001f01ff }, + { "READ", SEC_RIGHTS_DIR_READ|SEC_DIR_TRAVERSE }, + { "CHANGE", SEC_RIGHTS_DIR_READ|SEC_STD_DELETE|\ + SEC_RIGHTS_DIR_WRITE|SEC_DIR_TRAVERSE }, + { "FULL", SEC_RIGHTS_DIR_ALL }, { NULL, 0 }, }; |