---
title: SecmarkExpression type | Wartiva GraphQL API
description: Assigns a security context (e.g., SELinux label) to matching packets. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/secmark-expression.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `SecmarkExpression` type

Assigns a security context (e.g., SELinux label) to matching packets.

## Fields

| Field Name | Description |
|---|---|
| `context` - [`String!`](https://wartiva.com/api-docs/types/string.html) | Security context. |

## Used by

- [`ChainExpression`](https://wartiva.com/api-docs/types/chain-expression.html) union: A union of all possible nftables chain expression types.

## Example

### Example

```json
{"context": "xyz789"}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
