After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 301982 - Should not rely on file mode to know read/write permissions
Should not rely on file mode to know read/write permissions
Status: RESOLVED DUPLICATE of bug 40990
Product: nautilus
Classification: Core
Component: File and Folder Operations
2.8.x
Other Linux
: Normal major
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-04-25 22:14 UTC by Ilya Konstantinov
Modified: 2005-04-25 22:31 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8



Description Ilya Konstantinov 2005-04-25 22:14:12 UTC
Currently, Nautilus tries to calculate the permissions a user will have on the
file, probably by matching the file's mode mask and uid/gid with the current
user. Instead, Nautilus should use access(2), since it takes into account other
factors which may give the user a permission, such as ACLs.
Currently, when an ACL allows the user to modify the directory, Nautilus will
still grey-out and disable the relevant options (e.g. Rename option).
Comment 1 Olav Vitters 2005-04-25 22:22:41 UTC
Thanks for the bug report. This particular bug has already been reported into
our bug tracking system, but please feel free to report any further bugs you find.

ACL support is bug 62817

*** This bug has been marked as a duplicate of 40990 ***
Comment 2 Ilya Konstantinov 2005-04-25 22:30:07 UTC
Bug 62817 says "It would be nice if Nautilus provided some mechanism for viewing
and editing ACLs."

I'm not talking about giving any UI for ACLs or refering to them in any way. The
filesystem might have other methods to give or take access, such as SELinxu or
Linux Trustees. I'm merely saying we should rely on standard access(2) syscall
rather than mode calculations.
Comment 3 Ilya Konstantinov 2005-04-25 22:31:33 UTC
Oh, sorry, didn't notice the bug you duped it to. Thanks and sorry.