Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The System.Security.AccessControl.PropagationFlags enum seems to have bad descriptions of its enumerated values. #10867

Open
RavenWing71 opened this issue Jan 23, 2025 · 1 comment
Labels
area-System.Security Issues related to security practices for .NET developers. untriaged New issue has not been triaged by the area owner

Comments

@RavenWing71
Copy link

Type of issue

Other (describe below)

Description

The Fields table description of System.Security.AccessControl.PropagationFlags::None currently says, "Specifies that no inheritance flags are set." But in the overall description of System.Security.AccessControl.PropagationFlags it says, "These flags are significant only if inheritance flags are present." As such, the value None for PropagationFlags only has significance if there are InheritanceFlags set.
I believe that the description for the Field System.Security.AccessControl.PropagationFlags::None should instead be describing what happens to the ACE when this value is set. Something like, "Specifies that the inheritance flags are passed on to child container objects unchanged."
The description of System.Security.AccessControl.PropagationFlags::NoPropagateInherit says, "Specifies that the ACE is not propagated to child objects." Is this correct? Or does this flag mean that child objects and containers inherit the ACE, but child containers do not inherit the InheritanceFlags of the ACE?
And for both NoPropagateInherit and InheritOnly, what should happen to the PropagationFlags of the ACE as it passes on to child containers?

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.security.accesscontrol.propagationflags?view=net-9.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Security.AccessControl/PropagationFlags.xml

Document Version Independent Id

85324b83-52f2-61dd-0115-a279b8b7821c

Article author

@dotnet-bot

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-System.Security Issues related to security practices for .NET developers. label Jan 23, 2025
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Jan 23, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-security, @vcsjones

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Security Issues related to security practices for .NET developers. untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

1 participant