From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [PATCH v2 0/2] vfs: Define new syscall getumask. Date: Sun, 17 Apr 2016 19:02:42 -0700 Message-ID: <57144042.3090009@zytor.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20160418010925.GA7800-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Greg KH Cc: Theodore Ts'o , 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 , josh-iaAMLnmF4UmaiuxdJuQwMA@public.gmane.org, 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 , gorcunov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.orgf List-Id: linux-api@vger.kernel.org On 04/17/16 18:09, Greg KH wrote: >> >> There aren't a *lot* of such system calls, but even in that thread the >> "oh, only two applications need this, let them use syscall(3)" seems to >> remain. > > And only 2 applications will continue to use it because no one wants to > write syscall() wrappers for their individual applications, so it's a > vicious cycle :( > > I really like the 'libinux' idea, did anyone every hack up a first-pass > at this? And I'm guessing we have more syscalls now that would need to > be added (like getrandom(), but that shouldn't be too difficult. > I haven't hacked anything up yet, but I think it would be easy to simply take the klibc machinery, remove the stuff that isn't needed, and adjust the handling of errno(3). I think it is time I admit that it needs to be put on my TODO list. -hpa