Files
nomad/e2e/pledge/input/unveil.hcl
2023-08-10 17:27:29 -05:00

35 lines
541 B
HCL

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
job "unveil" {
type = "batch"
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "group" {
reschedule {
attempts = 0
unlimited = false
}
restart {
attempts = 0
mode = "fail"
}
task "cat" {
driver = "pledge"
config {
command = "cat"
args = ["/etc/passwd"]
promises = "stdio rpath"
unveil = ["r:/etc/passwd"]
}
}
}
}