]> granicus.if.org Git - sudo/commitdiff
Pass back exec_background to front end if it is enabled in sudoers.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 27 Jan 2013 18:45:35 +0000 (13:45 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 27 Jan 2013 18:45:35 +0000 (13:45 -0500)
plugins/sudoers/policy.c

index f1af9b30aa49da7cf14f94a6b9f02a36624bb42f..e835a587183f6c29d3f35220c94a1b85670ebdd6 100644 (file)
@@ -415,6 +415,8 @@ sudoers_policy_exec_setup(char *argv[], char *envp[], mode_t cmnd_umask,
        easprintf(&command_info[info_len++], "closefrom=%d", def_closefrom);
     if (def_noexec)
        command_info[info_len++] = estrdup("noexec=true");
+    if (def_exec_background)
+       command_info[info_len++] = estrdup("exec_background=true");
     if (def_set_utmp)
        command_info[info_len++] = estrdup("set_utmp=true");
     if (def_use_pty)