| Summary: | devel/staf: stafproc passes a revoked file descriptor to children | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Alan Somers <asomers> | ||||
| Component: | Individual Port(s) | Assignee: | Alan Somers <asomers> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Some People | CC: | skozlov | ||||
| Priority: | --- | Keywords: | needs-qa | ||||
| Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(skozlov) koobs: merge-quarterly? |
||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Alan Somers
2017-08-01 22:11:32 UTC
Created attachment 184930 [details]
Close stdin when starting stafproc
Comment on attachment 184930 [details]
Close stdin when starting stafproc
Approved by: portmgr (blanket)
koobs, what QA would you like to see? A commit references this bug: Author: asomers Date: Thu Aug 3 15:20:17 UTC 2017 New revision: 447227 URL: https://svnweb.freebsd.org/changeset/ports/447227 Log: devel/staf: stafproc passes a revoked file descriptor to children staf's rc script uses daemon(8) to detach stafproc from its controlling terminal, but it does nothing to stdin. The result is that stafproc has a stdin in the revoked state, which it passes to child processes. Some programs can't handle revoked file descriptors, because they return EBADF despite being opened. PR: 221161 Approved by: koobs (portmgr) MFH: 2017Q3 Sponsored by: Spectra Logic Corp Changes: head/devel/staf/Makefile head/devel/staf/files/stafproc.in |