mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
Subject: autodep - add bash abstraction when using dash script
On Ubuntu and Debian, by default /bin/sh is a symlink to /bin/dash. When autodep'ing a shell script, the bash abstraction was not being included.
This commit is contained in:
@@ -776,7 +776,7 @@ sub create_new_profile($) {
|
||||
$profile->{$fqdbin}{allow}{path}->{$interpreter}{audit} |= 0;
|
||||
if ($interpreter =~ /perl/) {
|
||||
$profile->{$fqdbin}{include}->{"abstractions/perl"} = 1;
|
||||
} elsif ($interpreter =~ m/\/bin\/(bash|sh)/) {
|
||||
} elsif ($interpreter =~ m/\/bin\/(bash|dash|sh)/) {
|
||||
$profile->{$fqdbin}{include}->{"abstractions/bash"} = 1;
|
||||
} elsif ($interpreter =~ m/python/) {
|
||||
$profile->{$fqdbin}{include}->{"abstractions/python"} = 1;
|
||||
|
Reference in New Issue
Block a user