diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-02-04 15:26:22 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-02-04 15:26:22 +0000 |
commit | 29e22d07d6f0146bd59b65418cd248a19f1e477a (patch) | |
tree | 285749fa7ef9a47196921200e6f88b49d9c8e4e6 /winsup/cygwin/security.cc | |
parent | 0462e8847a75ffbc6b9b8d7585ad5f58b7d5fbe3 (diff) | |
download | cygnal-29e22d07d6f0146bd59b65418cd248a19f1e477a.tar.gz cygnal-29e22d07d6f0146bd59b65418cd248a19f1e477a.tar.bz2 cygnal-29e22d07d6f0146bd59b65418cd248a19f1e477a.zip |
* security.cc (alloc_sd): Disable generating default permission entries
for directories.
Diffstat (limited to 'winsup/cygwin/security.cc')
-rw-r--r-- | winsup/cygwin/security.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index 66dc93c98..c9de92b0a 100644 --- a/winsup/cygwin/security.cc +++ b/winsup/cygwin/security.cc @@ -608,6 +608,12 @@ alloc_sd (path_conv &pc, __uid32_t uid, __gid32_t gid, int attribute, acl_len += ace->Header.AceSize; } +#if 0 + /* CV 2009-02-04: Setting these inherit attributes for new dirs never was + really POSIX-like but rather a concession for native Win32 processes. + Disabled for now. Let's test if that has really a visible negative + impact. */ + /* Construct appropriate inherit attribute for new directories */ if (S_ISDIR (attribute) && !acl_exists) { @@ -647,6 +653,7 @@ alloc_sd (path_conv &pc, __uid32_t uid, __gid32_t gid, int attribute, well_known_world_sid, acl_len, inherit)) return NULL; } +#endif /* Set AclSize to computed value. */ acl->AclSize = acl_len; |