scáthán de
https://github.com/quitesimpleorg/asteriskify.git
sioncronaithe 2025-04-16 18:49:01 +02:00
Disable core dumps
Tá an tiomantas seo le fáil i:
tuismitheoir
2103dfdac6
tiomantas
7323492836
@ -23,6 +23,7 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <sys/prctl.h>
|
||||||
|
|
||||||
#define PWBUF_SIZE 256
|
#define PWBUF_SIZE 256
|
||||||
|
|
||||||
@ -157,6 +158,12 @@ int main()
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(prctl(PR_SET_DUMPABLE, 0) != 0)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Failed to make process not dumpable\n");
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
setup_console();
|
setup_console();
|
||||||
|
|
||||||
allocate_pw_buf();
|
allocate_pw_buf();
|
||||||
|
Á lódáil...
x
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir