diff options
author | Todd C. Miller <Todd.Miller@sudo.ws> | 2019-12-22 08:48:16 -0700 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@sudo.ws> | 2019-12-22 08:48:16 -0700 |
commit | a5333e95fffbee342d97c7037e5bebcb4c472392 (patch) | |
tree | 78a6fc826179557bac7116b5acf7af03051a5ea2 /src/selinux.c | |
parent | 292ef12c0d4e0d451bc11aed3493ba907167ea34 (diff) | |
download | sudo-a5333e95fffbee342d97c7037e5bebcb4c472392.tar.gz |
debug_decl and debug_decl_vars now require a semicolon at the end.
Diffstat (limited to 'src/selinux.c')
-rw-r--r-- | src/selinux.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/selinux.c b/src/selinux.c index 5e8bcdc84..9be57f92c 100644 --- a/src/selinux.c +++ b/src/selinux.c @@ -75,7 +75,7 @@ audit_role_change(const security_context_t old_context, { int au_fd, rc = -1; char *message; - debug_decl(audit_role_change, SUDO_DEBUG_SELINUX) + debug_decl(audit_role_change, SUDO_DEBUG_SELINUX); au_fd = audit_open(); if (au_fd == -1) { @@ -113,7 +113,7 @@ selinux_restore_tty(void) { int ret = -1; security_context_t chk_tty_con_raw = NULL; - debug_decl(selinux_restore_tty, SUDO_DEBUG_SELINUX) + debug_decl(selinux_restore_tty, SUDO_DEBUG_SELINUX); if (se_state.ttyfd == -1 || se_state.new_tty_con_raw == NULL) { sudo_debug_printf(SUDO_DEBUG_INFO, "%s: no tty, skip relabel", @@ -171,7 +171,7 @@ relabel_tty(const char *ttyn, int ptyfd) security_context_t new_tty_con = NULL; struct stat sb; int fd; - debug_decl(relabel_tty, SUDO_DEBUG_SELINUX) + debug_decl(relabel_tty, SUDO_DEBUG_SELINUX); se_state.ttyfd = ptyfd; @@ -315,7 +315,7 @@ get_exec_context(security_context_t old_context, const char *role, const char *t security_context_t new_context = NULL; context_t context = NULL; char *typebuf = NULL; - debug_decl(get_exec_context, SUDO_DEBUG_SELINUX) + debug_decl(get_exec_context, SUDO_DEBUG_SELINUX); /* We must have a role, the type is optional (we can use the default). */ if (role == NULL) { @@ -390,7 +390,7 @@ selinux_setup(const char *role, const char *type, const char *ttyn, int ptyfd) { int ret = -1; - debug_decl(selinux_setup, SUDO_DEBUG_SELINUX) + debug_decl(selinux_setup, SUDO_DEBUG_SELINUX); /* Store the caller's SID in old_context. */ if (getprevcon(&se_state.old_context)) { @@ -439,7 +439,7 @@ selinux_execve(int fd, const char *path, char *const argv[], char *envp[], char **nargv; const char *sesh; int argc, nargc, serrno; - debug_decl(selinux_execve, SUDO_DEBUG_SELINUX) + debug_decl(selinux_execve, SUDO_DEBUG_SELINUX); sesh = sudo_conf_sesh_path(); if (sesh == NULL) { |