Bug 1296858 - PIE binaries cannot be launched from nautilus
PIE binaries cannot be launched from nautilus
Status: NEW
Product: Fedora
Classification: Fedora
Component: nautilus (Show other bugs)
26
All Linux
unspecified Severity medium
: ---
: ---
Assigned To: Matthias Clasen
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-08 04:38 EST by Yann Droneaud
Modified: 2017-07-25 10:02 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1296868 (view as bug list)
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Nautilus window showing 2 programs (39.47 KB, image/png)
2016-01-08 04:40 EST, Yann Droneaud
no flags Details
Nautilus popup when double clicking on PIE program (11.88 KB, image/png)
2016-01-08 04:41 EST, Yann Droneaud
no flags Details
Nautilus shows basic file properties (29.41 KB, image/png)
2016-01-08 04:43 EST, Yann Droneaud
no flags Details
Nautilus shows permissions file properties (29.03 KB, image/png)
2016-01-08 04:45 EST, Yann Droneaud
no flags Details
Nautilus shows "open with" properties (37.01 KB, image/png)
2016-01-08 04:46 EST, Yann Droneaud
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
GNOME Desktop 737849 None None None 2016-05-12 09:58 EDT

  None (edit)
Description Yann Droneaud 2016-01-08 04:38:06 EST
When double-clicking on programs listed by file manager:

- program built without -pie can be launched.
- program built with -pie (Position Independent Executable) cannot be launched.

Nautilus should be able to start PIE binaries just like non-PIE ones.
Comment 1 Yann Droneaud 2016-01-08 04:40 EST
Created attachment 1112819 [details]
Nautilus window showing 2 programs

Here's a screenshot for the main file manager window showing 2 programs, one built with -pie and the other built without.

The non-PIE one is showed as executable, while the PIE one is not.
Comment 2 Yann Droneaud 2016-01-08 04:41 EST
Created attachment 1112822 [details]
Nautilus popup when double clicking on PIE program

Here's a screen shot of the popup showed by Nautilus when double clicking on PIE program.

The PIE program is reported as a shared library.
Comment 3 Yann Droneaud 2016-01-08 04:43 EST
Created attachment 1112824 [details]
Nautilus shows basic file properties

The basic properties for the PIE program shown by Nautilus.
Note file type: shared library, MIME application/x-sharedlib.
Comment 4 Yann Droneaud 2016-01-08 04:45 EST
Created attachment 1112827 [details]
Nautilus shows permissions file properties

The permissions for the PIE program shown by Nautilus.
Note: the file is marked executable.
Comment 5 Yann Droneaud 2016-01-08 04:46 EST
Created attachment 1112829 [details]
Nautilus shows "open with" properties

Nautilus let me choose an application to open files of type "shared library" and the PIE program.
Comment 6 Yann Droneaud 2016-01-08 04:48:36 EST
I believe the root issue is "file" command that incorrectly report PIE program as shared object instead of executable:

  $ file bin-nopie
  bin-nopie: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=ee817f6d5d4f5635a981b1b837b1b0de3b16aacf, not stripped

  $ file bin-pie
  bin-pie:   ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=439fc92838d4d0981f99dd967485e5b95a5a0e7b, not stripped

Note You need to log in before you can comment on or make changes to this bug.