dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.38k stars 4.75k forks source link

Support for Unix ACLs? #928

Open danmoseley opened 5 years ago

danmoseley commented 5 years ago

What is our story for ACL's on Unix, where file system supports it?

Mono.Posix (what we point at for API for Unix primitives) does not support them. Do we need to offer support for them somewhere?

Whereever that support lies, do we need to add extension methods (like this) to allow objects to be created with the ACL applied? If not, what is the story for folks porting Windows code using ACL's to Linux?

This assumes we do not want to attempt to overload types like DirectorySecurity, which were designed with Windows in mind, to accommodate Unix.

danmoseley commented 5 years ago

The first question here is whether there is any interest, perhaps we can gather that here if any.

JeremyKuhne commented 4 years ago

Triage: Conceptually we want to have ACL support for Linux (see RedHat's support). The reason we haven't done this yet is that there isn't Posix support yet and there hasn't been significant asks from customers yet.

If we do it we'd also want to see if we can provide some sort of common abstraction with the existing Windows ACL support.

jeffhandley commented 3 years ago

I chatted with @carlossanlop on this and we decided to remove it from scope for 6.0. If we want to bring this into scope for a future release, we will need to convert this into a User Story and spend more time understanding the scenarios and identifying some projects that could utilize the feature.

danmoseley commented 3 years ago

Agreed. I think when we are ready to visit this, we should probably step back and think about our story for Unix-specific API's all up, including what's on Mono.Posix.

danmoseley commented 2 years ago

@eerhardt based on your recent doc should you close this as out of scope?