[Bug 1747711] Re: file mis-identifies modern executables as application/x-sharedlib

2019-01-23 Thread WHR
>>> So for mime types to distinguish, "file" needs to grow reporting of the INTERP presence. Distinguish between shared libraries and PIC executables based on INTERP ELF header is not always correct. Consider following 2 exceptions: GLIBC main library libc-2.24.so This shared object has an

[Bug 1747711] Re: file mis-identifies modern executables as application/x-sharedlib

2019-01-23 Thread WHR
>>> Yes, this is very much a bug. While ELF position independent executables are ELF shared objects, they weren't being recognized as executables by desktop launchers. So they wouldn't run. So those launchers should accept shared objects (application/x-sharedlib) as executables from now. -- You

[Bug 1747711] Re: file mis-identifies modern executables as application/x-sharedlib

2018-11-03 Thread Corey Bruce
Electron applications using Electron 4.0.0 beta/nightly are effected by this bug making it impossible for developers to create Linux applications and have it easily work using that version, doesn't effect applications developed Electron 3.0.6 latest but this is a seriously annoying bugs that will

[Bug 1747711] Re: file mis-identifies modern executables as application/x-sharedlib

2018-08-20 Thread scruss
What does "file --mime-type" return for dynamic libraries? Yes, this is very much a bug. While ELF position independent executables are ELF shared objects, they weren't being recognized as executables by desktop launchers. So they wouldn't run. -- You received this bug notification because you

[Bug 1747711] Re: file mis-identifies modern executables as application/x-sharedlib

2018-08-20 Thread WHR
And I don't think this is a bug because technically an ELF position independent executable IS a ELF shared object, right? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747711 Title: file

[Bug 1747711] Re: file mis-identifies modern executables as application/x-sharedlib

2018-08-20 Thread WHR
Looks like the upstream fix makes many dynamic libraries wrongly detected as 'pie executable's. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906727 ** Bug watch added: Debian Bug tracker #906727 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906727 -- You received this bug

[Bug 1747711] Re: file mis-identifies modern executables as application/x-sharedlib

2018-05-15 Thread Chris Billington
Has this been fixed upstream? Looking at the changelog, there has been a related change, but I'm not sure if it resolves the issue yet, it now says they're both executables. https://github.com/file/file/blob/219846094c7593e27453e62855e61181089c48cf/ChangeLog file 5.3.3: python3.6: ELF 64-bit

[Bug 1747711] Re: file mis-identifies modern executables as application/x-sharedlib

2018-05-15 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: file (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747711 Title: file

[Bug 1747711] Re: file mis-identifies modern executables as application/x-sharedlib

2018-02-22 Thread Steve Langasek
** Tags removed: rls-bb-incoming ** Tags added: rls-bb-notfixing -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747711 Title: file mis-identifies modern executables as application/x-sharedlib To

[Bug 1747711] Re: file mis-identifies modern executables as application/x-sharedlib

2018-02-19 Thread Brian Murray
** Tags added: rls-bb-incoming -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747711 Title: file mis-identifies modern executables as application/x-sharedlib To manage notifications about this bug

[Bug 1747711] Re: file mis-identifies modern executables as application/x-sharedlib

2018-02-17 Thread scruss
I've had a discussion with Christos Zoulas, the root maintainer of ‘file’, and they will make the necessary changes in due course. Whether this will be noticed by all the forks and re-implementations such as xdgmime in Gnome, I don't know. -- You received this bug notification because you are a

[Bug 1747711] Re: file mis-identifies modern executables as application/x-sharedlib

2018-02-17 Thread Kees Cook
This is (sort of) a bug in file. The problem is not being able to distinguish between shared objects and PIE binaries. (The latter have INTERP ELF sections and can be run directly.) $ readelf -l /bin/true ... Elf file type is EXEC (Executable file) ... INTERP 0x0238

[Bug 1747711] Re: file mis-identifies modern executables as application/x-sharedlib

2018-02-16 Thread Brian Murray
It is also an issue on bionic: $ schroot -u root -c bionic-amd64 (bionic-amd64)root@impulse:/tmp# echo "int main() { return 0; }" > foo.c (bionic-amd64)root@impulse:/tmp# gcc -o foo foo.c (bionic-amd64)root@impulse:/tmp# file foo foo: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV),

[Bug 1747711] Re: file mis-identifies modern executables as application/x-sharedlib

2018-02-16 Thread Brian Murray
** Tags added: bionic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747711 Title: file mis-identifies modern executables as application/x-sharedlib To manage notifications about this bug go to:

[Bug 1747711] Re: file mis-identifies modern executables as application/x-sharedlib

2018-02-07 Thread scruss
** Information type changed from Private Security to Public Security ** Description changed: file doesn't recognize modern PIE (Position Independent Executable) x86 executables as such, reporting them as “application/x-sharedlib”. Consequently, only non-PIE executables can be opened in