From: james.l.morris@oracle.com (James Morris)
To: linux-security-module@vger.kernel.org
Subject: [PATCH] security: Export few symbols referred by other modules
Date: Thu, 7 Dec 2017 11:10:12 +1100 (AEDT) [thread overview]
Message-ID: <alpine.LFD.2.20.1712071100540.8348@localhost> (raw)
In-Reply-To: <20171206153231.GC29623@kroah.com>
On Wed, 6 Dec 2017, Greg KH wrote:
> On Wed, Dec 06, 2017 at 08:45:01PM +0530, Hareesh Gundu wrote:
> > On 12/5/2017 6:51 PM, Tetsuo Handa wrote:
> > > James Morris wrote:
> > > > On Tue, 5 Dec 2017, Hareesh Gundu wrote:
> > > >
> > > > > Export mmap_min_addr and security_mmap_addr() to allow
> > > > > kernel modules to use them.
> > > > >
> > > > > Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
> > Can other folks comment whether this should be EXPORT_SYMBOL or
> > EXPORT_SYMBOL_GPL ?
>
> What do you think?
The API has some EXPORT_SYMBOLs already and it's probably not useful to
add any EXPORT_SYMBOL_GPLs on a technical level, as you can't use the API
with just those.
In terms of documenting developer intent, it may make a difference.
So, what I would propose is that for new hooks which are exported, the
author can specify which type of export. In the case of hooks which were
added after EXPORT_SYMBOL_GPL was merged, and which are only now being
exported, ask the original author of the hook to decide, otherwise default
to EXPORT_SYMBOL, which is consistent with the most of the existing API.
For pre-EXPORT_SYMBOL_GPL hooks, if they need to be exported, continue to
do so as EXPORT_SYMBOL.
And obviously all of the above is contingent on having in-tree users of
exported hooks.
- James
--
James Morris
<james.l.morris@oracle.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-12-07 0:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-05 10:58 [PATCH] security: Export few symbols referred by other modules Hareesh Gundu
2017-12-05 12:04 ` James Morris
2017-12-05 13:21 ` Tetsuo Handa
2017-12-06 15:15 ` Hareesh Gundu
2017-12-06 15:32 ` Greg KH
2017-12-07 0:10 ` James Morris [this message]
2017-12-05 13:34 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.20.1712071100540.8348@localhost \
--to=james.l.morris@oracle.com \
--cc=linux-security-module@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).