Blame SOURCES/libnetlabel-message_size.patch

5527e2
commit 8295000fd7d146d2a1eeb75ab2d8fe0c598b8e99
5527e2
Author: Paul Moore <pmoore@redhat.com>
5527e2
Date:   Wed Jan 15 10:00:27 2014 -0500
5527e2
5527e2
    libnetlabel: increase the default message size of 8k
5527e2
    
5527e2
    In some cases, e.g. a CIPSO DOI definition with a large number of
5527e2
    translations, the message would be too large to fit in the default
5527e2
    message buffer.  This patch fixes this by increasing the default
5527e2
    message size to 8kb.
5527e2
    
5527e2
    Signed-off-by: Paul Moore <pmoore@redhat.com>
5527e2
5527e2
diff --git a/libnetlabel/netlabel_init.c b/libnetlabel/netlabel_init.c
5527e2
index 79ba80e..ad2b7f6 100644
5527e2
--- a/libnetlabel/netlabel_init.c
5527e2
+++ b/libnetlabel/netlabel_init.c
5527e2
@@ -46,6 +46,8 @@ int nlbl_init(void)
5527e2
 {
5527e2
 	int ret_val;
5527e2
 
5527e2
+	nlmsg_set_default_size(8096);
5527e2
+
5527e2
 	ret_val = nlbl_mgmt_init();
5527e2
 	if (ret_val < 0)
5527e2
 		return ret_val;