aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2015-07-29 21:09:33 -0700
committerMark Salyzyn <|account-1032276@2620:0:1000:1601:ec85:28e2:ddf:4b24>2015-10-29 20:11:36 +0000
commite471d38798061ba35a79ca4addaa304e848639cb (patch)
tree60045f1eb6c5569f43e65359a30013ae21fc8ee4 /security
parent63fcf829ca735bae6d483357da7fafa0d6c475be (diff)
Revert "SELinux: ss: Fix policy write for ioctl operations"
This reverts commit 6bdf36786e225facf5ad2ed383a29ffd488e60ac. Bug: 22846070 Change-Id: I47ae4ef40c688d96e2e5062506998808b9e4f603 Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Diffstat (limited to 'security')
-rw-r--r--security/selinux/ss/avtab.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/security/selinux/ss/avtab.c b/security/selinux/ss/avtab.c
index dd7466cb2021..2e4ff003abcd 100644
--- a/security/selinux/ss/avtab.c
+++ b/security/selinux/ss/avtab.c
@@ -565,9 +565,6 @@ int avtab_write_item(struct policydb *p, struct avtab_node *cur, void *fp)
return rc;
if (cur->key.specified & AVTAB_OP) {
- rc = put_entry(&cur->datum.u.ops->type, sizeof(u8), 1, fp);
- if (rc)
- return rc;
for (i = 0; i < ARRAY_SIZE(cur->datum.u.ops->op.perms); i++)
buf32[i] = cpu_to_le32(cur->datum.u.ops->op.perms[i]);
rc = put_entry(buf32, sizeof(u32),