! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Thunar unable to recognize executables due to ASLR


Description Scott Furry 2017-07-29 16:40:33 CEST
ASLR(address space layout randomization) appears to be apart of "kernel hardening" and seems to have been in the "pipeline" for some time.
See link - linux audit: https://linux-audit.com/linux-aslr-and-kernelrandomize_va_space-setting/

As a result, any executable built on a computer will be done with the linking flag "-PIE" or Positional Independent Executable by default.

fedora info indicates this was made default in F23:

ubuntu info states default established in 17.10:

debian info has been set going forward:

Linux kernel made the flag available as of ver 4.4.26:

This changes the behaviour of how "file" reports the mime type of an executable. By extension, this affects how Thunar will handle that executable when the user attempts to execute what is thought to be an application. An application built with the "-PIE" flag will be seen as a "application/x-sharedlib" mime type unless the user explicitly uses the "-nopie" link flag. When attempting to open the application, Thunar will ask the user what application to use - even though it's an application.

Personally, I think this is "security theatre" and "security by obfuscation", but this is what the kernel boffins have come out with.
However,  the problem remains...

Thunar does not recognize nor respond as expected when attempting access Positional Independent Executable's.
Comment 1 Andrey Vihrov 2018-06-03 09:03:26 CEST
Related to/duplicate of bug 13737.
Comment 2 chriscamacho 2019-09-21 09:13:11 CEST
I'm seeing this too for example given the output of "file"

shader-mask: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-x86-64.so.2, BuildID[sha1]=703feee0dbb803785df6c6b144e83c7461633bf7, for GNU/Linux 3.2.0, with debug_info, not stripped

looking in a Thunar window I see "shared library"

This means I am unable to execute this binary using thunar...
Comment 3 alexxcons editbugs 2019-09-22 21:07:59 CEST
Closed as a duplicate. Thanks for pointing out !

*** This bug has been marked as a duplicate of bug 13737 ***

Bug #13750

Reported by:
Scott Furry
Reported on: 2017-07-29
Last modified on: 2019-09-22


Xfce Bug Triage
CC List:
5 users




Additional information