Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250787
b: refs/heads/master
c: 1214eac
h: refs/heads/master
i:
  250785: 4cbcf07
  250783: 06f1916
v: v3
  • Loading branch information
Harry Ciao authored and Eric Paris committed Apr 7, 2011
1 parent d3f3a8c commit b0ff072
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eba71de2cb7c02c5ae4f2ad3656343da71bc4661
refs/heads/master: 1214eac73f798bccabc6adb55e7b2d787527c13c
10 changes: 5 additions & 5 deletions trunk/security/selinux/ss/policydb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2275,6 +2275,11 @@ int policydb_read(struct policydb *p, void *fp)
p->symtab[i].nprim = nprim;
}

rc = -EINVAL;
p->process_class = string_to_security_class(p, "process");
if (!p->process_class)
goto bad;

rc = avtab_read(&p->te_avtab, fp, p);
if (rc)
goto bad;
Expand Down Expand Up @@ -2358,11 +2363,6 @@ int policydb_read(struct policydb *p, void *fp)
if (rc)
goto bad;

rc = -EINVAL;
p->process_class = string_to_security_class(p, "process");
if (!p->process_class)
goto bad;

rc = -EINVAL;
p->process_trans_perms = string_to_av_perm(p, p->process_class, "transition");
p->process_trans_perms |= string_to_av_perm(p, p->process_class, "dyntransition");
Expand Down

0 comments on commit b0ff072

Please sign in to comment.