Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327249
b: refs/heads/master
c: 34e36d8
h: refs/heads/master
i:
  327247: a78b84f
v: v3
  • Loading branch information
Eric W. Biederman committed Sep 18, 2012
1 parent 23f7adb commit bdae6fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c6089735e7243a10faad676680c6e18d50959f74
refs/heads/master: 34e36d8ecbd958bc15f8e63deade1227de337eb1
6 changes: 6 additions & 0 deletions trunk/kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
#include <linux/netlink.h>
#include <linux/freezer.h>
#include <linux/tty.h>
#include <linux/pid_namespace.h>

#include "audit.h"

Expand Down Expand Up @@ -588,6 +589,11 @@ static int audit_netlink_ok(struct sk_buff *skb, u16 msg_type)
{
int err = 0;

/* Only support the initial namespaces for now. */
if ((current_user_ns() != &init_user_ns) ||
(task_active_pid_ns(current) != &init_pid_ns))
return -EPERM;

switch (msg_type) {
case AUDIT_GET:
case AUDIT_LIST:
Expand Down

0 comments on commit bdae6fc

Please sign in to comment.