Bug 477610 - less' use of fsync makes EINVAL
less' use of fsync makes EINVAL
Product: Fedora
Classification: Fedora
Component: less (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Zdenek Prikryl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-12-22 08:17 EST by Steve Grubb
Modified: 2009-03-17 03:51 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-03-17 03:51:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch fixing problems described herein (1.45 KB, patch)
2008-12-22 08:17 EST, Steve Grubb
no flags Details | Diff

  None (edit)
Description Steve Grubb 2008-12-22 08:17:43 EST
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:

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.
Comment 1 Zdenek Prikryl 2009-03-17 03:51:10 EDT
Fixed in rawhide less-424-3.fc11.

Note You need to log in before you can comment on or make changes to this bug.