Bug 1369856
Summary: | [RFE] synchronous write in sudo i/o logs | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Andrea Perotti <aperotti> | ||||
Component: | sudo | Assignee: | Tomas Sykora <tosykora> | ||||
Status: | CLOSED ERRATA | QA Contact: | Dalibor Pospíšil <dapospis> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 7.3 | CC: | aperotti, daniele, dkopecek, jnansi, pkis, pvrabec | ||||
Target Milestone: | rc | Keywords: | FutureFeature | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-08-01 17:03:40 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1420851 | ||||||
Attachments: |
|
Description
Andrea Perotti
2016-08-24 14:38:07 UTC
Hi Andrea, it seems sudo io writes are synchronous when the sudo command is killed. I tried it myself and you can also check the conversation with upstream here: https://www.sudo.ws/pipermail/sudo-workers/2017-March/001055.html. They changed documentation a little bit so it is more clear now. If I am wrong how did the customer reproduce these non-synchronous writes exactly? What did he mean by logs to be complete? I tried it with a program which prints a string to stdout every x seconds, where x is a very small time period, killed the command with kill -9, then checked logs with sudoreplay. The output was correct every time. (In reply to Tomas Sykora from comment #5) > it seems sudo io writes are synchronous when the sudo command is killed. Hi Tomas, thanks for updating and sharing the upstream conversation. The use case that the customer want to achieve is a little bit more extreme: to be sure that all writes are commited despite any kind of external event, like fencing or power loss. So I think we can move on explaining that scenario to Todd Miller, or presenting it to him as "watch the logs in real-time" ;-) Upstream implemented a new option for this use case: https://www.sudo.ws/repos/sudo/rev/96baa17409cf, if it is ok with the customer we can backport it. Created attachment 1265819 [details]
Patch derived from upstream.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2017 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2017 |