2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-04 00:05:14 +00:00

Mild cruft cleanup (woo!)

- fix "Namespcae" tyop
- get rid of sub_name and default_deny from the main profile struct as
  they haven't been used for a long time; also eliminates their output
  from the debugging output.
- emit dumped parsing structure with only one -d, users were confuzzled
  and it was not documented that you needed to use -dd to get it to
  output anything if DEBUG wasn't set when compiling.
This commit is contained in:
Steve Beattie
2009-03-12 16:05:19 +00:00
parent 087182be9a
commit 13f73b626b
3 changed files with 5 additions and 17 deletions

View File

@@ -785,23 +785,13 @@ void debug_cod_list(struct codomain *cod)
{
unsigned int i;
if (cod->namespace)
printf("Namespcae:\t\t%s\n", cod->namespace);
printf("Namespace:\t\t%s\n", cod->namespace);
if (cod->name)
printf("Name:\t\t%s\n", cod->name);
else
printf("Name:\t\tNULL\n");
if (cod->sub_name)
printf("Subname:\t%s\n", cod->sub_name);
else
printf("Subname:\tNULL\n");
if (cod->default_deny)
printf("Type:\t\tDefault Deny\t\n");
else
printf("Type:\t\tDefault Allow\t\n");
printf("Capabilities:\t");
for (i = 0; i < (sizeof(capnames)/sizeof(char *)); i++) {
if (((1 << i) & cod->capabilities) != 0) {