Loading security/apparmor/apparmorfs.c +1 −1 Original line number Diff line number Diff line Loading @@ -91,7 +91,7 @@ static struct aa_loaddata *aa_simple_write_to_buffer(const char __user *userbuf, { struct aa_loaddata *data; BUG_ON(copy_size > alloc_size); AA_BUG(copy_size > alloc_size); if (*pos != 0) /* only writes from pos 0, that is complete writes */ Loading security/apparmor/audit.c +1 −1 Original line number Diff line number Diff line Loading @@ -119,7 +119,7 @@ void aa_audit_msg(int type, struct common_audit_data *sa, int aa_audit(int type, struct aa_profile *profile, struct common_audit_data *sa, void (*cb) (struct audit_buffer *, void *)) { BUG_ON(!profile); AA_BUG(!profile); if (type == AUDIT_APPARMOR_AUTO) { if (likely(!aad(sa)->error)) { Loading security/apparmor/context.c +2 −2 Original line number Diff line number Diff line Loading @@ -95,7 +95,7 @@ int aa_replace_current_profile(struct aa_profile *profile) { struct aa_task_ctx *ctx = current_ctx(); struct cred *new; BUG_ON(!profile); AA_BUG(!profile); if (ctx->profile == profile) return 0; Loading Loading @@ -166,7 +166,7 @@ int aa_set_current_hat(struct aa_profile *profile, u64 token) struct cred *new = prepare_creds(); if (!new) return -ENOMEM; BUG_ON(!profile); AA_BUG(!profile); ctx = cred_ctx(new); if (!ctx->previous) { Loading security/apparmor/lsm.c +1 −1 Original line number Diff line number Diff line Loading @@ -406,7 +406,7 @@ static int common_file_perm(const char *op, struct file *file, u32 mask) struct aa_profile *profile, *fprofile = aa_cred_profile(file->f_cred); int error = 0; BUG_ON(!fprofile); AA_BUG(!fprofile); if (!file->f_path.mnt || !path_mediated_fs(file->f_path.dentry)) Loading Loading
security/apparmor/apparmorfs.c +1 −1 Original line number Diff line number Diff line Loading @@ -91,7 +91,7 @@ static struct aa_loaddata *aa_simple_write_to_buffer(const char __user *userbuf, { struct aa_loaddata *data; BUG_ON(copy_size > alloc_size); AA_BUG(copy_size > alloc_size); if (*pos != 0) /* only writes from pos 0, that is complete writes */ Loading
security/apparmor/audit.c +1 −1 Original line number Diff line number Diff line Loading @@ -119,7 +119,7 @@ void aa_audit_msg(int type, struct common_audit_data *sa, int aa_audit(int type, struct aa_profile *profile, struct common_audit_data *sa, void (*cb) (struct audit_buffer *, void *)) { BUG_ON(!profile); AA_BUG(!profile); if (type == AUDIT_APPARMOR_AUTO) { if (likely(!aad(sa)->error)) { Loading
security/apparmor/context.c +2 −2 Original line number Diff line number Diff line Loading @@ -95,7 +95,7 @@ int aa_replace_current_profile(struct aa_profile *profile) { struct aa_task_ctx *ctx = current_ctx(); struct cred *new; BUG_ON(!profile); AA_BUG(!profile); if (ctx->profile == profile) return 0; Loading Loading @@ -166,7 +166,7 @@ int aa_set_current_hat(struct aa_profile *profile, u64 token) struct cred *new = prepare_creds(); if (!new) return -ENOMEM; BUG_ON(!profile); AA_BUG(!profile); ctx = cred_ctx(new); if (!ctx->previous) { Loading
security/apparmor/lsm.c +1 −1 Original line number Diff line number Diff line Loading @@ -406,7 +406,7 @@ static int common_file_perm(const char *op, struct file *file, u32 mask) struct aa_profile *profile, *fprofile = aa_cred_profile(file->f_cred); int error = 0; BUG_ON(!fprofile); AA_BUG(!fprofile); if (!file->f_path.mnt || !path_mediated_fs(file->f_path.dentry)) Loading