Page MenuHomeFreeBSD

D57157.diff
No OneTemporary

D57157.diff

diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h
--- a/sys/compat/linux/linux_misc.h
+++ b/sys/compat/linux/linux_misc.h
@@ -158,6 +158,7 @@
/* Linux syslog flags */
#define LINUX_SYSLOG_ACTION_READ_ALL 3
+#define LINUX_SYSLOG_ACTION_SIZE_BUFFER 10
/* Linux seccomp flags */
#define LINUX_SECCOMP_GET_ACTION_AVAIL 2
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -2497,7 +2497,10 @@
u_int seq;
int buflen, error;
- if (args->type != LINUX_SYSLOG_ACTION_READ_ALL) {
+ if (args->type == LINUX_SYSLOG_ACTION_SIZE_BUFFER) {
+ error = (msgbufsize);
+ return (error);
+ } else if (args->type != LINUX_SYSLOG_ACTION_READ_ALL) {
linux_msg(td, "syslog unsupported type 0x%x", args->type);
return (EINVAL);
}

File Metadata

Mime Type
text/plain
Expires
Wed, May 27, 10:18 PM (12 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33434749
Default Alt Text
D57157.diff (853 B)

Event Timeline