Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163482631
D21106.id60256.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
665 B
Referenced Files
None
Subscribers
None
D21106.id60256.diff
View Options
Index: contrib/elftoolchain/cxxfilt/cxxfilt.c
===================================================================
--- contrib/elftoolchain/cxxfilt/cxxfilt.c
+++ 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>
@@ -165,6 +167,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++) {
if ((dem = demangle(argv[n])) == NULL)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 24, 3:38 PM (17 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35417299
Default Alt Text
D21106.id60256.diff (665 B)
Attached To
Mode
D21106: Capsicumize c++filt(1).
Attached
Detach File
Event Timeline
Log In to Comment