diff options
author | Todd C. Miller <Todd.Miller@sudo.ws> | 2021-11-05 12:34:03 -0600 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@sudo.ws> | 2021-11-05 12:34:03 -0600 |
commit | abbc7f1981bda989674f9eb9a497d4df6c8b8d66 (patch) | |
tree | 6bc7f6a76bf67b4be13b0ea8bdc5d658fddf356d /src/selinux.c | |
parent | 0cc4991d71de62da2eb9598eec23ae201e36f028 (diff) | |
download | sudo-abbc7f1981bda989674f9eb9a497d4df6c8b8d66.tar.gz |
Rename selinux_setcon -> selinux_setexeccon
Diffstat (limited to 'src/selinux.c')
-rw-r--r-- | src/selinux.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/selinux.c b/src/selinux.c index ac3e0d2e9..1dad781d8 100644 --- a/src/selinux.c +++ b/src/selinux.c @@ -84,7 +84,7 @@ selinux_audit_role_change(void) } else { /* audit role change using the same format as newrole(1) */ rc = asprintf(&message, "newrole: old-context=%s new-context=%s", - se_state.old_context, se_state.new_context ? se_state.new_context : ? "?"); + se_state.old_context, se_state.new_context ? se_state.new_context : "?"); if (rc == -1) sudo_fatalx(U_("%s: %s"), __func__, U_("unable to allocate memory")); rc = audit_log_user_message(au_fd, AUDIT_USER_ROLE_CHANGE, @@ -432,9 +432,9 @@ done: } int -selinux_setcon(void) +selinux_setexeccon(void) { - debug_decl(selinux_setcon, SUDO_DEBUG_SELINUX); + debug_decl(selinux_setexeccon, SUDO_DEBUG_SELINUX); if (setexeccon(se_state.new_context)) { sudo_warn(U_("unable to set exec context to %s"), se_state.new_context); @@ -470,7 +470,7 @@ selinux_execve(int fd, const char *path, char *const argv[], char *envp[], } /* Set SELinux exec and keycreate contexts. */ - if (selinux_setcon() == -1) + if (selinux_setexeccon() == -1) debug_return; /* |