SELinux: ss: Fix policy write for ioctl operations
authorJeff Vander Stoep <jeffv@google.com>
Wed, 29 Apr 2015 18:14:23 +0000 (11:14 -0700)
committerJeff Vander Stoep <jeffv@google.com>
Wed, 29 Apr 2015 18:32:58 +0000 (11:32 -0700)
commit8cdfb356b51e29494ca0b9e4e86727d6f841a52d
tree7ab29bccca61bf32e5edd96acfb4d36f69fdae91
parent1bc0c2460f5e63c8e14e3aa216f7e4763555dd10
SELinux: ss: Fix policy write for ioctl operations

Security server omits the type field when writing out the contents of the
avtab from /sys/fs/selinux/policy. This leads to a corrupt output. No impact
on the running kernel or its loaded policy. Impacts CTS neverallow tests.

Bug: 20665861
Change-Id: I657e18013dd5a1f40052bc2b02dd8e0afee9bcfb
Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
security/selinux/ss/avtab.c