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>
/* 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