From mboxrd@z Thu Jan 1 00:00:00 1970 From: Theodore Ts'o Subject: Re: [PATCH v2 0/2] vfs: Define new syscall getumask. Date: Mon, 18 Apr 2016 07:39:54 -0400 Message-ID: <20160418113954.GA13114@thunk.org> References: <1460552272-15985-1-git-send-email-rjones@redhat.com> <2143735451.55767.1460561962122.JavaMail.zimbra@efficios.com> <1736004700.56566.1460581285951.JavaMail.zimbra@efficios.com> <20160414021348.GB16656@thunk.org> <57142C80.6070005@zytor.com> <20160418010925.GA7800@kroah.com> <20160418021259.GB16600@x> <57144343.4090402@zytor.com> <20160418023721.GA17282@x> <57144DE6.9050409@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <57144DE6.9050409-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "H. Peter Anvin" Cc: Josh Triplett , Greg KH , Mathieu Desnoyers , "Richard W.M. Jones" , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Thomas Gleixner , mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, Andrew Morton , luto-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, viro-RmSDqhL/yNMiFSDQTTA3OLVCufUGDwFn@public.gmane.org, zab , emunson-JqFfY2XvxFXQT0dZR+AlfA@public.gmane.org, "Paul E. McKenney" , Andrea Arcangeli , Pavel Emelyanov , sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org, Milosz Tanski , rostedt , arnd-r2nGTMty4D4@public.gmane.org, ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org, gorcunov , iulia manda21 , dave hansen , mguzik , adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, Davidlohr Bueso , linux-api List-Id: linux-api@vger.kernel.org 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