Bug 477610
Summary: | less' use of fsync makes EINVAL | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Steve Grubb <sgrubb> | ||||
Component: | less | Assignee: | Zdenek Prikryl <zprikryl> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 9 | CC: | zprikryl | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2009-03-17 07:51:10 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Fixed in rawhide less-424-3.fc11. |
Created attachment 327637 [details] patch fixing problems described herein Description of problem: We've been doing IDS work and noticed that less is calling fsync on the tty device. This is unsupported and produces EINVAL return codes. How reproducible: always Steps to Reproduce: 1. add this to audit rules: -a always,exit -F fsync -F exit=-EINVAL -k einval 2. open a file with less 3. run ausearch --start recent -k einval Attaching a patch that fixes the problem by testing in autoconf if fsync produces EINVAL when called against the tty descriptor. This requires adding autoreconf to the build section.