From: Mat Martineau <mathew.j.martineau@linux.intel.com>
To: linux-security-module@vger.kernel.org
Subject: Re: [PATCH] uapi/linux/keyctl.h: don't use C++ reserved keyword as a struct member name
Date: Wed, 11 Apr 2018 16:01:57 +0000 [thread overview]
Message-ID: <alpine.OSX.2.21.1804110821140.8210@rkwong-mobl2.amr.corp.intel.com> (raw)
In-Reply-To: <19745.1523350020@warthog.procyon.org.uk>
On Tue, 10 Apr 2018, David Howells wrote:
> Randy Dunlap <rdunlap@infradead.org> wrote:
>
>> Since this header is in "include/uapi/linux/", apparently people
>> want to use it in userspace programs -- even in C++ ones.
>> However, the header uses a C++ reserved keyword ("private"),
>> so change that to "dh_private" instead to allow the header file
>> to be used in C++ userspace.
>>
>> Fixes: https://bugzilla.kernel.org/show_bug.cgi?id\x191051
>
> Ugh. Yeah. This is a UAPI breaker, but I think we have to do it, despite it
> being 2 years old. Maybe wrap that element in a #ifdef so it's still allowed
> in C?
>
> cc'ing Mat Martineau as he's the originator of the structure.
I agree with David's assessment.
The keyctl() system call wrapper is implemented in libkeyutils, which may
reduce the need for the proposed ifdef. libkeyutils and its users don't
require any updates if this patch is merged because it has its own
keyword-free structure definition.
--
Mat Martineau
Intel OTC
WARNING: multiple messages have this Message-ID (diff)
From: Mat Martineau <mathew.j.martineau@linux.intel.com>
To: David Howells <dhowells@redhat.com>
Cc: Randy Dunlap <rdunlap@infradead.org>,
LKML <linux-kernel@vger.kernel.org>,
James Morris <jmorris@namei.org>,
"Serge E. Hallyn" <serge@hallyn.com>,
keyrings@vger.kernel.org,
linux-security-module <linux-security-module@vger.kernel.org>
Subject: Re: [PATCH] uapi/linux/keyctl.h: don't use C++ reserved keyword as a struct member name
Date: Wed, 11 Apr 2018 09:01:57 -0700 (PDT) [thread overview]
Message-ID: <alpine.OSX.2.21.1804110821140.8210@rkwong-mobl2.amr.corp.intel.com> (raw)
In-Reply-To: <19745.1523350020@warthog.procyon.org.uk>
On Tue, 10 Apr 2018, David Howells wrote:
> Randy Dunlap <rdunlap@infradead.org> wrote:
>
>> Since this header is in "include/uapi/linux/", apparently people
>> want to use it in userspace programs -- even in C++ ones.
>> However, the header uses a C++ reserved keyword ("private"),
>> so change that to "dh_private" instead to allow the header file
>> to be used in C++ userspace.
>>
>> Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=191051
>
> Ugh. Yeah. This is a UAPI breaker, but I think we have to do it, despite it
> being 2 years old. Maybe wrap that element in a #ifdef so it's still allowed
> in C?
>
> cc'ing Mat Martineau as he's the originator of the structure.
I agree with David's assessment.
The keyctl() system call wrapper is implemented in libkeyutils, which may
reduce the need for the proposed ifdef. libkeyutils and its users don't
require any updates if this patch is merged because it has its own
keyword-free structure definition.
--
Mat Martineau
Intel OTC
WARNING: multiple messages have this Message-ID (diff)
From: mathew.j.martineau@linux.intel.com (Mat Martineau)
To: linux-security-module@vger.kernel.org
Subject: [PATCH] uapi/linux/keyctl.h: don't use C++ reserved keyword as a struct member name
Date: Wed, 11 Apr 2018 09:01:57 -0700 (PDT) [thread overview]
Message-ID: <alpine.OSX.2.21.1804110821140.8210@rkwong-mobl2.amr.corp.intel.com> (raw)
In-Reply-To: <19745.1523350020@warthog.procyon.org.uk>
On Tue, 10 Apr 2018, David Howells wrote:
> Randy Dunlap <rdunlap@infradead.org> wrote:
>
>> Since this header is in "include/uapi/linux/", apparently people
>> want to use it in userspace programs -- even in C++ ones.
>> However, the header uses a C++ reserved keyword ("private"),
>> so change that to "dh_private" instead to allow the header file
>> to be used in C++ userspace.
>>
>> Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=191051
>
> Ugh. Yeah. This is a UAPI breaker, but I think we have to do it, despite it
> being 2 years old. Maybe wrap that element in a #ifdef so it's still allowed
> in C?
>
> cc'ing Mat Martineau as he's the originator of the structure.
I agree with David's assessment.
The keyctl() system call wrapper is implemented in libkeyutils, which may
reduce the need for the proposed ifdef. libkeyutils and its users don't
require any updates if this patch is merged because it has its own
keyword-free structure definition.
--
Mat Martineau
Intel OTC
--
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:[~2018-04-11 16:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-06 18:58 [PATCH] uapi/linux/keyctl.h: don't use C++ reserved keyword as a struct member name Randy Dunlap
2018-04-06 18:58 ` Randy Dunlap
2018-04-06 18:58 ` Randy Dunlap
2018-04-10 8:47 ` David Howells
2018-04-10 8:47 ` David Howells
2018-04-10 8:47 ` David Howells
2018-04-11 16:01 ` Mat Martineau [this message]
2018-04-11 16:01 ` Mat Martineau
2018-04-11 16:01 ` Mat Martineau
2018-04-10 13:50 ` Sasha Levin
2018-04-10 13:50 ` Sasha Levin
2018-04-10 13:50 ` Sasha Levin
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.OSX.2.21.1804110821140.8210@rkwong-mobl2.amr.corp.intel.com \
--to=mathew.j.martineau@linux.intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.