mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
Use canonical mappings for file controls. Fixes W2KSP2 profile problems (I
think....). Jeremy. (This used to be commit 946cf3a0d7685e28af847b958ac01739335ea6e4)
This commit is contained in:
parent
a8f8d81d54
commit
58339ac6cc
@ -1105,6 +1105,16 @@ struct bitmap {
|
||||
FILE_EXECUTE|SYNCHRONIZE_ACCESS)
|
||||
|
||||
/* Mapping of access rights to UNIX perms. */
|
||||
#define UNIX_ACCESS_RWX FILE_GENERIC_ALL
|
||||
#define UNIX_ACCESS_R FILE_GENERIC_READ
|
||||
#define UNIX_ACCESS_W FILE_GENERIC_WRITE
|
||||
#define UNIX_ACCESS_X FILE_GENERIC_EXECUTE
|
||||
|
||||
#if 0
|
||||
/*
|
||||
* This is the old mapping we used to use. To get W2KSP2 profiles
|
||||
* working we need to map to the canonical file perms.
|
||||
*/
|
||||
#define UNIX_ACCESS_RWX (UNIX_ACCESS_R|UNIX_ACCESS_W|UNIX_ACCESS_X)
|
||||
#define UNIX_ACCESS_R (READ_CONTROL_ACCESS|SYNCHRONIZE_ACCESS|\
|
||||
FILE_READ_ATTRIBUTES|FILE_READ_EA|FILE_READ_DATA)
|
||||
@ -1113,6 +1123,7 @@ struct bitmap {
|
||||
FILE_APPEND_DATA|FILE_WRITE_DATA)
|
||||
#define UNIX_ACCESS_X (READ_CONTROL_ACCESS|SYNCHRONIZE_ACCESS|\
|
||||
FILE_EXECUTE|FILE_READ_ATTRIBUTES)
|
||||
#endif
|
||||
|
||||
#define UNIX_ACCESS_NONE (WRITE_OWNER_ACCESS)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user