From owner-svn-src-head@freebsd.org Mon Jun 1 20:05:52 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DD96B2F0C34; Mon, 1 Jun 2020 20:05:52 +0000 (UTC) (envelope-from eric@vangyzen.net) Received: from smtp.vangyzen.net (hotblack.vangyzen.net [IPv6:2607:fc50:1000:7400:216:3eff:fe72:314f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49bR4c0P2Hz4cH6; Mon, 1 Jun 2020 20:05:51 +0000 (UTC) (envelope-from eric@vangyzen.net) Received: from disco.vangyzen.net (unknown [70.97.188.230]) by smtp.vangyzen.net (Postfix) with ESMTPSA id 6816B56487; Mon, 1 Jun 2020 15:05:50 -0500 (CDT) Subject: Re: svn commit: r361699 - head/sys/kern To: Cy Schubert , Ryan Moeller Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <202006011843.051IhpMM085854@repo.freebsd.org> <202006012003.051K36sR039220@slippy.cwsent.com> From: Eric van Gyzen Message-ID: <6597389d-85a9-4661-77d2-bd81632ee197@vangyzen.net> Date: Mon, 1 Jun 2020 15:05:43 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <202006012003.051K36sR039220@slippy.cwsent.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49bR4c0P2Hz4cH6 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of eric@vangyzen.net designates 2607:fc50:1000:7400:216:3eff:fe72:314f as permitted sender) smtp.mailfrom=eric@vangyzen.net X-Spamd-Result: default: False [-2.59 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:c]; NEURAL_HAM_LONG(-0.99)[-0.991]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[vangyzen.net]; NEURAL_HAM_MEDIUM(-1.00)[-0.995]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.31)[-0.306]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:36236, ipnet:2607:fc50:1000::/36, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2020 20:05:52 -0000 >> void >> vfs_oexport_conv(const struct oexport_args *oexp, struct export_args *exp) >> { >> >> bcopy(oexp, exp, sizeof(*oexp)); >> - exp->ex_numsecflavors = 0; >> + if (exp->ex_flags & MNT_EXPORTED) { >> + exp->ex_numsecflavors = 1; >> + exp->ex_secflavors[0] = AUTH_SYS; > > #include will be needed for this. > > This of course opens a new can of worms with regard to namespace pollution. rpc/types.h and rpc/auth.h are sufficient, but that doesn't make the can much smaller. Eric