wineserver: Use existing file permissions as base for applying ACLs, change mapping logic

Paul Chitescu paulc at voip.null.ro
Tue Dec 8 13:26:55 CST 2009


Changelog:
	wineserver: Use existing file permissions as base for applying ACLs, change 
mapping logic.

ACLs are applied over existing permissions. An ACCESS_ALLOWED_ACE by itself 
will never reduce permissions.

Group permissions are handled together with user and other to avoid weird 
situations.

Access vs. ownership logic is changed to not cause illogical POSIX 
permissions:
- Allow owner: sets only owner bits (as before)
- Allow world: sets all permissions (as before)
- Deny user: resets permissions for all (wouldn't make sense a ---??????)
- Deny world: resets only group and other permissions, don't touch user
- Null ACL sets rwxrwxrwx not rwx???rwx

This should fix bug #20643 and several other "Access Denied" related bugs.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wineserver_fix_file_acl.patch
Type: text/x-patch
Size: 4429 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20091208/cc5c8e96/attachment.bin>


More information about the wine-patches mailing list