Page MenuHomeFreeBSD

D21106.diff
No OneTemporary

D21106.diff

Index: head/contrib/elftoolchain/cxxfilt/cxxfilt.c
===================================================================
--- head/contrib/elftoolchain/cxxfilt/cxxfilt.c
+++ head/contrib/elftoolchain/cxxfilt/cxxfilt.c
@@ -25,6 +25,8 @@
*/
#include <sys/param.h>
+
+#include <capsicum_helpers.h>
#include <ctype.h>
#include <err.h>
#include <getopt.h>
@@ -164,6 +166,11 @@
argv += optind;
argc -= optind;
+
+ if (caph_limit_stdio() < 0)
+ err(EXIT_FAILURE, "failed to limit stdio rights");
+ if (caph_enter() < 0)
+ err(EXIT_FAILURE, "failed to enter capability mode");
if (*argv != NULL) {
for (n = 0; n < argc; n++) {

File Metadata

Mime Type
text/plain
Expires
Fri, Aug 21, 2:16 PM (1 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37035848
Default Alt Text
D21106.diff (639 B)

Event Timeline