From nobody Mon Aug 28 15:57:42 2023 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RZFZN0gvsz4rhNt for ; Mon, 28 Aug 2023 15:57:48 +0000 (UTC) (envelope-from dchagin@heemeyer.club) Received: from heemeyer.club (heemeyer.club [195.93.173.158]) (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 4RZFZL75WWz3CkK for ; Mon, 28 Aug 2023 15:57:46 +0000 (UTC) (envelope-from dchagin@heemeyer.club) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of dchagin@heemeyer.club has no SPF policy when checking 195.93.173.158) smtp.mailfrom=dchagin@heemeyer.club; dmarc=none Received: from heemeyer.club (localhost [127.0.0.1]) by heemeyer.club (8.17.2/8.16.1) with ESMTP id 37SFvgTW067545 for ; Mon, 28 Aug 2023 18:57:42 +0300 (MSK) (envelope-from dchagin@heemeyer.club) Received: (from dchagin@localhost) by heemeyer.club (8.17.2/8.16.1/Submit) id 37SFvgJ5067544 for current@freebsd.org; Mon, 28 Aug 2023 18:57:42 +0300 (MSK) (envelope-from dchagin) Date: Mon, 28 Aug 2023 18:57:42 +0300 From: Dmitry Chagin To: current@freebsd.org Subject: Re: Possible issue with linux xattr support? Message-ID: References: <3q2k3tje2ig2s6wzy4hzvjmoyejiecminvcvevivumtukxrgki@btnpjbztyfa6> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Bar: / X-Spamd-Result: default: False [-0.73 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.93)[-0.932]; FORGED_SENDER(0.30)[dchagin@freebsd.org,dchagin@heemeyer.club]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:61400, ipnet:195.93.173.0/24, country:RU]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[current@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; R_SPF_NA(0.00)[no SPF record]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; FROM_NEQ_ENVFROM(0.00)[dchagin@freebsd.org,dchagin@heemeyer.club]; FREEFALL_USER(0.00)[dchagin]; RCVD_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[] X-Rspamd-Queue-Id: 4RZFZL75WWz3CkK On Mon, Aug 28, 2023 at 08:03:33AM +0200, Felix Palmen wrote: > * Cy Schubert [20230827 16:59]: > > On August 27, 2023 12:55:23 PM PDT, Felix Palmen wrote: > > >* Dmitry Chagin [20230827 22:46]: > > >> On Sun, Aug 27, 2023 at 07:59:32PM +0200, Felix Palmen wrote: > > >> > * Dmitry Chagin [20230827 20:54]: > > >> > > 1. which fs are you using? > > >> > > > >> > ZFS. > > >> > > > >> > > 2. jailed? > > >> > > > >> > Yes, this is during building ports with poudriere. > > >> > > > >> > > >> I think it's a weird prohibition on changing system namespace extattr > > >> attributes, look to comments in extattr_check_cred() > > > > > >Maybe that's when I should finally start trying to understand the stuff > > >in src.git ;) > > > > > >> I can fix this completely disabling exttatr for jailed proc, > > >> however, it's gonna be bullshit, though > > > > > >Would probably be better than nothing. AFAIK, "Linux jails" are used a > > >lot, probably with userlands from distributions actually using xattr. > > > > > >Cheers, Felix > > > > > > > If we are to break it to fix a problem, maybe a sysctl to enable/disable then? > > IMHO depends on the exact nature of the problem. If it's confirmed that > it (always and only) breaks for jailed processes, just disabling it for > them would be the better workaround. "No-op" calls won't break anything. > please, try: https://people.freebsd.org/~dchagin/xattrerror.patch