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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user