| # Copyright 2019 syzkaller project authors. All rights reserved. |
| # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. |
| |
| include <sys/ioccom.h> |
| include <sys/syslog.h> |
| include <sys/types.h> |
| include <fcntl.h> |
| |
| resource fd_klog[fd] |
| |
| openat$klog(fd const[AT_FDCWD], file ptr[in, string["/dev/klog"]], flags flags[open_flags], mode const[0]) fd_klog |
| |
| ioctl$LIOCSFD(fd fd_klog, cmd const[LIOCSFD], arg ptr[in, sock]) |
| |
| sendsyslog(msg buffer[in], len len[msg], flags flags[log_flags]) |
| |
| log_flags = LOG_PID, LOG_CONS, LOG_ODELAY, LOG_NDELAY, LOG_NOWAIT, LOG_PERROR |