<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 - Calc FILESAVE: EXDEV renaming file"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=142302">142302</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Calc FILESAVE: EXDEV renaming file
          </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>jmullee@yahoo.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
LibreOffice 6.4.7.2 40(Build:2)

strace:
rename("/tmp/vlAdXO",
"/home/XXX/.config/libreoffice/4/user/pack/database/biblio/biblio.pack") = -1
EXDEV (Invalid cross-device link)



Steps to Reproduce:
with apparmor activated enforced, open an existing ods file, try save it with a
different name.

The same operation works with apparmor disabled

Actual Results:
unable to write file

Expected Results:
file created and written


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
though systemd.journald managed to lose or corrupt many logs, I suspect
that the file-save operation worked after the last upgrade only because I
hadn't rebooted since then, so the apparmor profiles weren't reloaded.

    2020-07-17 14:52:01 status installed libreoffice-common:all
1:6.4.4-0ubuntu0.20.04.1
    2020-08-28 17:08:29 status installed libreoffice-common:all
1:6.4.5-0ubuntu0.20.04.1
    2020-09-26 02:27:58 status installed libreoffice-common:all
1:6.4.6-0ubuntu0.20.04.1

    -rw------- 1 root root        922564 Apr  6 13:42
/var/cache/apparmor/635fae02.0/usr.lib.libreoffice.program.soffice.bin

    2021-04-17 13:59:25 status installed libreoffice-common:all
1:6.4.7-0ubuntu0.20.04.1


I also did a manual reinstall of the usr.lib.libreoffice* apparmor scripts, as
they didn't seem to have been changed after "apt install --reinstall
libreoffice-common".</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>