Commit 65f7f666 authored by Xiu Jianfeng's avatar Xiu Jianfeng Committed by John Johansen
Browse files

apparmor: make __aa_path_perm() static



Make __aa_path_perm() static as it's only used inside apparmor/file.c.

Signed-off-by: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent adaa9a3f
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -220,8 +220,9 @@ aa_state_t aa_str_perms(struct aa_policydb *file_rules, aa_state_t start,
	return state;
}

int __aa_path_perm(const char *op, struct aa_profile *profile, const char *name,
		   u32 request, struct path_cond *cond, int flags,
static int __aa_path_perm(const char *op, struct aa_profile *profile,
			  const char *name, u32 request,
			  struct path_cond *cond, int flags,
			  struct aa_perms *perms)
{
	struct aa_ruleset *rules = list_first_entry(&profile->rules,
+0 −3
Original line number Diff line number Diff line
@@ -119,9 +119,6 @@ aa_state_t aa_str_perms(struct aa_policydb *file_rules, aa_state_t start,
			const char *name, struct path_cond *cond,
			struct aa_perms *perms);

int __aa_path_perm(const char *op, struct aa_profile *profile,
		   const char *name, u32 request, struct path_cond *cond,
		   int flags, struct aa_perms *perms);
int aa_path_perm(const char *op, struct aa_label *label,
		 const struct path *path, int flags, u32 request,
		 struct path_cond *cond);