1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00
lvm2/daemons/cmirrord
Peter Rajnoha a65ab773b4 daemons: use PIE and RELRO compiler/linker options
The PIE and RELRO compiler/linker options can be used to produce a code
some techniques applied that makes the code more immune to some attacks:

  - PIE (Position Independent Executable). It can make use of the ASLR
    (Address Space Layout Randomization) provided by kernel to avoid
    static locations for .text regions of executables (this is the 'pie'
    compiler and linker option)

  - RELRO (Relocation Read-Only). This prevents overwrite attacks of
    the GOT (Global Offset Table) and PLT (Procedure Lookup Table)
    used for relocations by making it read-only after all relocations
    are resolved (these are the 'relro' and 'now' linker options) -
    hence all symbols are resolved at the very start so there's no
    need for those tables to be writeable later.

These compiler/linker options are now used by default for daemons
if the compiler/linker supports it.
2013-12-04 13:30:08 +01:00
..
clogd.c clogd: fix descriptor leak when daemonzing 2013-08-06 16:21:51 +02:00
cluster.c cmirrord: Prevent secondary checkpoints from corrupting bitmaps 2013-08-20 13:21:09 -05:00
cluster.h Deal with a few more compiler warnings. 2010-01-20 02:43:19 +00:00
common.h Clean up include files. 2010-01-18 21:07:24 +00:00
compat.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
compat.h Clean up include files. 2010-01-18 21:07:24 +00:00
functions.c cleanup: replace memset with struct initilization 2012-06-22 13:23:03 +02:00
functions.h Clean up include files. 2010-01-18 21:07:24 +00:00
link_mon.c Remove some whitespaces. 2012-03-10 09:32:46 +00:00
link_mon.h Clean up include files. 2010-01-18 21:07:24 +00:00
local.c cmirrord: add missing checks for kernel_send 2012-06-20 14:48:26 +02:00
local.h Clean up include files. 2010-01-18 21:07:24 +00:00
logging.c Clean up include files. 2010-01-18 21:07:24 +00:00
logging.h Use "" instead of <> for configure.h and libdevmapper.h 2010-06-15 11:00:44 +00:00
Makefile.in daemons: use PIE and RELRO compiler/linker options 2013-12-04 13:30:08 +01:00