Bug 477610 - less' use of fsync makes EINVAL
Summary: less' use of fsync makes EINVAL
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: less
Version: 9
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Zdenek Prikryl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-22 13:17 UTC by Steve Grubb
Modified: 2009-03-17 07:51 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-03-17 07:51:10 UTC
Type: ---
Embargoed:


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

Description Steve Grubb 2008-12-22 13:17:43 UTC
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.

Comment 1 Zdenek Prikryl 2009-03-17 07:51:10 UTC
Fixed in rawhide less-424-3.fc11.


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