SELinux: Write class field in role_trans_write.
authorHarry Ciao <qingtao.cao@windriver.com>
Fri, 25 Mar 2011 05:52:00 +0000 (13:52 +0800)
committerEric Paris <eparis@redhat.com>
Mon, 28 Mar 2011 18:21:05 +0000 (14:21 -0400)
commitc900ff323d761753a56d8d6a67b034ceee277b6e
tree0294cfb5904eec80cf8e84004d46cb8734b714e7
parent63a312ca55d09a3f6526919df495fff1073c88f4
SELinux: Write class field in role_trans_write.

If kernel policy version is >= 26, then write the class field of the
role_trans structure into the binary reprensentation.

Signed-off-by: Harry Ciao <qingtao.cao@windriver.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Eric Paris <eparis@redhat.com>
security/selinux/ss/policydb.c