Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f874738e authored by Richard Guy Briggs's avatar Richard Guy Briggs Committed by Eric Paris
Browse files

audit: remove open_arg() function that is never used



open_arg() was added in commit 55669bfa "audit: AUDIT_PERM support"
and never used.  Remove it.

Signed-off-by: default avatarRichard Guy Briggs <rgb@redhat.com>
parent 9ef91514
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -126,14 +126,6 @@ struct audit_tree_refs {
	struct audit_chunk *c[31];
};

static inline int open_arg(int flags, int mask)
{
	int n = ACC_MODE(flags);
	if (flags & (O_TRUNC | O_CREAT))
		n |= AUDIT_PERM_WRITE;
	return n & mask;
}

static int audit_match_perm(struct audit_context *ctx, int mask)
{
	unsigned n;