Skip to content

RFE Session ID User Filter

Paul Moore edited this page Jun 22, 2016 · 13 revisions

Feature Description

Add the ability to add user rules to filter audit messages based on session ID so that system admins can more precicely restrict desired audit events.

Feature Design

The session ID is in the netlink credentials coming from user space. They just didn't get added to the user filter when they were added to netlink. Add it.

Development Tasks

In the kernel, define AUDIT_SESSIONID in the uapi, allow it to user filter rules to pass valid field checks including session ID, store the session ID field with the rule, and add a comparisson with the current task based on the session ID in the user filter.

Define sessionid in userspace based on AUDIT_SESSIONID macro from the uapi.

Develop a test script.

Functional Testing and Verification

Test that user filter rules can be successfully added based on session ID and that audit user messages can be filtered based on the session ID.

Example Audit Records

No change to existing audit records.

Bugzilla and Issue Trackers

https://github.com/linux-audit/audit-kernel/issues/4
https://github.com/linux-audit/audit-testsuite/pull/22

Clone this wiki locally