[lxc-devel] [lxc/master] lsm.c: Remove constructor attribute
marcosps on Github
lxc-bot at linuxcontainers.org
Mon Feb 5 22:38:02 UTC 2018
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 495 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180205/d5baaab3/attachment.bin>
-------------- next part --------------
From 711f7bae1521aa9b8b1439814bf045628afb6d6b Mon Sep 17 00:00:00 2001
From: Marcos Paulo de Souza <marcos.souza.org at 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.org at 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) {
More information about the lxc-devel
mailing list