Fix a few whitespace issues.

This commit is contained in:
Todd C. Miller
2022-07-09 11:21:17 -06:00
parent e7b7fbaf6e
commit a2b0a8330c
11 changed files with 58 additions and 56 deletions

View File

@@ -44,7 +44,8 @@ apparmor_is_enabled(void)
FILE *fd; FILE *fd;
debug_decl(apparmor_is_enabled, SUDO_DEBUG_APPARMOR); debug_decl(apparmor_is_enabled, SUDO_DEBUG_APPARMOR);
/* Check whether AppArmor is enabled by reading /*
* Check whether AppArmor is enabled by reading
* /sys/module/apparmor/parameters/enabled * /sys/module/apparmor/parameters/enabled
* *
* When this file exists and its contents are equal to "Y", AppArmor * When this file exists and its contents are equal to "Y", AppArmor
@@ -93,20 +94,21 @@ apparmor_prepare(const char *new_profile)
goto done; goto done;
} }
if (mode == NULL) if (mode == NULL) {
sudo_debug_printf(SUDO_DEBUG_INFO, sudo_debug_printf(SUDO_DEBUG_INFO,
"%s: changing AppArmor profile: %s -> %s", __func__, "%s: changing AppArmor profile: %s -> %s", __func__,
old_profile, new_profile ? new_profile : "?" old_profile, new_profile ? new_profile : "?");
); } else {
else
sudo_debug_printf(SUDO_DEBUG_INFO, sudo_debug_printf(SUDO_DEBUG_INFO,
"%s: changing AppArmor profile: %s (%s) -> %s", __func__, "%s: changing AppArmor profile: %s (%s) -> %s", __func__,
old_profile, mode, new_profile ? new_profile : "?" old_profile, mode, new_profile ? new_profile : "?");
); }
done: done:
/* The profile string returned by aa_getcon must be free'd, while the /*
* mode string must _not_ be free'd */ * The profile string returned by aa_getcon must be free'd, while the
* mode string must _not_ be free'd.
*/
if (old_profile != NULL) if (old_profile != NULL)
free(old_profile); free(old_profile);