SeLinuxOptionsV1
Class sealed net10.0
Represents the SELinux options that are applied to a container or pod in Kubernetes.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class SeLinuxOptionsV1{ // ...} 5 members
Remarks
Section titled Remarks SELinuxOptionsV1 allows you to specify security-enhanced Linux (SELinux) labels for Kubernetes containers or pods. The labels define context-related information, including user, role, type, and level, which are used by the SELinux kernel to enforce security rules. These options are primarily used in environments that enforce SELinux policies for enhanced workload isolation and security.
Constructors1
Section titled ConstructorsProperties4
Section titled PropertiesLevelget; setstring Gets or sets the SELinux level for the policy. This property specifies the SELinux level to apply.
Roleget; setstring Gets or sets the SELinux role for the resource. This property represents the SELinux role element, which is part of the SELinux security policy used to define fine-grained access control.
Typeget; setstring Gets or sets the SELinux type associated with the SELinuxOptions. This property specifies the SELinux type of the object. It is a security attribute used to define the security policy for a resource.
Userget; setstring Gets or sets the SELinux user associated with the security context. The SELinux user is a required field and specifies the security user policy applied to the container or process.