http://thread.gmane.org/gmane.comp.security.oss.general/4374
Based on CVE-2011-1089.
Signed-off-by: Karel Zak <kzak@redhat.com>
if (check_special_umountprog(spec, node, type, &status))
return status;
+ block_signals(SIG_BLOCK);
+
/* Skip the actual umounting for --fake */
if (fake)
goto writemtab;
remnt.mnt_passno = 0;
update_mtab(node, &remnt);
}
+ block_signals(SIG_UNBLOCK);
return 0;
} else if (errno != EBUSY) { /* hmm ... */
perror("remount");
#endif
}
+ block_signals(SIG_UNBLOCK);
+
if (res >= 0)
return 0;
if (umnt_err)