Closed orlitzky closed 6 years ago
Oh, and for the fix: if you don't need to write directly to $localstatedir, but only to those two subdirectories, then just skip the owner/group args on $localstatedir.
This only happens if the user modifies prefix dir. In that specific case you'd really need to fix permissions either way. That's nothing really critical imho and I won't fix it either. Thanks for the thoughts though.
A typical
./configure && make && make install
process results in something like the following being run, where/var
is the defaultlocalstatedir
:The
checkresults
line is probably safe, thearchives
line maybe less so; but the/var
line definitely not. This command:Will change the permissions of
/var
on the user's live filesystem:The next time root does anything important under
/var
, the icinga user can trick him to gain root.