mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
capsicum_helpers: Add SEEK to default stdio rights set
PR: 219173 Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
a78b4d1462
commit
35362d660f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323990
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue