Only default profile fail open

This commit is contained in:
Theodor S. Midtlien
2026-09-15 16:16:10 +02:00
committed by GitHub
parent ba71150350
commit 32807cb1af
@@ -51,7 +51,7 @@ func (p *Profile) AccessibleBy(id ipcauth.Identity) bool {
// A profile in a per-username directory belonged to a use, unowned fails
// closed. The account named by the directory reclaims it on their next
// lookup or until claimed by a privileged caller.
return p.LegacyUserDir == ""
return p.LegacyUserDir == "" && p.ID == DefaultProfileName
}
return p.Owners[0].Matches(id)
}