public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selinux: init target class when add avc callback
@ 2012-02-05  1:53 Wanlong Gao
  2012-03-06 23:59 ` Wanlong Gao
  0 siblings, 1 reply; 7+ messages in thread
From: Wanlong Gao @ 2012-02-05  1:53 UTC (permalink / raw)
  To: linux-security-module, linux-kernel; +Cc: eparis, Wanlong Gao

Target security class should be initialized when add avc callback.
Although tclass is userless in callbacks now, but it may be used
in the future .

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
---
 security/selinux/avc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/security/selinux/avc.c b/security/selinux/avc.c
index dca1c22..27495e6 100644
--- a/security/selinux/avc.c
+++ b/security/selinux/avc.c
@@ -576,6 +576,7 @@ int avc_add_callback(int (*callback)(u32 event, u32 ssid, u32 tsid,
 	c->events = events;
 	c->ssid = ssid;
 	c->tsid = tsid;
+	c->tclass = tclass;
 	c->perms = perms;
 	c->next = avc_callbacks;
 	avc_callbacks = c;
-- 
1.7.9


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-07 13:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-05  1:53 [PATCH] selinux: init target class when add avc callback Wanlong Gao
2012-03-06 23:59 ` Wanlong Gao
2012-03-07  0:15   ` Andrew Morton
2012-03-07  0:41     ` Eric Paris
2012-03-07  0:48       ` Wanlong Gao
2012-03-07  0:49       ` Andrew Morton
2012-03-07 13:27       ` Stephen Smalley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox