https://bugs.freedesktop.org/show_bug.cgi?id=79924

          Priority: medium
            Bug ID: 79924
          Assignee: [email protected]
           Summary: LibreOffice should use stemp in other directories than
                    $HOME first
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
            Status: UNCONFIRMED
           Version: unspecified
         Component: sdk
           Product: LibreOffice

Libre Office double mmaps a temporary file to build trampolines block. It
attempts to create the temporary file in $HOME, and fallbacks on /tmp:

bridges/source/cpp_uno/shared/vtablefactory.cxx
236    #ifdef USE_DOUBLE_MMAP
237    bool VtableFactory::createBlock(Block &block, sal_Int32 slotCount) const

But $HOME is more likely to be noexec, so it is better to try /tmp first. Using
$HOME first can also create annoying complains in LSM such as SELinux or
AppArmor.

As an example, libffi tries the following directories, in this order, until it
finds something suitable:
1. $TMPDIR,
2. /tmp,
3. /var/tmp,
4. /dev/shm,
5. $HOME,
6. whatever is listed in /etc/mtab,
7. whatever is listed in /proc/mounts

See https://github.com/atgreen/libffi/blob/master/src/closures.c#L382

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to