[PATCH] Extend cifs acl utilities to handle SACLs
Pavel Shilovsky
piastryyy at gmail.com
Wed Dec 16 23:52:47 UTC 2020
No worries. I fixed the patch and re-pushed to the next branch. Thanks!
--
Best regards,
Pavel Shilovsky
пт, 11 дек. 2020 г. в 08:11, Protopopov, Boris via samba-technical
<samba-technical at lists.samba.org>:
>
> Hi, Aurélien,
>
> Thanks for pointing this out.
>
> Hi, Pavel,
>
> Sorry for the typo, can you plz tweak the patch prior to merge; alternatively, I can resubmit if that is preferred.
>
> Boris.
>
> On 12/11/20, 3:30 AM, "Aurélien Aptel" <aaptel at suse.com> wrote:
>
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.
>
>
>
> Boris Protopopov via samba-technical <samba-technical at lists.samba.org>
> writes:
>
> > Fixed error cases for insufficient privileges, added
> > attribute not supported error case for getcifsacl.
> >
> > Signed-off-by: Boris Protopopov <pboris at amazon.com>
> > ---
> > getcifsacl.c | 17 ++++++++++++++---
> > 1 file changed, 14 insertions(+), 3 deletions(-)
> >
> > diff --git a/getcifsacl.c b/getcifsacl.c
> > index 1c72e7c..c1974d3 100644
> > --- a/getcifsacl.c
> > +++ b/getcifsacl.c
> > @@ -445,15 +445,26 @@ getxattr:
> > free(attrval);
> > bufsize += BUFSIZE;
> > goto cifsacl;
> > - } else if ((errno == EPERM || errno == EACCES) &&
> > - !(strcmp(attrname, ATTRNAME_NTSD_FULL))) {
> > + } else if (errno == EIO && !(strcmp(attrname, ATTRNAME_NTSD_FULL))) {
> > /*
> > * attempt to fetch SACL in addition to owner and DACL via
> > * ATTRNAME_NTSD_FULL, fall back to owner/DACL via
> > * ATTRNAME_ACL if not allowed
> > + * CIFS client maps STATUS_PRIVILEGE_NOT_HELD to EIO
> > */
> > - fprintf(stderr, "Insufficient permissions to fetch full descriptor for %s\n",
> > + fprintf(stderr, "WARGNING: Insufficient priviledges to fetch SACL for %s\n",
>
> There's a typo WARGNING -> WARNING
>
> --
> Aurélien Aptel / SUSE Labs Samba Team
> GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3
> SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, DE
> GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 247165 (AG München)
>
>
More information about the samba-technical
mailing list