Commit e4e027ea2d7a59819a0384c2d1031aafc5833903

Authored by James Morris

Merge branch 'stable-3.14' of git://git.infradead.org/users/pcmoore/selinux into for-linus

Showing 1 changed file Side-by-side Diff

security/selinux/ss/policydb.c
... ... @@ -3338,10 +3338,10 @@
3338 3338 if (rc)
3339 3339 return rc;
3340 3340  
3341   - buf[0] = ft->stype;
3342   - buf[1] = ft->ttype;
3343   - buf[2] = ft->tclass;
3344   - buf[3] = otype->otype;
  3341 + buf[0] = cpu_to_le32(ft->stype);
  3342 + buf[1] = cpu_to_le32(ft->ttype);
  3343 + buf[2] = cpu_to_le32(ft->tclass);
  3344 + buf[3] = cpu_to_le32(otype->otype);
3345 3345  
3346 3346 rc = put_entry(buf, sizeof(u32), 4, fp);
3347 3347 if (rc)