linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Posix ACL on non-GPL modules.
@ 2013-10-11 23:30 Massimo Maggi
  2013-10-12  8:14 ` Christoph Hellwig
  0 siblings, 1 reply; 4+ messages in thread
From: Massimo Maggi @ 2013-10-11 23:30 UTC (permalink / raw)
  To: linux-fsdevel

Dear Sirs,
Every Posix ACL-related symbol is currently exported also for non-GPL
modules.
But the quite important function "posix_acl_release", declared inline in
include/linux/posix_acl.h, uses the GPL-only symbol "kfree_call_rcu".
So Posix ACL-related functionalities can't be used from non-GPL modules.
Can someone please clarify this situation? It seems an unwanted side-effect.
Small example pasted at the end of this message.
If this is effectively unwanted and a fix gets pulled by Linus, can
someone recommend a workaround for older kernels?

Thank you,
Massimo Maggi
PS:I'm interested in using Posix ACL functions from code in another Open
Source Initiative-approved license, NOT in proprietary closed-source code.

Building this module:
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/posix_acl.h>

MODULE_LICENSE("CDDL");

static int __init startup(void)
{
        struct posix_acl *a = posix_acl_alloc(1,0);
        //DO SOMETHING POTENTIALLY USEFUL
        posix_acl_release(a);
        return 0;
}


module_init(startup);

Leads to this error:
FATAL: modpost: GPL-incompatible module testmodule.ko uses GPL-only
symbol 'kfree_call_rcu'

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-12 14:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-11 23:30 Posix ACL on non-GPL modules Massimo Maggi
2013-10-12  8:14 ` Christoph Hellwig
2013-10-12 12:51   ` Massimo Maggi
     [not found]   ` <CAOPrR7qkkBbYi2esgwbN3-OrkPeP=W9OG59ArUSqLf67ia8DSg@mail.gmail.com>
2013-10-12 14:48     ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).