Skip to content

Commit df8ba95

Browse files
committed
Merge tag 'apparmor-pr-2017-11-30' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor
Pull apparmor bugfix from John Johansen: "Fix oops in audit_signal_cb hook marked for stable" * tag 'apparmor-pr-2017-11-30' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor: apparmor: fix oops in audit_signal_cb hook
2 parents 42062b9 + b12cbb2 commit df8ba95

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

security/apparmor/include/audit.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,19 @@ struct apparmor_audit_data {
121121
/* these entries require a custom callback fn */
122122
struct {
123123
struct aa_label *peer;
124-
struct {
125-
const char *target;
126-
kuid_t ouid;
127-
} fs;
124+
union {
125+
struct {
126+
const char *target;
127+
kuid_t ouid;
128+
} fs;
129+
int signal;
130+
};
128131
};
129132
struct {
130133
struct aa_profile *profile;
131134
const char *ns;
132135
long pos;
133136
} iface;
134-
int signal;
135137
struct {
136138
int rlim;
137139
unsigned long max;

0 commit comments

Comments
 (0)