# SeLinuxOptionsV1 Properties

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [SeLinuxOptionsV1](/reference/api/csharp/aspire.hosting.kubernetes/selinuxoptionsv1.md)
- Kind: `Properties`
- Members: `4`

Represents the SELinux options that are applied to a container or pod in Kubernetes.

## Level

- Name: `Level`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/SELinuxOptionsV1.cs)

Gets or sets the SELinux level for the policy. This property specifies the SELinux level to apply.

```csharp
public string Level { get; set; }
```

## Role

- Name: `Role`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/SELinuxOptionsV1.cs)

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.

```csharp
public string Role { get; set; }
```

## Type

- Name: `Type`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/SELinuxOptionsV1.cs)

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.

```csharp
public string Type { get; set; }
```

## User

- Name: `User`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/SELinuxOptionsV1.cs)

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.

```csharp
public string User { get; set; }
```
