Skip to content

Commit f98e8a7

Browse files
authored
feat(control): add seccomp profile stuff (#43)
1 parent 7b1cb6f commit f98e8a7

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

protect/control/v1/common.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,15 @@ message WorkloadScratchMount {
453453
string path = 1;
454454
}
455455

456+
enum SeccompProfileType {
457+
// No seccomp filter (also the default when unset).
458+
SECCOMP_PROFILE_TYPE_UNCONFINED = 0;
459+
// The runtime's built-in default profile.
460+
SECCOMP_PROFILE_TYPE_RUNTIME_DEFAULT = 1;
461+
// A profile loaded from a file on the node (see seccomp_localhost_ref).
462+
SECCOMP_PROFILE_TYPE_LOCALHOST = 2;
463+
}
464+
456465
message WorkloadSecuritySpec {
457466
bool strict_user_namespace = 1;
458467
repeated string raise_capabilities = 2;
@@ -463,6 +472,10 @@ message WorkloadSecuritySpec {
463472
repeated ProcessNamespace disable_namespaces = 7;
464473
bool read_only_rootfs = 8;
465474
bool no_new_privs = 9;
475+
SeccompProfileType seccomp_profile_type = 10;
476+
// Path to the localhost seccomp profile, relative to the kubelet seccomp
477+
// root; set only when seccomp_profile_type == SECCOMP_PROFILE_TYPE_LOCALHOST.
478+
string seccomp_localhost_ref = 11;
466479
}
467480

468481
enum WorkloadState {

0 commit comments

Comments
 (0)