<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - LibreOffice doesn't preserve facls (create new files on save and ignores old facls)"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=138252">138252</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LibreOffice doesn't preserve facls (create new files on save and ignores old facls)
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.4.7.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Calc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>edgar.hoch@ims.uni-stuttgart.de
</td>
</tr></table>
<p>
<div>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>