The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/2131

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Only start.c uses makes use of lsm_init, and calls it exlpicity, so we
can safety remove __attribute__((constructor)) of it.

Signed-off-by: Marcos Paulo de Souza <marcos.souza....@gmail.com>
From 711f7bae1521aa9b8b1439814bf045628afb6d6b Mon Sep 17 00:00:00 2001
From: Marcos Paulo de Souza <marcos.souza....@gmail.com>
Date: Mon, 5 Feb 2018 20:35:58 -0200
Subject: [PATCH] lsm.c: Remove constructor attribute

Only start.c uses makes use of lsm_init, and calls it exlpicity, so we
can safety remove __attribute__((constructor)) of it.

Signed-off-by: Marcos Paulo de Souza <marcos.souza....@gmail.com>
---
 src/lxc/lsm/lsm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/lxc/lsm/lsm.c b/src/lxc/lsm/lsm.c
index 5186fe902..93db2f93e 100644
--- a/src/lxc/lsm/lsm.c
+++ b/src/lxc/lsm/lsm.c
@@ -39,7 +39,6 @@ extern struct lsm_drv *lsm_apparmor_drv_init(void);
 extern struct lsm_drv *lsm_selinux_drv_init(void);
 extern struct lsm_drv *lsm_nop_drv_init(void);
 
-__attribute__((constructor))
 void lsm_init(void)
 {
        if (drv) {
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to