Summary: | problems with changing permissions in the mask entry | ||
---|---|---|---|
Product: | [Unmaintained] kio | Reporter: | urwald <urwald> |
Component: | kfile | Assignee: | Till Adam <adam> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | adam |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
urwald
2006-01-02 10:42:12 UTC
ACL dialog issue. Hello Tim. Can you please try doing the same manipulations in a terminal using the getfacl and setfacl command line tools? I'd be interested to see if those mask changes happen due to policy enforcement of some kind in libacl. The crash, btw, is believed fixed, in the meantime. Not sure if SuSE has it in their updates yet. timi@linux:~> getfacl ./mask.xcf # file: mask.xcf # owner: timi # group: users user::rwx user:test:rwx #effective:--- group::--- mask::--- other::--- timi@linux:~> setfacl -m mask:r-x ./mask.xcf timi@linux:~> getfacl ./mask.xcf # file: mask.xcf # owner: timi # group: users user::rwx user:test:rwx #effective:r-x group::--- mask::r-x other::--- timi@linux:~> ################################################# Here, I've reset the mask to rwx using konqueror. ################################################# timi@linux:~> getfacl ./mask.xcf # file: mask.xcf # owner: timi # group: users user::rwx user:test:rwx group::--- mask::rwx other::--- timi@linux:~> setfacl -m mask:r-x ./mask.xcf timi@linux:~> getfacl ./mask.xcf # file: mask.xcf # owner: timi # group: users user::rwx user:test:rwx #effective:r-x group::--- mask::r-x other::--- timi@linux:~> ################################################# So the described operations work fine with setfacl. Now mask is r-x and this is also showed in konqueror. When I take now off the x (change to r--), then konqueror sets rwx! ################################################# timi@linux:~> getfacl ./mask.xcf # file: mask.xcf # owner: timi # group: users user::rwx user:test:rwx group::--- mask::rwx other::--- timi@linux:~> Well, I'm not a developer, but is it possible that this bug has something to do with the fact, that setfacl recalculates the mask entry by default when mask isn't explicitly given? setfacl set the mask to the union of all entries affected by the mask, so when konqueror writes the acl in 2 steps, first changing the mask entry and second rewriting the named user "test", that would mean that mask takes over the permissions of "test". Don't know if this helps you... Hm, commit hook doesn't seem to be working, so I'm closing manually: SVN commit 498977 by tilladam: Don't re-calculate the maximum possible mask based on named groups and users when there is already a specific one set. Add test case for adding a mask to an ACL which previously didn't have one. Thanks for the nice test case, Tim. |