2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

remove old netdomain syntax

This commit is contained in:
John Johansen
2007-11-16 09:34:01 +00:00
parent 50284e8aad
commit 40c3686041
17 changed files with 18 additions and 650 deletions

View File

@@ -29,15 +29,6 @@
#include "parser.h"
static inline int count_net_entries(struct codomain *cod)
{
struct cod_net_entry *list;
int count = 0;
for (list = cod->net_entries; list; list = list->next)
count++;
return count;
}
static int file_comp(const void *c1, const void *c2)
{
struct cod_entry **e1, **e2;
@@ -127,17 +118,10 @@ static int process_file_entries(struct codomain *cod)
return 1;
}
static int process_net_entries(struct codomain __unused *cod)
{
return 1;
}
int codomain_merge_rules(struct codomain *cod)
{
if (!process_file_entries(cod))
goto fail;
if (!process_net_entries(cod))
goto fail;
/* XXX return error from this */
merge_hat_rules(cod);