Hi Steve,
[auto build test ERROR on linus/master]
[also build test ERROR on v4.14-rc2 next-20170929]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the
system]
url:
https://github.com/0day-ci/linux/commits/Steve-Grubb/audit-Record-fanotif...
config: i386-randconfig-x0-09300058 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All error/warnings (new ones prefixed by >>):
In file included from fs/exec.c:56:0:
> include/linux/audit.h:215:23: error: expected identifier or
'(' before numeric constant
#define audit_enabled 0
^
> include/linux/fsnotify_backend.h:193:9: note: in expansion of
macro 'audit_enabled'
bool audit_enabled;
^~~~~~~~~~~~~
In file included from include/linux/fsnotify.h:14:0,
from fs/exec.c:59:
> include/linux/fsnotify_backend.h:194:3: warning: no semicolon at
end of struct or union
} fanotify_data;
^
vim +215 include/linux/audit.h
96368701 Paul Moore 2016-01-13 168
96368701 Paul Moore 2016-01-13 169 extern u32 audit_enabled;
96368701 Paul Moore 2016-01-13 170 #else /* CONFIG_AUDIT */
96368701 Paul Moore 2016-01-13 171 static inline __printf(4, 5)
96368701 Paul Moore 2016-01-13 172 void audit_log(struct audit_context *ctx, gfp_t
gfp_mask, int type,
96368701 Paul Moore 2016-01-13 173 const char *fmt, ...)
96368701 Paul Moore 2016-01-13 174 { }
96368701 Paul Moore 2016-01-13 175 static inline struct audit_buffer
*audit_log_start(struct audit_context *ctx,
96368701 Paul Moore 2016-01-13 176 gfp_t gfp_mask, int type)
96368701 Paul Moore 2016-01-13 177 {
96368701 Paul Moore 2016-01-13 178 return NULL;
96368701 Paul Moore 2016-01-13 179 }
96368701 Paul Moore 2016-01-13 180 static inline __printf(2, 3)
96368701 Paul Moore 2016-01-13 181 void audit_log_format(struct audit_buffer *ab, const
char *fmt, ...)
96368701 Paul Moore 2016-01-13 182 { }
96368701 Paul Moore 2016-01-13 183 static inline void audit_log_end(struct audit_buffer
*ab)
96368701 Paul Moore 2016-01-13 184 { }
96368701 Paul Moore 2016-01-13 185 static inline void audit_log_n_hex(struct
audit_buffer *ab,
96368701 Paul Moore 2016-01-13 186 const unsigned char *buf, size_t len)
96368701 Paul Moore 2016-01-13 187 { }
96368701 Paul Moore 2016-01-13 188 static inline void audit_log_n_string(struct
audit_buffer *ab,
96368701 Paul Moore 2016-01-13 189 const char *buf, size_t n)
96368701 Paul Moore 2016-01-13 190 { }
96368701 Paul Moore 2016-01-13 191 static inline void
audit_log_n_untrustedstring(struct audit_buffer *ab,
96368701 Paul Moore 2016-01-13 192 const char *string, size_t n)
96368701 Paul Moore 2016-01-13 193 { }
96368701 Paul Moore 2016-01-13 194 static inline void audit_log_untrustedstring(struct
audit_buffer *ab,
96368701 Paul Moore 2016-01-13 195 const char *string)
96368701 Paul Moore 2016-01-13 196 { }
96368701 Paul Moore 2016-01-13 197 static inline void audit_log_d_path(struct
audit_buffer *ab,
96368701 Paul Moore 2016-01-13 198 const char *prefix,
96368701 Paul Moore 2016-01-13 199 const struct path *path)
96368701 Paul Moore 2016-01-13 200 { }
96368701 Paul Moore 2016-01-13 201 static inline void audit_log_key(struct audit_buffer
*ab, char *key)
96368701 Paul Moore 2016-01-13 202 { }
96368701 Paul Moore 2016-01-13 203 static inline void audit_log_link_denied(const char
*string,
96368701 Paul Moore 2016-01-13 204 const struct path *link)
96368701 Paul Moore 2016-01-13 205 { }
96368701 Paul Moore 2016-01-13 206 static inline void audit_log_secctx(struct
audit_buffer *ab, u32 secid)
96368701 Paul Moore 2016-01-13 207 { }
96368701 Paul Moore 2016-01-13 208 static inline int audit_log_task_context(struct
audit_buffer *ab)
96368701 Paul Moore 2016-01-13 209 {
96368701 Paul Moore 2016-01-13 210 return 0;
96368701 Paul Moore 2016-01-13 211 }
96368701 Paul Moore 2016-01-13 212 static inline void audit_log_task_info(struct
audit_buffer *ab,
96368701 Paul Moore 2016-01-13 213 struct task_struct *tsk)
96368701 Paul Moore 2016-01-13 214 { }
96368701 Paul Moore 2016-01-13 @215 #define audit_enabled 0
96368701 Paul Moore 2016-01-13 216 #endif /* CONFIG_AUDIT */
96368701 Paul Moore 2016-01-13 217
:::::: The code at line 215 was first introduced by commit
:::::: 96368701e1c89057bbf39222e965161c68a85b4b audit: force seccomp event logging to
honor the audit_enabled flag
:::::: TO: Paul Moore <pmoore(a)redhat.com>
:::::: CC: Paul Moore <paul(a)paul-moore.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation