mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 05:47:59 +00:00
Updated usage of SubDomain::readprofile() (which changed in r620) in
yast apparmor profile agent and syntax checking function in subdomain.pm
This commit is contained in:
parent
9e35713fa6
commit
6f5bc70ae1
@ -95,7 +95,8 @@ while ( <STDIN> ) {
|
||||
}
|
||||
} elsif ( $command eq "Read") {
|
||||
$UI_Mode = "yast";
|
||||
Immunix::SubDomain::readprofile("$profiledir/$argument", \&$Immunix::SubDomain::fatal_error);
|
||||
Immunix::SubDomain::readprofile("$profiledir/$argument",
|
||||
\&$Immunix::SubDomain::fatal_error, 1);
|
||||
ycp::Return( \%sd );
|
||||
} elsif ( $command eq "Write" and $path eq ".delete") {
|
||||
if ( $argument ne "" ) {
|
||||
|
@ -3682,7 +3682,7 @@ sub checkProfileSyntax ($) {
|
||||
or fatal_error "Can't read AppArmor profiles in $profiledir.";
|
||||
for my $file (grep { -f "$profiledir/$_" } readdir(SDDIR)) {
|
||||
next if isSkippableFile($file);
|
||||
my $err = readprofile("$profiledir/$file", \&printMessageErrorHandler);
|
||||
my $err = readprofile("$profiledir/$file", \&printMessageErrorHandler, 1);
|
||||
if (defined $err and $err ne "") {
|
||||
push @$errors, $err;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user