From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764084AbcINTFl (ORCPT ); Wed, 14 Sep 2016 15:05:41 -0400 Received: from out03.mta.xmission.com ([166.70.13.233]:54300 "EHLO out03.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756110AbcINTFf (ORCPT ); Wed, 14 Sep 2016 15:05:35 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: Greg Kroah-Hartman , Jiri Slaby Cc: "H. Peter Anvin" , , , Linux Containers Date: Wed, 14 Sep 2016 13:52:00 -0500 Message-ID: <87sht25n73.fsf@x220.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1bkFUz-0000jQ-PW;;;mid=<87sht25n73.fsf@x220.int.ebiederm.org>;;;hst=in01.mta.xmission.com;;;ip=97.119.97.64;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1/kR9IAEYU5Rk1o2xodQSHhTjNIJRGvPSA= X-SA-Exim-Connect-IP: 97.119.97.64 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.7 XMSubLong Long Subject * 0.0 TVD_RCVD_IP Message was received from an IP address * 0.3 TooManyTo_001 Multiple "To" Header Recipients 2x (uncommon) * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4999] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_02 5+ unique symbols in subject * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Greg Kroah-Hartman , Jiri Slaby X-Spam-Relay-Country: X-Spam-Timing: total 279 ms - load_scoreonly_sql: 0.06 (0.0%), signal_user_changed: 3.1 (1.1%), b_tie_ro: 2.2 (0.8%), parse: 1.15 (0.4%), extract_message_metadata: 3.8 (1.3%), get_uri_detail_list: 1.43 (0.5%), tests_pri_-1000: 3.7 (1.3%), tests_pri_-950: 1.20 (0.4%), tests_pri_-900: 1.00 (0.4%), tests_pri_-400: 18 (6.4%), check_bayes: 17 (6.0%), b_tokenize: 4.8 (1.7%), b_tok_get_all: 6 (2.0%), b_comp_prob: 1.59 (0.6%), b_tok_touch_all: 2.2 (0.8%), b_finish: 0.61 (0.2%), tests_pri_0: 234 (83.8%), check_dkim_signature: 0.60 (0.2%), check_dkim_adsp: 3.0 (1.1%), tests_pri_500: 3.7 (1.3%), rewrite_mail: 0.00 (0.0%) Subject: [PATCH tty-next 0/6] Minor devpts cleanups, fixes and enhancments X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Greg please apply the following patches to tty-next. If tty-next is not the proper tree please let me know and I will take these patches through my user namespace tree. The follow patches perform a few small cleanups and one enhancement to devpts, with a net decrease in code size. The big achievement from a code maintenance point of view is being able to use mount_nodev in devpts_mount. The only really significant bug fix is handling the very unlikely case when kzalloc fails in new_pts_fs_info called from devpts_fill_super and s_fs_info is NULL when devpts_kill_sb is called from deactivate_locked super. The final patch is an enhancment to use the fsuid and fsgid of the mounter of devpts as the owner of /dev/pts/ptmx. This is a feature that has been asked for by users of user namespaces a couple of times, so that they are not required to have uid 0 mapped into a user namespace to use devpts. Eric fs/devpts/inode.c | 71 ++++++++++++++++++++----------------------------------- 1 file changed, 26 insertions(+), 45 deletions(-) Eric W. Biederman (6): devpts: Move parse_mount_options into fill_super devpts: Move the creation of /dev/pts/ptmx into fill_super devpts: Simplify devpts_mount by using mount_nodev devpts: Make devpts_kill_sb safe if fsi is NULL devpts: Remove sync_filesystems devpts: Change the owner of /dev/pts/ptmx to the mounter of /dev/pts