SELinux: skip file_name_trans_write() when policy downgraded.
authorRoy.Li <rongqing.li@windriver.com>
Fri, 20 May 2011 02:38:06 +0000 (10:38 +0800)
committerEric Paris <eparis@redhat.com>
Tue, 14 Jun 2011 16:58:51 +0000 (12:58 -0400)
commitded509880f6a0213b09f8ae7bef84acb16eaccbf
treeac8819a1b23a13b0f04ca34ab2983040c9d66e99
parent0f7e4c33eb2c40b1e9cc24d2eab6de5921bc619c
SELinux: skip file_name_trans_write() when policy downgraded.

When policy version is less than POLICYDB_VERSION_FILENAME_TRANS,
skip file_name_trans_write().

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
security/selinux/ss/policydb.c