forked from security/hakurei
test/interactive: add app with bad daemon
This is useful for testing daemon error handling behaviour. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -18,6 +18,30 @@
|
||||
pipewire = false;
|
||||
};
|
||||
};
|
||||
|
||||
"cat.gensokyo.extern.foot.badDaemon" = {
|
||||
name = "bd-foot";
|
||||
identity = 1;
|
||||
shareUid = true;
|
||||
verbose = true;
|
||||
share = pkgs.foot;
|
||||
packages = [ pkgs.foot ];
|
||||
command = "foot";
|
||||
enablements = {
|
||||
dbus = false;
|
||||
};
|
||||
extraPaths = [
|
||||
{
|
||||
type = "daemon";
|
||||
dst = "/proc/nonexistent";
|
||||
path = "/bin/sh";
|
||||
args = [
|
||||
"-lc"
|
||||
"sleep 1 && false"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
extraHomeConfig.home.stateVersion = "23.05";
|
||||
|
||||
Reference in New Issue
Block a user