diff options
-rw-r--r-- | security/apparmor/file.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/security/apparmor/file.c b/security/apparmor/file.c index f113eedbc208fe..5c984792cbf093 100644 --- a/security/apparmor/file.c +++ b/security/apparmor/file.c @@ -541,11 +541,8 @@ static int __file_sock_perm(const char *op, const struct cred *subj_cred, struct aa_label *flabel, struct file *file, u32 request, u32 denied) { - struct socket *sock = (struct socket *) file->private_data; int error; - AA_BUG(!sock); - /* revalidation due to label out of date. No revocation at this time */ if (!denied && aa_label_is_subset(flabel, label)) return 0; |