Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157957871
D57157.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
853 B
Referenced Files
None
Subscribers
None
D57157.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D57157: linux: Support SYSLOG_ACTION_SIZE_BUFFER in syslog(2).
Attached
Detach File
Event Timeline
Log In to Comment