pledge fvwm and FvwmPager (since it's started by default); committing to
solicit further feedback and testing. ok matthieu and encouragement from deraadt
This commit is contained in:
parent
402ba9437e
commit
eaf23378dd
@ -19,6 +19,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <err.h>
|
||||
#include "fvwm.h"
|
||||
#include "menus.h"
|
||||
#include "misc.h"
|
||||
@ -525,6 +526,9 @@ int main(int argc, char **argv)
|
||||
fFvwmInStartup = False;
|
||||
DBUG("main","Entering HandleEvents loop...");
|
||||
|
||||
if (pledge("stdio rpath proc exec", NULL) == -1)
|
||||
err(1, "pledge");
|
||||
|
||||
HandleEvents();
|
||||
switch( fvwmRunState )
|
||||
{
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#include <ctype.h>
|
||||
#include <err.h>
|
||||
|
||||
#ifdef HAVE_SYS_BSDTYPES_H
|
||||
#include <sys/bsdtypes.h> /* Saul */
|
||||
@ -264,6 +265,9 @@ int main(int argc, char **argv)
|
||||
fprintf(stderr,"[main]: back from getting window list, looping\n");
|
||||
#endif
|
||||
|
||||
if (pledge("stdio", NULL) == -1)
|
||||
err(1, "pledge");
|
||||
|
||||
Loop(fd);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user