From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miloslav Trmac Subject: Re: [PATCH] Add SELinux context and TTY name to AUDIT_TTY records Date: Fri, 20 Mar 2009 04:53:27 -0400 (EDT) Message-ID: <1666981128.1772561237539207343.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com> References: <1446383553.1772511237538977759.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1446383553.1772511237538977759.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Paul Moore Cc: linux-audit@redhat.com, viro , linux-kernel List-Id: linux-audit@redhat.com Paul, Thanks for your review. ----- "Paul Moore" wrote: > There are several audit experts which should review this code but two > things > jumped out at me when glancing at your patch: > > 1. SELinux SIDs should not be recorded Almost all code that logs SELinux contexts in kernel/audit* does the same thing as this patch, falling back to a SID if it can't be converted to a string. > 2. From a SELinux/security point of view ttys are considered objects > and their labels/contexts should be recorded with "obj=" not > "subj=" The patch logs the context of the process, not of the TTY. Mirek