limits: lower KDBUS_MSG_MAX_FDS to 253
authorDaniel Mack <daniel@zonque.org>
Thu, 16 Oct 2014 10:16:56 +0000 (12:16 +0200)
committerDaniel Mack <daniel@zonque.org>
Thu, 16 Oct 2014 10:16:56 +0000 (12:16 +0200)
Lower the number of maximum file descriptors accepted as a message item
to 253. See commit bba14de98 (Linux) for the rationale behind that
number.

Signed-off-by: Daniel Mack <daniel@zonque.org>
limits.h

index fa07136b2c22a0474b85c44ba3e7ca3aa2298c70..29cf30fcce07c503df5354adcf689946cfa1fc9d 100644 (file)
--- a/limits.h
+++ b/limits.h
 /* maximum number of message items */
 #define KDBUS_MSG_MAX_ITEMS            128
 
-/* maximum number of passed file descriptors */
-#define KDBUS_MSG_MAX_FDS              256
+/*
+ * Maximum number of passed file descriptors
+ * Number taken from AF_UNIX upper limits
+ */
+#define KDBUS_MSG_MAX_FDS              253
 
 /* maximum message payload size */
 #define KDBUS_MSG_MAX_PAYLOAD_VEC_SIZE         SZ_2M