From 35362d660f393353799a5db03a2f67fc82cc1e46 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Mon, 25 Sep 2017 19:33:32 +0000 Subject: [PATCH] capsicum_helpers: Add SEEK to default stdio rights set PR: 219173 Sponsored by: Dell EMC Isilon --- lib/libcapsicum/capsicum_helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libcapsicum/capsicum_helpers.h b/lib/libcapsicum/capsicum_helpers.h index 69a32cf8dcba..20f4d674a2dd 100644 --- a/lib/libcapsicum/capsicum_helpers.h +++ b/lib/libcapsicum/capsicum_helpers.h @@ -50,7 +50,7 @@ caph_limit_stream(int fd, int flags) cap_rights_t rights; unsigned long cmds[] = { TIOCGETA, TIOCGWINSZ, FIODTYPE }; - cap_rights_init(&rights, CAP_FCNTL, CAP_FSTAT, CAP_IOCTL); + cap_rights_init(&rights, CAP_FCNTL, CAP_FSTAT, CAP_IOCTL, CAP_SEEK); if ((flags & CAPH_READ) != 0) cap_rights_set(&rights, CAP_READ);