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
@ -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 New Issue
Block a user