about few more syscalls because in
most cases we copy files w/o acls.
Ondrej
Zasláno z Outlooku pro Android<https://aka.ms/AAb9ysg>
From: Paul Eggert
Sent: Friday, September 1, 2023 8:20:12 PM
To: Ondrej Valousek
Cc: Gnulib bugs
Subject: Re: Possib
Hi all,
I think we might have a bug in qcopy-acl.c as currently, when we copy files
from say NFSv4 to ext4 filesystems, then "cp -p" produces warning that it could
not preserve permissions.
That makes a sense, but perhaps we should issue "attr_copy_file()" only if the
file has a non-trivial
ysg>
From: Paul Eggert
Sent: Monday, May 15, 2023 11:32:00 PM
To: Ondrej Valousek
Cc: Gnulib bugs
Subject: Re: [PATCH] fix NFSv4 acl detection on F39
On 2023-05-15 12:43, Ondrej Valousek wrote:
> You feed listxattr() with a buffer sized like trivial_NFS4
ike trivial_NFS4_attr_buf - that just
does not seem to be correct right? That trivial_NFS4_attr_buf serves smth
completely different.
-Original Message-
From: Paul Eggert
Sent: Montag, 15. Mai 2023 19:17
To: Ondrej Valousek
Cc: Gnulib bugs
Subject: Re: [PATCH] fix NFSv4 acl detection on F39
On 2
als the
presence of the actual ACLs, so our code thinks that POSIX acls are present
instead (which makes no sense on NFSv4).
Ondrej
-Original Message-
From: Paul Eggert
Sent: pátek 12. května 2023 21:27
To: Bruno Haible
Cc: bug-gnulib@gnu.org; Ondrej Valousek
Subject: Re: [PATCH] fix NFSv4
and simple to read patch.
-Original Message-
From: Paul Eggert
Sent: Donnerstag, 4. Mai 2023 00:54
To: Ondrej Valousek ; bug-gnulib@gnu.org
Subject: Re: [PATCH] fix NFSv4 acl detection on F39
On 5/2/23 22:44, Ondrej Valousek wrote:
> What's the reason for doing that?
> I wanted t
What's the reason for doing that?
I wanted to save syscalls, not to create more.
Zasláno z Outlooku pro Android<https://aka.ms/AAb9ysg>
From: Paul Eggert
Sent: Tuesday, May 2, 2023 11:32:39 PM
To: Ondrej Valousek ; bug-gnulib@gnu.org
Subject: Re: [PATC
Sending the other proposed patch fixing the NFSv4 acl detection on Fedora39.
It's bit longer, but I think should be better.
Please review.
---
lib/file-has-acl.c | 60 +-
1 file changed, 49 insertions(+), 11 deletions(-)
diff --git
?
Zasláno z Outlooku pro Android<https://aka.ms/AAb9ysg>
From: Paul Eggert
Sent: Saturday, April 29, 2023 8:35:06 AM
To: Ondrej Valousek
Cc: bug-gnulib@gnu.org
Subject: Re: [PATCH] fix NFSv4 acl detection on F39
On 2023-04-28 13:38, Ondrej Valousek wrote:
>
On newer systems like Fedora 39, we can't distinguish from the
getxattr(,XATTR_NAME_POSIX_ACL_*,,)
which filesystem we are on. The call return either success or ENODATA.
It never returns ENOTSUP as previously. Is it intentional?
This unfortunately means that we have to check for NFSv4 ACLs all
Hi Bruno, sorry, this patch should be fine now.
It improve comments for both functions
---
lib/qset-acl.c | 14 +++---
lib/set-acl.c | 18 +-
2 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/lib/qset-acl.c b/lib/qset-acl.c
index c3442d060f..aecab8ead3
Hi,
As per our conversation with Bruno I was thinking if it would make a sense to
extend support of ACLs in gnulib/coreutils, mainly covering "ls" (1st stage)
and "chmod" (2nd stage) with the goal to have the ACLs better understandable
for end users.
For "ls" we would:
- Introduce a new
Improve comments for both functions
---
lib/qset-acl.c | 16 +---
lib/set-acl.c | 13 +++--
2 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/lib/qset-acl.c b/lib/qset-acl.c
index c3442d060f..0ae026f031 100644
--- a/lib/qset-acl.c
+++ b/lib/qset-acl.c
@@
Improve comments for both functions
---
lib/qset-acl.c | 16 +---
lib/set-acl.c | 13 +++--
2 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/lib/qset-acl.c b/lib/qset-acl.c
index c3442d060f..0ae026f031 100644
--- a/lib/qset-acl.c
+++ b/lib/qset-acl.c
@@
Haible
Sent: Saturday, January 14, 2023 8:55:25 AM
To: Ondrej Valousek
Cc: bug-gnulib@gnu.org
Subject: Re: [PATCH] Use xattr (Linux) in qcopy-acl.c
> Why this conversation (+the whole one from yesterday) is missing from the
> bug-gnulib mail archives?
https://jpn01.safelinks.protection
Why this conversation (+the whole one from yesterday) is missing from the
bug-gnulib mail archives?
Zasláno z Outlooku pro Android<https://aka.ms/AAb9ysg>
From: Paul Eggert
Sent: Saturday, January 14, 2023 2:52:27 AM
To: Bruno Haible ; Ondrej Valouse
Still, this wouln't go to Gnulib, but mostly to coreutils, right?
> More generally, I find the semantics and the syntax of ACLs on most systems
> to be more demanding than what the average command-line user can grok.
Completely agree here, especially true for so-called posix draft ACLs.
> While for random features of the OS this would just be a nuisance that
,
Ondrej
-Original Message-
From: Bruno Haible
Sent: pátek 13. ledna 2023 9:10
To: bug-gnulib@gnu.org; Ondrej Valousek
Subject: Re: [PATCH] Use xattr (Linux) in qcopy-acl.c
This part
> Also, protect against unsafe use of a configure option value.
is needed when the user does
./config
2023 20:07
To: Bruno Haible ; bug-gnulib@gnu.org; Ondrej Valousek
Subject: Re: [PATCH] Use xattr (Linux) in qcopy-acl.c
On 2023-01-05 02:32, Bruno Haible wrote:
> Yes, this is OK. I can work on the linker dependencies shortly after
> your patch is in. Basically it consists in compiling a t
Improve comments for both functions
---
lib/qset-acl.c | 16 +---
lib/set-acl.c | 13 +++--
2 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/lib/qset-acl.c b/lib/qset-acl.c
index c3442d060f..0ae026f031 100644
--- a/lib/qset-acl.c
+++ b/lib/qset-acl.c
@@
@gnu.org; Ondrej Valousek
Subject: Re: [PATCH] Use xattr (Linux) in qcopy-acl.c
Ondrej Valousek wrote:
> Why don't we solve the linker problem with the "--as-needed" option? This
> will make linker clever enough not to link libraries that are not needed.
'--as-needed' is a can of
> Perhaps you can fix
this by fixing the Link sections of the relevant modules to use
$(LIB_HAS_ACL) instead of $(LIB_ACL). That is, for each module where you
added $(LIB_XATTR), replace its $(LIB_ACL) with $(LIB_HAS_ACL) if the
only reason it needed $(LIB_ACL) was to copy attributes.
Nope.
Hi Bruno,
Please review now.
Ondrej
---
lib/qcopy-acl.c | 36 ++-
m4/xattr.m4 | 42 +
modules/acl | 1 +
modules/acl-tests | 6 +++---
modules/copy-file | 1 +
Hi Paul/Bruno,
Thanks for valuable input. I have included your suggestions in the
following patch.
Hope it looks fine now.
Ondrej
---
lib/qcopy-acl.c | 33 +
m4/xattr.m4 | 45 +
modules/qcopy-acl | 2 ++
3 files
The following patch is aiming to improve & simplify ACL handling in copy-acl.c
Changes/Benefits:
* we no longer try to decode ACLs, instead we just copy the whole xattr with
ACLs
making the code simpler and faster
* side effect is support for NFSv4 acls
Disadvantages:
* it pulls in dependency on
> What happens if you try to copy ACLs from a filesystem using NFSv4 ACLs to
> one using POSIXish ACLs, or vice versa?
It fails, we can't do ACL conversion.
> Why is this call needed? Won't a successful attr_copy_file mean that the
> chmod_or_fchmod is unnecessary? I.e., can't we do the
The following patch is aiming to improve & simplify ACL handling in copy-acl.c
Changes/Benefits:
* we no longer try to decode ACLs, instead we just copy the whole xattr with
ACLs
making the code simpler and faster
* side effect is support for NFSv4 acls
Disadvantages:
* I agree the patch is
Paul Eggert
Sent: středa 28. prosince 2022 5:13
To: Ondrej Valousek
Cc: Gnulib bugs
Subject: Re: [PATCH] Basic support for checking NFSv4 ACLs in Linux
Some static checking helped find an off-by-one bug that I introduced to your
Gnulib patch. The bug caused file_has_acl to sometimes incorrectly re
ave tested it on various ACL enabled NFSv4 servers (Linux/
Solaris/ Netapp) and it seems to work OK.
Thanks,
Ondrej
-Original Message-
From: Paul Eggert
Sent: sobota 24. prosince 2022 0:32
To: Ondrej Valousek
Cc: Gnulib bugs
Subject: Re: [PATCH] Basic support for checking NFSv4 ACLs in Linux
Hi Bruno,
Thanks for the input, I think it should be OK now, please take a look.
Thanks,
Ondrej
---
doc/acl-nfsv4.txt | 17 +
lib/acl-internal.c | 95 ++
lib/acl-internal.h | 3 ++
lib/file-has-acl.c | 24
4 files changed, 135
Hi Bruno,
Could you review one more time?
Thanks,
Ondrej
---
doc/acl-nfsv4.txt | 17 +
lib/acl-internal.c | 95 ++
lib/acl-internal.h | 3 ++
lib/file-has-acl.c | 24
4 files changed, 135 insertions(+), 9 deletions(-)
create
Hi Bruno,
Just sending the modified patch (fixed formatting + few suggestions from
Andreas included)
Does it look OK now?
Thanks,
Ondrej
---
doc/acl-nfsv4.txt | 17 +
lib/acl-internal.c | 95 ++
lib/acl-internal.h | 3 ++
lib/file-has-acl.c
problem I mentioned earlier?
I.e. currently the code pulls dependency on libacl which is not needed and I do
not know how to solve it in the config/make script?
Thanks,
Ondrej
-Original Message-
From: Andreas Grünbacher
Sent: pátek 25. listopadu 2022 11:17
To: Ondrej Valousek
Cc: bug
Hi GNU lib maintainers,
Attaching the final version of patch introducing a basic checks for non-trivial
NFSv4 style ACLs.
It is substantially longer unfortunately - that's why I put most of the code to
acl-internal.c where I think
it should be (as similar function for AIX already exists there).
> I'm not really sure what to do about ACE4_READ_NAMED_ATTRS and
> ACE4_WRITE_NAMED_ATTRS; those are not the same as Linux extended attributes.
> This will need a bit of testing against various NFSv4 servers to give
> reasonable results.
Can we just commit the code as-is without the extra
> This would correspond to a mode attribute of "--rwx" according to the
> above statement,
Well I do not think so as the RFC also states that EVERYONE@ means literally
everyone (including group and owner), so the above example would indeed return
rwxrwxrwx.
Anyhow, would the code I
> * If an ALLOW entry has any mask bits set that don't correspond to the UNIX
> rwx permissions, we don't have a trivial ACL.
Do we really have to do this?
I mean from RFC8881:
" The server that supports both mode and ACL must take care to synchronize the
MODE4_*USR, MODE4_*GRP, and MODE4_*OTH
Hi Andreas/all
Would you support the following version of the patch?
It is substantially longer unfortunately - that's why I put most of the code to
acl-internal.c where I think
it should be (as similar function for AIX already exists there).
The benefit of this is fairly improved robustness of
Hi Andreas,
> Historically, I've suggested taking care of these kinds of things in the
> richacl project, but that effort has been shot down upstream, and that
> project has been dead for a long time.
I think I have complete picture now. I also think that eventually I can
eventually fix
As per suggestions from Andreas, I am attaching a simplified version of the
patch implementing basic
checks for non-trivial NFSv4 acls
---
lib/file-has-acl.c | 24
1 file changed, 24 insertions(+)
diff --git a/lib/file-has-acl.c b/lib/file-has-acl.c
index
2022 20:37
To: Ondrej Valousek ; Bruno Haible
; bug-gnulib@gnu.org
Cc: Andreas Gruenbacher
Subject: Re: [PATCH] Basic support for checking NFSv4 ACLs in Linux
On 2022-10-31 01:05, Ondrej Valousek wrote:
> I do not quite understand why we are not calling acl_extended_file()
> any more on
not quite understand why we are not calling
acl_extended_file() any more on Linux. Maybe to simplify code & one less
dependency?
Any suggestions here?
-Original Message-
From: Paul Eggert
Sent: neděle 30. října 2022 19:37
To: Ondrej Valousek ; Bruno Haible
; bug-gnulib@gnu.org
Subje
ibrary, we just call getxattr() function directly.
Does it help you to understand it now?
Thanks
Ondrej
Získat Outlook pro Android<https://aka.ms/AAb9ysg>
From: Bruno Haible
Sent: Thursday, October 27, 2022 9:52:32 PM
To: bug-gnulib@gnu.org
Cc: Ondrej Valou
---
lib/file-has-acl.c | 24
1 file changed, 24 insertions(+)
diff --git a/lib/file-has-acl.c b/lib/file-has-acl.c
index e02f0626a..a6144e52e 100644
--- a/lib/file-has-acl.c
+++ b/lib/file-has-acl.c
@@ -32,6 +32,10 @@
#if GETXATTR_WITH_POSIX_ACLS
# include
# include
45 matches
Mail list logo