[Libreoffice-bugs] [Bug 138252] New: LibreOffice doesn't preserve facls (create new files on save and ignores old facls)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Nov 16 10:31:01 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=138252

            Bug ID: 138252
           Summary: LibreOffice doesn't preserve facls (create new files
                    on save and ignores old facls)
           Product: LibreOffice
           Version: 6.4.7.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: edgar.hoch at ims.uni-stuttgart.de

Description:
When LibreOffice saves a file, it removes the old file and creates a new file.
But it doesn't preserve facls.

Instead, LibreOffice should either write the new content in the same file
(creating a backup file as a new file before modifying the original file), or
create the new file with exact the same permissions, facls, SELinux context,
etc. as the old file.



Steps to Reproduce:
1. Open LibreOffice.
2. Create new LibreOffice document and save it
   (on a local file system, so we can use setfacl and getfacl)
3. Check facls:
   getfacl filename
4. Set some facls, for example
   setfacl -m g:wheel:rw- filename
5. Check facls:
   getfacl filename
6. Note which inode the file has, for example with stat:
   stat filename
7. Open the file in LibreOffice, change something, so it is modified, and save
it.
8. Check if the file has the same or another inode now:
   stat filename
9. Check facls:
   getfacl filename



Actual Results:
FACLs are lost.

Expected Results:
FACLs are preserved.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.4.7.2
Build-ID: 6.4.7.2-3.fc32
CPU-Threads: 8; BS: Linux 5.8; UI-Render: Standard; VCL: gtk3; 
Gebietsschema: de-DE (de_DE.UTF-8); UI-Sprache: de-DE
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201116/5c446d38/attachment.htm>


More information about the Libreoffice-bugs mailing list