mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
This patch prevents the parser from segv'ing if neither of the expected default profile directories exist (/etc/subdomain.d, /etc/apparmor.d). A profile passed on the command line or via stdin will still load, so long as -I/path/to/includes is passed for any relevant includes files.
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
Summary: AppArmor userlevel parser utility.
|
||||
Name: apparmor-parser
|
||||
Version: @@immunix_version@@
|
||||
Release: 14
|
||||
Release: 15
|
||||
Group: Applications/System
|
||||
Source0: %{name}-%{version}-@@repo_version@@.tar.gz
|
||||
License: GPL
|
||||
@@ -165,6 +165,8 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Apr 27 2006 Steve beattie <sbeattie@suse.de>
|
||||
- Fix segv if profile dirs don't exist (#160330)
|
||||
* Tue Apr 11 2006 Steve Beattie <sbeattie@suse.de>
|
||||
- Move svn tree to novell forge; fixup build for new layout
|
||||
* Sat Apr 1 2006 Dominic Reynolds <dreynolds@suse.de> 2.0-7.5
|
||||
|
@@ -191,7 +191,7 @@ int add_search_dir(char *dir)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strlen(dir) <= 0)
|
||||
if (!dir || strlen(dir) <= 0)
|
||||
return 1;
|
||||
|
||||
t = malloc(strlen(dir) + 1);
|
||||
|
Reference in New Issue
Block a user