[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1471962039-14940-1-git-send-email-mguzik@redhat.com>
Date: Tue, 23 Aug 2016 16:20:37 +0200
From: Mateusz Guzik <mguzik@...hat.com>
To: Konstantin Khlebnikov <khlebnikov@...dex-team.ru>,
Richard Guy Briggs <rgb@...hat.com>
Cc: ebiederm@...ssion.com, oleg@...hat.com, sgrubb@...hat.com,
pmoore@...hat.com, eparis@...hat.com, luto@...capital.net,
linux-audit@...hat.com, linux-kernel@...r.kernel.org,
Al Viro <viro@...iv.linux.org.uk>
Subject: [PATCHv2 0/2] introduce get_task_exe_file and use it to fix audit_exe_compare
audit_exe_compare directly accesses mm->exe_file without making sure the
object is stable. Fixing it using current primitives results in
partially duplicating what proc_exe_link is doing.
As such, introduce a trivial helper which can be used in both places and
fix the func.
Changes since v1:
* removed an unused 'out' label which crept in
Mateusz Guzik (2):
mm: introduce get_task_exe_file
audit: fix exe_file access in audit_exe_compare
fs/proc/base.c | 7 +------
include/linux/mm.h | 1 +
kernel/audit_watch.c | 8 +++++---
kernel/fork.c | 23 +++++++++++++++++++++++
4 files changed, 30 insertions(+), 9 deletions(-)
--
1.8.3.1
Powered by blists - more mailing lists