add apparmor_unconinfed to containers definition

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-04-27 19:24:14 +02:00
parent 1118ba6764
commit eeeeb2f37b
5 changed files with 22 additions and 3 deletions

View file

@ -26,6 +26,7 @@ class Container {
/** @var string[] */
private array $capAdd;
private int $shmSize;
private bool $apparmorUnconfined;
private DockerActionManager $dockerActionManager;
public function __construct(
@ -43,6 +44,7 @@ class Container {
array $devices,
array $capAdd,
int $shmSize,
bool $apparmorUnconfined,
DockerActionManager $dockerActionManager
) {
$this->identifier = $identifier;
@ -59,6 +61,7 @@ class Container {
$this->devices = $devices;
$this->capAdd = $capAdd;
$this->shmSize = $shmSize;
$this->apparmorUnconfined = $apparmorUnconfined;
$this->dockerActionManager = $dockerActionManager;
}
@ -82,6 +85,10 @@ class Container {
return $this->shmSize;
}
public function isApparmorUnconfined() : bool {
return $this->apparmorUnconfined;
}
public function GetMaxShutdownTime() : int {
return $this->maxShutdownTime;
}