Re: [PATCH] ksmbd: clear DACL_PRESENT when the query omits the DACL

From: Namjae Jeon

Date: Wed Nov 18 2026 - 19:35:08 EST


> @@ -1077,8 +1077,9 @@ int build_sec_desc(const struct mnt_idmap *idmap,
> pntsd->sacloffset = 0;
> pntsd->revision = cpu_to_le16(1);
> pntsd->type = cpu_to_le16(SELF_RELATIVE);
> + /* DACL_PRESENT is set below when the DACL is requested */
> if (ppntsd)
> - pntsd->type |= ppntsd->type;
> + pntsd->type |= ppntsd->type & ~cpu_to_le16(DACL_PRESENT);
ksmbd can set DACL_PROTECTED or DACL_AUTO_INHERITED as well as
DACL_PRESENT. But this patch only removes DACL_PRESENT.
Thanks.