Re: how can I compile mount and umount as shared object files?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Mike,

The compiled regular executables do seem to work fine.

Any idea why they are compiled as PIEs for CentOS (and presumably Red Hat)?

Best Regards,
Paul Stone


On Wed, Nov 23, 2011 at 10:58 AM, Mike Frysinger <vapier@xxxxxxxxxx> wrote:
> On Tuesday 22 November 2011 19:02:26 Paul Stone wrote:
>> [root@xxxx .libs]# file *
>> mount:  setuid ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
>> dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
>> umount: setuid ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
>> dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
>>
>> [root@xxxx .libs]# file /bin/mount /bin/umount
>> /bin/mount:  setuid ELF 64-bit LSB shared object, x86-64, version 1
>> (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux
>> 2.6.18, stripped
>> /bin/umount: setuid ELF 64-bit LSB shared object, x86-64, version 1
>> (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux
>> 2.6.18, stripped
>
> looks like your objects in /bin/ are PIEs.  it's not required for these to be
> PIEs, so you can install the locally compiled ones if you want and they should
> work fine.
> -mike
>
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux