lkml.org 
[lkml]   [2003]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] make selinux LSM vm_enough_memory call stackable
Hi, Stephen, James,

the following (trivial, but untested) patch makes the
selinux LSM vm_enough_memory callback stackable. This
is useful for the virtual context work I'm looking at
now.

The patch is against a very recent bk tree.

===== security/selinux/hooks.c 1.8 vs edited =====
--- 1.8/security/selinux/hooks.c Thu Oct 2 03:12:10 2003
+++ edited/security/selinux/hooks.c Tue Oct 28 11:30:01 2003
@@ -1270,6 +1270,10 @@
int rc;
struct task_security_struct *tsec = current->security;

+ rc = secondary_ops->vm_enough_memory(pages);
+ if (rc)
+ return rc;
+
vm_acct_memory(pages);

/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.022 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site