From 5eac9c1cb009615c1d9371e1ea757503a1c010e6 Mon Sep 17 00:00:00 2001 From: Mariusz Zaborski Date: Tue, 16 Jul 2019 04:17:25 +0000 Subject: strings: extends rights The libelf is using mmap if it can, if not it was fall backing to read. Reported by: markj --- contrib/elftoolchain/strings/strings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/elftoolchain/strings') diff --git a/contrib/elftoolchain/strings/strings.c b/contrib/elftoolchain/strings/strings.c index 7a34a40c3995..4c9463fe25c5 100644 --- a/contrib/elftoolchain/strings/strings.c +++ b/contrib/elftoolchain/strings/strings.c @@ -194,7 +194,7 @@ main(int argc, char **argv) argc -= optind; argv += optind; - cap_rights_init(&rights, CAP_READ, CAP_SEEK, CAP_FSTAT, CAP_FCNTL); + cap_rights_init(&rights, CAP_READ, CAP_SEEK, CAP_FSTAT, CAP_FCNTL, CAP_MMAP_R); fa = fileargs_init(argc, argv, O_RDONLY, 0, &rights, FA_OPEN); if (fa == NULL) err(1, "Unable to initialize casper fileargs"); -- cgit v1.2.3