Skip to content

Commit

Permalink
remove deadcode
Browse files Browse the repository at this point in the history
  • Loading branch information
RH-steve-grubb committed Jun 14, 2023
1 parent a643c50 commit c121c8f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/library/policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,18 +555,12 @@ void reply_event(int fd, const struct fanotify_event_metadata *metadata,

// Subj trust is rare. See if we have it.
if (e && (sn = subject_access(e->s, SUBJ_TRUST))) {
if (sn)
f.a.subj_trust = sn->val;
else
f.a.subj_trust = 2;
f.a.subj_trust = sn->val;
} else
f.a.subj_trust = 2;
f.a.subj_trust = 2;
// All objects have a trust value
if (e && (obj = get_obj_attr(e, OBJ_TRUST))) {
if (obj)
f.a.obj_trust = obj->val;
else // Only serious errors cause this
f.a.obj_trust = 2;
f.a.obj_trust = obj->val;
} else
f.a.obj_trust = 2;
write(fd, &f, sizeof(struct fan_audit_response));
Expand Down

0 comments on commit c121c8f

Please sign in to comment.