mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
Convert the parser to C++
This conversion is nothing more than what is required to get it to compile. Further improvements will come as the code is refactored. Unfortunately due to C++ not supporting designated initializers, the auto generation of af names needed to be reworked, and "netlink" and "unix" domain socket keywords leaked in. Since these where going to be added in separate patches I have not bothered to do the extra work to replace them with a temporary place holder. Signed-off-by: John Johansen <john.johansen@canonical.com> [tyhicks: merged with dbus changes and memory leak fixes] Signed-off-by: Tyler Hicks <tyhicks@canonical.com> Acked-by: Seth Arnold <seth.arnold@canonical.com> Acked-by: Steve Beattie <steve@nxnw.org>
This commit is contained in:
committed by
Tyler Hicks
parent
b0a1488820
commit
a34059b1e5
@@ -291,7 +291,7 @@ void push_include_stack(char *filename)
|
||||
{
|
||||
struct include_stack_t *include = NULL;
|
||||
|
||||
include = malloc(sizeof(*include));
|
||||
include = (struct include_stack_t *) malloc(sizeof(*include));
|
||||
if (!include) {
|
||||
perror("malloc of included file stack tracker");
|
||||
/* failures in this area are non-fatal */
|
||||
|
Reference in New Issue
Block a user