Pass a struct to the match functions to track the resolved command.
This makes it possible to update user_cmnd and cmnd_status modified by per-rule CHROOT settings.
This commit is contained in:
@@ -337,7 +337,7 @@ main(int argc, char *argv[])
|
||||
if (runas_match == ALLOW) {
|
||||
puts("\trunas matched");
|
||||
cmnd_match = cmnd_matches(&parsed_policy, cs->cmnd,
|
||||
cs->runchroot);
|
||||
cs->runchroot, NULL);
|
||||
if (cmnd_match != UNSPEC)
|
||||
match = cmnd_match;
|
||||
printf("\tcmnd %s\n", match == ALLOW ? "allowed" :
|
||||
|
Reference in New Issue
Block a user