Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147162
b: refs/heads/master
c: f65cb45
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Dec 16, 2008
1 parent 321f5b0 commit 4275945
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 0cc0c027d4e028632933f1be2dc4cd730358183b
refs/heads/master: f65cb45cba63f249458b669aa67069eabc37b2f5
8 changes: 8 additions & 0 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/string.h>
#include <linux/init.h>
#include <linux/pagemap.h>
#include <linux/perf_counter.h>
#include <linux/highmem.h>
#include <linux/spinlock.h>
#include <linux/key.h>
Expand Down Expand Up @@ -1017,6 +1018,13 @@ int flush_old_exec(struct linux_binprm * bprm)
set_dumpable(current->mm, suid_dumpable);
}

/*
* Flush performance counters when crossing a
* security domain:
*/
if (!get_dumpable(current->mm))
perf_counter_exit_task(current);

/* An exec changes our domain. We are no longer part of the thread
group */

Expand Down

0 comments on commit 4275945

Please sign in to comment.