We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e844ef commit f0bb29dCopy full SHA for f0bb29d
fs/ksmbd/smbacl.c
@@ -274,7 +274,7 @@ static int sid_to_id(struct user_namespace *user_ns,
274
uid_t id;
275
276
id = le32_to_cpu(psid->sub_auth[psid->num_subauth - 1]);
277
- if (id > 0) {
+ if (id >= 0) {
278
uid = make_kuid(user_ns, id);
279
if (uid_valid(uid) && kuid_has_mapping(user_ns, uid)) {
280
fattr->cf_uid = uid;
@@ -286,7 +286,7 @@ static int sid_to_id(struct user_namespace *user_ns,
286
gid_t id;
287
288
289
290
gid = make_kgid(user_ns, id);
291
if (gid_valid(gid) && kgid_has_mapping(user_ns, gid)) {
292
fattr->cf_gid = gid;
0 commit comments