diff options
| author | Mark Wielaard <[email protected]> | 2018-07-21 16:10:25 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2018-07-22 10:05:56 +0200 |
| commit | 4d240015c63d7cb702b70f7b17c8535c8223858a (patch) | |
| tree | b7fd4489d65e6fd88ced65c3c6936095f617ed49 /libelf/elf_getarsym.c | |
| parent | 272f70b8ac7dfab779810141c12735202492b881 (diff) | |
elfcompress: Swap fchmod and fchown calls on new file.
Calling fchmod with a suid bit on a file might silently fail or the suid
bit might be slilently cleared by a call to fchown if already set. Swap
the calls so that the owner is set first and then set the suid bit.
https://bugzilla.redhat.com/show_bug.cgi?id=1607044
Reported-and-tested-by: Igor Gnatenko <[email protected]>
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libelf/elf_getarsym.c')
0 files changed, 0 insertions, 0 deletions
