X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=security%2Fselinux%2Fss%2Fpolicydb.c;h=d246aca3f4fbd43563bf01d20d78e28feb826ad8;hp=102e9ec1b77a327477592b05a8e60933d348d7c1;hb=5220cc9382e11ca955ce946ee6a5bac577bb14ff;hpb=1486a7409b42ec434be310e091ef68660a2f6cd0 diff --git a/security/selinux/ss/policydb.c b/security/selinux/ss/policydb.c index 102e9ec1b77a..d246aca3f4fb 100644 --- a/security/selinux/ss/policydb.c +++ b/security/selinux/ss/policydb.c @@ -3222,6 +3222,9 @@ static int filename_trans_write(struct policydb *p, void *fp) __le32 buf[1]; int rc; + if (p->policyvers < POLICYDB_VERSION_FILENAME_TRANS) + return 0; + nel = 0; rc = hashtab_map(p->filename_trans, hashtab_cnt, &nel); if (rc)