forked from libuv/libuv
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win,fs: Add more complete
fs__chmod()
implementation
This implementation of `fs__chmod()` maps the familiar `owner`, `group`, `other` triplet of permissions within a POSIX `mode` parameter to ACL entries involving the current user, the current user's primary group as well as any groups the user may belong to that already have ACL entries within the given file object, and the `Everyone` group. We create new ACL entries explicitly allowing and denying the relevant permissions for each of these security entities, and apply the new ACL to the given file object. The `chmod()` method continues to set the readonly bit upon the given file when no write permissions are specified for any user.
- Loading branch information
1 parent
1dcf324
commit 794bfdf
Showing
1 changed file
with
307 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters