summaryrefslogtreecommitdiffstats
path: root/xlators/system
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2020-07-16 12:58:55 +0300
committerRavishankar N <ravishankar@redhat.com>2020-07-23 04:19:43 +0000
commit4f89ec27fadea2ee1ab0f49c29f967e1602fafb9 (patch)
treec35f3f475127bbe0399d70a87a64b4187c13b00d /xlators/system
parent76017cf65433b7f42e6bfdc2eaddfc36685e2c61 (diff)
multiple xlators: wording - replace blacklist, whitelist
Replace the use of blacklist and whitelist within the code. No functional changes. Fixes: #1378 Change-Id: Iaa10e31c3d460f52bfd12da906789fccca5ba4d4 Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'xlators/system')
-rw-r--r--xlators/system/posix-acl/src/posix-acl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xlators/system/posix-acl/src/posix-acl.c b/xlators/system/posix-acl/src/posix-acl.c
index 77c8df5..fc22736 100644
--- a/xlators/system/posix-acl/src/posix-acl.c
+++ b/xlators/system/posix-acl/src/posix-acl.c
@@ -50,8 +50,8 @@ r00t()
return conf->super_uid;
}
-int
-whitelisted_xattr(const char *key)
+static int
+allowed_xattr(const char *key)
{
if (!key)
return 0;
@@ -2016,7 +2016,7 @@ int
posix_acl_getxattr(call_frame_t *frame, xlator_t *this, loc_t *loc,
const char *name, dict_t *xdata)
{
- if (whitelisted_xattr(name))
+ if (allowed_xattr(name))
goto green;
if (acl_permits(frame, loc->inode, POSIX_ACL_READ))
@@ -2039,7 +2039,7 @@ int
posix_acl_fgetxattr(call_frame_t *frame, xlator_t *this, fd_t *fd,
const char *name, dict_t *xdata)
{
- if (whitelisted_xattr(name))
+ if (allowed_xattr(name))
goto green;
if (acl_permits(frame, fd->inode, POSIX_ACL_READ))
@@ -2072,7 +2072,7 @@ posix_acl_removexattr(call_frame_t *frame, xlator_t *this, loc_t *loc,
goto red;
}
- if (whitelisted_xattr(name)) {
+ if (allowed_xattr(name)) {
if (!frame_is_user(frame, ctx->uid)) {
op_errno = EPERM;
goto red;