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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323990

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