[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160418113954.GA13114@thunk.org>
Date: Mon, 18 Apr 2016 07:39:54 -0400
From: Theodore Ts'o <tytso@....edu>
To: "H. Peter Anvin" <hpa@...or.com>
Cc: Josh Triplett <josh@...htriplett.org>,
Greg KH <gregkh@...uxfoundation.org>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
"Richard W.M. Jones" <rjones@...hat.com>,
linux-kernel@...r.kernel.org, Thomas Gleixner <tglx@...utronix.de>,
mingo@...hat.com, Andrew Morton <akpm@...ux-foundation.org>,
luto@...nel.org, viro@...iv.linux.org.uk, zab <zab@...hat.com>,
emunson@...mai.com,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
Andrea Arcangeli <aarcange@...hat.com>,
Pavel Emelyanov <xemul@...allels.com>, sfr@...b.auug.org.au,
Milosz Tanski <milosz@...in.com>,
rostedt <rostedt@...dmis.org>, arnd@...db.de,
ebiederm@...ssion.com, gorcunov <gorcunov@...nvz.org>,
iulia manda21 <iulia.manda21@...il.com>,
dave hansen <dave.hansen@...ux.intel.com>,
mguzik <mguzik@...hat.com>, adobriyan@...il.com,
Davidlohr Bueso <dave@...olabs.net>,
linux-api <linux-api@...r.kernel.org>, gorcunov@...il.com,
fw@...eb.enyo.de, Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCH v2 0/2] vfs: Define new syscall getumask.
On Sun, Apr 17, 2016 at 08:00:54PM -0700, H. Peter Anvin wrote:
> Now, we could of course have __linux_getrandom() and make a weak alias
> for getrandom(), but I really don't understand the use case for
> exporting all the system calls.
If we do create a libinux library, I'd definitely want getrandom(2) to
be defined as getrandom(), and not as sys_getrandom() or
linux_getrandom().
For bonus points we could also define a OpenBSD compatible
getentropy() interface so that programs that were already written to
use the OpenBSD interface (and perhaps have a configure test for it
already) would get the benefits of the getrandom(2) system call
immediately.
- Ted
Powered by blists - more mailing lists