[acassen/keepalived] acfb9a: Preserve filename in script path name resolution
pqarmitage <[email protected]> Mon, 30 Oct 2017 07:46:09 -0700
| Newsgroups | gmane.linux.keepalived.devel |
|---|---|
| Message-ID | <59f73b31ef635_2eb2c3fa0b0b8bc40131462@hookshot-fe-6dbb0c4.cp1-iad.github.net.mail> |
Branch: refs/heads/master
Home: https://github.com/acassen/keepalived
Commit: acfb9a028a54334954a0ca4d923ac1361b7980c0
https://github.com/acassen/keepalived/commit/acfb9a028a54334954a0ca4d923ac1361b7980c0
Author: Quentin Armitage <[email protected]>
Date: 2017-10-30 (Mon, 30 Oct 2017)
Changed paths:
M lib/notify.c
Log Message:
-----------
Preserve filename in script path name resolution
Some executables change their behaviour depending on the name by
which they are invoked (e.g. /usr/sbin/pidof when it is a link to
/usr/sbin/killall5). Using realpath() changes the file name part
if it is a symbolic link. This commit resolves all symbolic links
to directories, but leaves the file name part unaltered. It then
checks the security of both the path to the link and the path to
the real file.
Signed-off-by: Quentin Armitage <[email protected]>
Commit: 99906be0a91a92a0380b1d26f6a3516e34d019e4
https://github.com/acassen/keepalived/commit/99906be0a91a92a0380b1d26f6a3516e34d019e4
Author: pqarmitage <[email protected]>
Date: 2017-10-30 (Mon, 30 Oct 2017)
Changed paths:
M lib/notify.c
Log Message:
-----------
Merge pull request #687 from pqarmitage/fixes
Preserve filename in script path name resolution
Compare: https://github.com/acassen/keepalived/compare/e3dc270e7a7b...99906be0a91a
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel