Re: Possible issue with linux xattr support?

2023-09-05 Thread Dmitry Chagin
On Tue, Sep 05, 2023 at 07:52:52AM +0200, Felix Palmen wrote: > * Dmitry Chagin [20230904 21:49]: > > On Mon, Sep 04, 2023 at 08:43:02PM +0200, Felix Palmen wrote: > > > I guess I'll now do a full rebuild of my linuxulator userspace branch on > > > a kernel with that patch, just to be sure it

Re: Possible issue with linux xattr support?

2023-09-05 Thread Dmitry Chagin
On Tue, Sep 05, 2023 at 07:52:52AM +0200, Felix Palmen wrote: > * Dmitry Chagin [20230904 21:49]: > > On Mon, Sep 04, 2023 at 08:43:02PM +0200, Felix Palmen wrote: > > > I guess I'll now do a full rebuild of my linuxulator userspace branch on > > > a kernel with that patch, just to be sure it

Re: Possible issue with linux xattr support?

2023-09-04 Thread Felix Palmen
* Dmitry Chagin [20230904 21:49]: > On Mon, Sep 04, 2023 at 08:43:02PM +0200, Felix Palmen wrote: > > I guess I'll now do a full rebuild of my linuxulator userspace branch on > > a kernel with that patch, just to be sure it won't break anything else, > > this will take a few hours, I will report

Re: Possible issue with linux xattr support?

2023-09-04 Thread Felix Palmen
* Dmitry Chagin [20230904 21:49]: > On Mon, Sep 04, 2023 at 08:43:02PM +0200, Felix Palmen wrote: > > Thanks a lot for the quick patch! I have to admit I don't fully > > understand it immediately, but I assume it's an attempt to only list > > attributes not in system.* when that namespace is

Re: Possible issue with linux xattr support?

2023-09-04 Thread Dmitry Chagin
On Mon, Sep 04, 2023 at 08:43:02PM +0200, Felix Palmen wrote: > Hello Dmitry, > > * Dmitry Chagin [20230904 21:29]: > > Thanks for the report, > > please, try this: https://people.freebsd.org/~dchagin/lxattr.patch > > Don't be surprised, there 2 fixes > > Thanks a lot for the quick patch! I

Re: Possible issue with linux xattr support?

2023-09-04 Thread Felix Palmen
Hello Dmitry, * Dmitry Chagin [20230904 21:29]: > Thanks for the report, > please, try this: https://people.freebsd.org/~dchagin/lxattr.patch > Don't be surprised, there 2 fixes Thanks a lot for the quick patch! I have to admit I don't fully understand it immediately, but I assume it's an

Re: Possible issue with linux xattr support?

2023-09-04 Thread Dmitry Chagin
On Mon, Sep 04, 2023 at 04:03:54PM +0200, Felix Palmen wrote: > * Felix Palmen [20230904 15:39]: > > For some reason (I still have to try to get more information about it, > > will do soon), something else is broken now. While install from GNU > > coreutils works fine, some build systems use 'cp

Re: Possible issue with linux xattr support?

2023-09-04 Thread Felix Palmen
* Felix Palmen [20230904 15:39]: > For some reason (I still have to try to get more information about it, > will do soon), something else is broken now. While install from GNU > coreutils works fine, some build systems use 'cp -p' to install files > instead, which now fails with: > > | cp:

Re: Possible issue with linux xattr support?

2023-09-04 Thread Felix Palmen
Hello Dmitry, * Dmitry Chagin [20230830 14:04]: > Thanks, I see, I agree with your change, taken into account. Thanks a lot for committing the fix/workaround as well as the new feature! I just upgraded my test builders to 15-CURRENT to double-check. For some reason (I still have to try to get

Re: Possible issue with linux xattr support?

2023-08-30 Thread Shawn Webb
On Wed, Aug 30, 2023 at 06:55:14AM +0200, Alexander Leidinger wrote: > Am 2023-08-29 21:02, schrieb Shawn Webb: > > > Back in 2019, I had a similar issue: I needed access to be able to > > read/write to the system extended attribute namespace from within a > > jailed context. I wrote a rather

Re: Possible issue with linux xattr support?

2023-08-30 Thread Dmitry Chagin
On Tue, Aug 29, 2023 at 02:07:11PM -0500, Kyle Evans wrote: > On 8/29/23 14:02, Shawn Webb wrote: > > On Tue, Aug 29, 2023 at 05:45:51PM +0300, Dmitry Chagin wrote: > > > On Tue, Aug 29, 2023 at 12:59:11PM +0200, Felix Palmen wrote: > > > > * Dmitry Chagin [20230828 18:57]: > > > > > On Mon, Aug

Re: Possible issue with linux xattr support?

2023-08-30 Thread Dmitry Chagin
On Wed, Aug 30, 2023 at 12:58:45PM +0200, Felix Palmen wrote: > * Dmitry Chagin [20230830 13:48]: > > On Wed, Aug 30, 2023 at 12:01:13PM +0200, Felix Palmen wrote: > > > Unfortunately, install from GNU coreutils is now unable to install > > > anything again. I tried both as 'nobody' and as

Re: Possible issue with linux xattr support?

2023-08-30 Thread Felix Palmen
* Felix Palmen [20230830 12:58]: > * Dmitry Chagin [20230830 13:48]: > > I don't changed setxattr syscalls due to EPERM is a valid error from it, > > however here's the essential difference between Linux and FreeBSD. > > FreeBSD does not permits manipulatingg attributes in the > > system

Re: Possible issue with linux xattr support?

2023-08-30 Thread Felix Palmen
* Dmitry Chagin [20230830 13:48]: > On Wed, Aug 30, 2023 at 12:01:13PM +0200, Felix Palmen wrote: > > Unfortunately, install from GNU coreutils is now unable to install > > anything again. I tried both as 'nobody' and as 'root', it doesn't make > > a difference: > > [...] > > I assume the

Re: Possible issue with linux xattr support?

2023-08-30 Thread Dmitry Chagin
On Wed, Aug 30, 2023 at 12:33:23PM +0200, Felix Palmen wrote: > * Felix Palmen [20230830 12:01]: > > Unfortunately, install from GNU coreutils is now unable to install > > anything again. I tried both as 'nobody' and as 'root', it doesn't make > > a difference: > > [...] > > I assume the

Re: Possible issue with linux xattr support?

2023-08-30 Thread Felix Palmen
* Felix Palmen [20230830 12:01]: > * Dmitry Chagin [20230830 12:22]: > > On Wed, Aug 30, 2023 at 11:20:39AM +0200, Felix Palmen wrote: > > > * Unprivileged user will get ENOTSUP when trying to access the system > > > namespace (regardless of the new jail setting), so GNU tools like e.g. > > >

Re: Possible issue with linux xattr support?

2023-08-30 Thread Dmitry Chagin
On Wed, Aug 30, 2023 at 12:01:13PM +0200, Felix Palmen wrote: > * Dmitry Chagin [20230830 12:22]: > > On Wed, Aug 30, 2023 at 11:20:39AM +0200, Felix Palmen wrote: > > > * Unprivileged user will get ENOTSUP when trying to access the system > > > namespace (regardless of the new jail setting),

Re: Possible issue with linux xattr support?

2023-08-30 Thread Felix Palmen
* Felix Palmen [20230830 12:01]: > Unfortunately, install from GNU coreutils is now unable to install > anything again. I tried both as 'nobody' and as 'root', it doesn't make > a difference: > [...] > I assume the fsetxattr call needs some adjustment of error codes as well > to make GNU tools

Re: Possible issue with linux xattr support?

2023-08-30 Thread Felix Palmen
* Dmitry Chagin [20230830 12:22]: > On Wed, Aug 30, 2023 at 11:20:39AM +0200, Felix Palmen wrote: > > * Unprivileged user will get ENOTSUP when trying to access the system > > namespace (regardless of the new jail setting), so GNU tools like e.g. > > coreutils install should "just work". >

Re: Possible issue with linux xattr support?

2023-08-30 Thread Dmitry Chagin
On Wed, Aug 30, 2023 at 11:20:39AM +0200, Felix Palmen wrote: > * Dmitry Chagin [20230830 11:57]: > > On Tue, Aug 29, 2023 at 08:58:13PM +0200, Felix Palmen wrote: > > > Thanks again for quickly fixing this! Can this still make 14.0-RELEASE? > > > > > I think yes, thanks for testing, I revised

Re: Possible issue with linux xattr support?

2023-08-30 Thread Felix Palmen
* Dmitry Chagin [20230830 11:57]: > On Tue, Aug 29, 2023 at 08:58:13PM +0200, Felix Palmen wrote: > > Thanks again for quickly fixing this! Can this still make 14.0-RELEASE? > > > I think yes, thanks for testing, I revised the error handling and made > it more precise, can you test new patch in

Re: Possible issue with linux xattr support?

2023-08-30 Thread Dmitry Chagin
On Tue, Aug 29, 2023 at 08:58:13PM +0200, Felix Palmen wrote: > * Dmitry Chagin [20230829 21:12]: > > On Tue, Aug 29, 2023 at 07:02:22PM +0200, Felix Palmen wrote: > > > So, using user.* works, using system.* doesn't, and maybe a bit > > > surprising(?), dumping all attributes which by default

Re: Possible issue with linux xattr support?

2023-08-29 Thread Felix Palmen
* Dmitry Chagin [20230829 23:16]: > On Tue, Aug 29, 2023 at 03:02:58PM -0400, Shawn Webb wrote: > > Back in 2019, I had a similar issue: I needed access to be able to > > read/write to the system extended attribute namespace from within a > > jailed context. I wrote a rather simple patch that

Re: Possible issue with linux xattr support?

2023-08-29 Thread Alexander Leidinger
Am 2023-08-29 21:31, schrieb Felix Palmen: * Shawn Webb [20230829 15:25]: On Tue, Aug 29, 2023 at 09:15:03PM +0200, Felix Palmen wrote: > * Kyle Evans [20230829 14:07]: > > On 8/29/23 14:02, Shawn Webb wrote: > > > Back in 2019, I had a similar issue: I needed access to be able to > > >

Re: Possible issue with linux xattr support?

2023-08-29 Thread Alexander Leidinger
Am 2023-08-29 21:02, schrieb Shawn Webb: Back in 2019, I had a similar issue: I needed access to be able to read/write to the system extended attribute namespace from within a jailed context. I wrote a rather simple patch that provides that support on a per-jail basis:

Re: Possible issue with linux xattr support?

2023-08-29 Thread Kyle Evans
On 8/29/23 14:15, Felix Palmen wrote: * Kyle Evans [20230829 14:07]: On 8/29/23 14:02, Shawn Webb wrote: Back in 2019, I had a similar issue: I needed access to be able to read/write to the system extended attribute namespace from within a jailed context. I wrote a rather simple patch that

Re: Possible issue with linux xattr support?

2023-08-29 Thread Dmitry Chagin
On Tue, Aug 29, 2023 at 03:02:58PM -0400, Shawn Webb wrote: > On Tue, Aug 29, 2023 at 05:45:51PM +0300, Dmitry Chagin wrote: > > On Tue, Aug 29, 2023 at 12:59:11PM +0200, Felix Palmen wrote: > > > * Dmitry Chagin [20230828 18:57]: > > > > On Mon, Aug 28, 2023 at 08:03:33AM +0200, Felix Palmen

Re: Possible issue with linux xattr support?

2023-08-29 Thread Shawn Webb
On Tue, Aug 29, 2023 at 09:31:46PM +0200, Felix Palmen wrote: > * Shawn Webb [20230829 15:25]: > > On Tue, Aug 29, 2023 at 09:15:03PM +0200, Felix Palmen wrote: > > > * Kyle Evans [20230829 14:07]: > > > > On 8/29/23 14:02, Shawn Webb wrote: > > > > > Back in 2019, I had a similar issue: I

Re: Possible issue with linux xattr support?

2023-08-29 Thread Felix Palmen
* Shawn Webb [20230829 15:25]: > On Tue, Aug 29, 2023 at 09:15:03PM +0200, Felix Palmen wrote: > > * Kyle Evans [20230829 14:07]: > > > On 8/29/23 14:02, Shawn Webb wrote: > > > > Back in 2019, I had a similar issue: I needed access to be able to > > > > read/write to the system extended

Re: Possible issue with linux xattr support?

2023-08-29 Thread Shawn Webb
On Tue, Aug 29, 2023 at 09:15:03PM +0200, Felix Palmen wrote: > * Kyle Evans [20230829 14:07]: > > On 8/29/23 14:02, Shawn Webb wrote: > > > Back in 2019, I had a similar issue: I needed access to be able to > > > read/write to the system extended attribute namespace from within a > > > jailed

Re: Possible issue with linux xattr support?

2023-08-29 Thread Felix Palmen
* Kyle Evans [20230829 14:07]: > On 8/29/23 14:02, Shawn Webb wrote: > > Back in 2019, I had a similar issue: I needed access to be able to > > read/write to the system extended attribute namespace from within a > > jailed context. I wrote a rather simple patch that provides that > > support on a

Re: Possible issue with linux xattr support?

2023-08-29 Thread Kyle Evans
On 8/29/23 14:02, Shawn Webb wrote: On Tue, Aug 29, 2023 at 05:45:51PM +0300, Dmitry Chagin wrote: On Tue, Aug 29, 2023 at 12:59:11PM +0200, Felix Palmen wrote: * Dmitry Chagin [20230828 18:57]: On Mon, Aug 28, 2023 at 08:03:33AM +0200, Felix Palmen wrote: * Cy Schubert [20230827 16:59]:

Re: Possible issue with linux xattr support?

2023-08-29 Thread Shawn Webb
On Tue, Aug 29, 2023 at 05:45:51PM +0300, Dmitry Chagin wrote: > On Tue, Aug 29, 2023 at 12:59:11PM +0200, Felix Palmen wrote: > > * Dmitry Chagin [20230828 18:57]: > > > On Mon, Aug 28, 2023 at 08:03:33AM +0200, Felix Palmen wrote: > > > > * Cy Schubert [20230827 16:59]: > > > > > > > > > > If

Re: Possible issue with linux xattr support?

2023-08-29 Thread Felix Palmen
* Dmitry Chagin [20230829 21:12]: > On Tue, Aug 29, 2023 at 07:02:22PM +0200, Felix Palmen wrote: > > So, using user.* works, using system.* doesn't, and maybe a bit > > surprising(?), dumping all attributes which by default excludes the > > system namespace doesn't work either. > > > > As

Re: Possible issue with linux xattr support?

2023-08-29 Thread Dmitry Chagin
On Tue, Aug 29, 2023 at 07:02:22PM +0200, Felix Palmen wrote: > * Dmitry Chagin [20230829 17:45]: > > On Tue, Aug 29, 2023 at 12:59:11PM +0200, Felix Palmen wrote: > > > Thanks, I can confirm this avoids the issue in both cases I experienced > > > (install from GNU coreutils and python). > > > >

Re: Possible issue with linux xattr support?

2023-08-29 Thread Felix Palmen
* Dmitry Chagin [20230829 17:45]: > On Tue, Aug 29, 2023 at 12:59:11PM +0200, Felix Palmen wrote: > > Thanks, I can confirm this avoids the issue in both cases I experienced > > (install from GNU coreutils and python). > > > thanks, this is the first half of the fix, it works for you due to you

Re: Possible issue with linux xattr support?

2023-08-29 Thread Dmitry Chagin
On Tue, Aug 29, 2023 at 12:59:11PM +0200, Felix Palmen wrote: > * Dmitry Chagin [20230828 18:57]: > > On Mon, Aug 28, 2023 at 08:03:33AM +0200, Felix Palmen wrote: > > > * Cy Schubert [20230827 16:59]: > > > > > > > > If we are to break it to fix a problem, maybe a sysctl to > > > >

Re: Possible issue with linux xattr support?

2023-08-29 Thread Felix Palmen
* Dmitry Chagin [20230828 18:57]: > On Mon, Aug 28, 2023 at 08:03:33AM +0200, Felix Palmen wrote: > > * Cy Schubert [20230827 16:59]: > > > > > > 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

Re: Possible issue with linux xattr support?

2023-08-28 Thread James Gritton
On 2023-08-28 05:17, Alexander Leidinger wrote: Am 2023-08-28 13:06, schrieb Dmitry Chagin: On Sun, Aug 27, 2023 at 09:55:23PM +0200, Felix Palmen wrote: * Dmitry Chagin [20230827 22:46]: > I can fix this completely disabling exttatr for jailed proc, > however, it's gonna be bullshit,

Re: Possible issue with linux xattr support?

2023-08-28 Thread Dmitry Chagin
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

Re: Possible issue with linux xattr support?

2023-08-28 Thread Alexander Leidinger
Am 2023-08-28 13:06, schrieb Dmitry Chagin: On Sun, Aug 27, 2023 at 09:55:23PM +0200, Felix Palmen wrote: * Dmitry Chagin [20230827 22:46]: > I can fix this completely disabling exttatr for jailed proc, > however, it's gonna be bullshit, though Would probably be better than nothing. AFAIK,

Re: Possible issue with linux xattr support?

2023-08-28 Thread Dmitry Chagin
On Sun, Aug 27, 2023 at 09:55:23PM +0200, 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? > > > > > >

Re: Possible issue with linux xattr support?

2023-08-28 Thread Felix Palmen
* 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. >

Re: Possible issue with linux xattr support?

2023-08-27 Thread Cy Schubert
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

Re: Possible issue with linux xattr support?

2023-08-27 Thread Felix Palmen
* 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

Re: Possible issue with linux xattr support?

2023-08-27 Thread Dmitry Chagin
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

Re: Possible issue with linux xattr support?

2023-08-27 Thread Felix Palmen
* Dmitry Chagin [20230827 20:54]: > 1. which fs are you using? ZFS. > 2. jailed? Yes, this is during building ports with poudriere. Cheers, Felix -- Felix Palmen {private} fe...@palmen-it.de -- ports committer -- {web} http://palmen-it.de {pgp public key}

Re: Possible issue with linux xattr support?

2023-08-27 Thread Dmitry Chagin
On Sun, Aug 27, 2023 at 07:15:57PM +0200, Felix Palmen wrote: > * Felix Palmen [20230825 19:54]: > > To verify, I removed xattr support completely from coreutils (and also > > sed) in commit "linuxsrc: Disable usage of xattr" and indeed, with this > > change, GNU's install works as it should. >

Re: Possible issue with linux xattr support?

2023-08-27 Thread Felix Palmen
* Felix Palmen [20230825 19:54]: > To verify, I removed xattr support completely from coreutils (and also > sed) in commit "linuxsrc: Disable usage of xattr" and indeed, with this > change, GNU's install works as it should. I now ran into a second case which makes it very likely the xattr

Re: Possible issue with linux xattr support?

2023-08-25 Thread Felix Palmen
* Felix Palmen [20230825 19:54]: > So, hoping for someone with some knowledge how to debug this ;) Information I forgot to add, sorry: I did my tests on an aarch64 machine with a kernel built from a98a0090b2ba64ff0bc3cf71a00fb5f9e31fc1d3. Cheers, Felix -- Felix Palmen {private}

Possible issue with linux xattr support?

2023-08-25 Thread Felix Palmen
Hi all and Dmitry, (CC to Dmitry because he added this linux xattr support in 22dca7acf7756c07d3ccbfdc8dfd10fd9ad3f9cf) I'm currently working on an idea to build a userland for Linuxulator from source here: https://github.com/Zirias/zfbsd-ports/commits/linux Now I ran into an issue with the