mirror of
https://github.com/openbsd/xenocara.git
synced 2025-12-08 18:28:43 +00:00
Call pledge(2) in fc-cache(1): "stdio rpath wpath cpath flock".
ok deraadt@
This commit is contained in:
5
dist/fontconfig/fc-cache/fc-cache.c
vendored
5
dist/fontconfig/fc-cache/fc-cache.c
vendored
@@ -39,6 +39,7 @@
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#ifdef HAVE_DIRENT_H
|
||||
@@ -378,6 +379,10 @@ main (int argc, char **argv)
|
||||
}
|
||||
systemOnly = FcTrue;
|
||||
}
|
||||
|
||||
if (pledge("stdio rpath wpath cpath flock", NULL) == -1)
|
||||
err(1, "pledge");
|
||||
|
||||
if (systemOnly)
|
||||
FcConfigEnableHome (FcFalse);
|
||||
if (sysroot)
|
||||
|
||||
Reference in New Issue
Block a user