The Samba-Bugzilla – Attachment 17364 Details for
Bug 15093
files without "read attributes" NFS4 ACL permission are not listed in directories
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch fixing the gpfs capability use on AIX
0001-capabilites-fall-back-to-become_root-in-case-we-have.patch (text/plain), 1.16 KB, created by
Björn Jacke
on 2022-06-16 15:35:36 UTC
(
hide
)
Description:
patch fixing the gpfs capability use on AIX
Filename:
MIME Type:
Creator:
Björn Jacke
Created:
2022-06-16 15:35:36 UTC
Size:
1.16 KB
patch
obsolete
>From 7abda35a7ec89440c75a295dc6f9161153d1b619 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= <bj@sernet.de> >Date: Thu, 16 Jun 2022 17:05:36 +0200 >Subject: [PATCH] capabilites: fall back to become_root in case we have no > POSIX capability support > >On AIX for example there are no suitable POSIX capabilites - we need to fall >back to become_root() in such cases. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=15093 > >Signed-off-by: Bjoern Jacke <bjacke@samba.org> >--- > source3/lib/system.c | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/source3/lib/system.c b/source3/lib/system.c >index a786a7418bfd..3d251a361d44 100644 >--- a/source3/lib/system.c >+++ b/source3/lib/system.c >@@ -620,6 +620,8 @@ void set_effective_capability(enum smbd_capability capability) > { > #if defined(HAVE_POSIX_CAPABILITIES) > set_process_capability(capability, True); >+#else >+ become_root(); > #endif /* HAVE_POSIX_CAPABILITIES */ > } > >@@ -627,6 +629,8 @@ void drop_effective_capability(enum smbd_capability capability) > { > #if defined(HAVE_POSIX_CAPABILITIES) > set_process_capability(capability, False); >+#else >+ unbecome_root(); > #endif /* HAVE_POSIX_CAPABILITIES */ > } > >-- >2.25.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
jra
:
review-
Actions:
View
Attachments on
bug 15093
:
17364
|
18187