udisks icon indicating copy to clipboard operation
udisks copied to clipboard

Adding WRITE ACL to /run/media/$USER

Open JP-Ellis opened this issue 4 years ago • 3 comments

As the title suggests, I was wondering whether it would be worth adding the WRITE permission for the relevant user for /run/media/$USER.

The reason behind this is that I was creating a user systemd.automount for a remote filesystem and inside /run/media/$USER seemed like a natural spot for the mount point, but given the user does not have write access, systemd failed. The other option would be within $XDG_RUNTIME_DIR, but given the UID can change, the result is a path which can change which seems incompatible with the way systemd mounts work.

JP-Ellis avatar Dec 16 '20 04:12 JP-Ellis

Reference: udiskslinuxfilesystem.c:add_acl() https://github.com/storaged-project/udisks/blob/master/src/udiskslinuxfilesystem.c#L492

tbzatek avatar Jan 13 '21 14:01 tbzatek

Would you like me to create a PR?

JP-Ellis avatar Jan 14 '21 00:01 JP-Ellis

Would you like me to create a PR?

Yes please, we're free to experiment now.

tbzatek avatar Feb 04 '21 17:02 tbzatek