Red Hat Bugzilla – Bug 130929
missing syscall auditing for pread() and pwrite()
Last modified: 2007-11-30 17:07:03 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
T312461; LM-MS; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
Description of problem:
The system calls pread() and pwrite() currently can not be audited.
Unlike other related calls such as read(), readv(), write(), and
writev(), these calls are not included in the list of auditable calls
in drivers/audit/syscall.c. This is a significant hole in the
auditing support, because it allows a way to write to sensitive files
without the write access being logged.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create rules to enable auditing of pwrite and pread
2. enable auditing
3. run a program that uses pread or pwrite
Actual Results: Access using pread or pwrite is not logged, and a
kernel error message is generated for each time the syscall is
used: "Filter target 0x0 not known or not supported in this context"
Expected Results: The accesses should be logged
*** This bug has been marked as a duplicate of 130823 ***
A fix for this problem has just been committed to the RHEL3 U4
patch pool this evening (in kernel version 2.4.21-20.5.EL).
An errata has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.