capsicum_helpers: Add SEEK to default stdio rights set

PR:		219173
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Conrad Meyer 2017-09-25 19:33:32 +00:00
parent a78b4d1462
commit 35362d660f

View File

@ -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);