summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/os/exec.c')
-rw-r--r--usr/src/uts/common/os/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/common/os/exec.c b/usr/src/uts/common/os/exec.c
index c01c81062c..ad77d56560 100644
--- a/usr/src/uts/common/os/exec.c
+++ b/usr/src/uts/common/os/exec.c
@@ -299,7 +299,7 @@ exec_common(const char *fname, const char **argp, const char **envp,
if ((error = gexec(&vp, &ua, &args, NULL, 0, &execsz,
exec_file, p->p_cred, brand_action)) != 0) {
if (brandme)
- brand_clearbrand(p);
+ brand_clearbrand(p, B_FALSE);
VN_RELE(vp);
if (dir != NULL)
VN_RELE(dir);
@@ -415,7 +415,7 @@ exec_common(const char *fname, const char **argp, const char **envp,
/* Unbrand ourself if necessary. */
if (PROC_IS_BRANDED(p) && (brand_action == EBA_NATIVE))
- brand_clearbrand(p);
+ brand_clearbrand(p, B_FALSE);
setregs(&args);