[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
The following issue has a resolution that has been APPLIED. == https://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: Applied Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text:https://austingroupbugs.net/view.php?id=1208#c4832 Resolution: Accepted As Marked Fixed in Version: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2020-05-19 11:01 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn related to 411 adding atomic FD_CLOEXEC support == Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated 2018-09-07 18:53 eblake Desired Action Updated 2018-09-07 18:55 eblake Desired Action Updated 2018-09-07 18:55 eblake Tag Attached: issue8 2018-09-07 19:02 eblake Note Added: 0004109 2018-09-07 19:04 eblake Desired Action Updated 2018-09-07 19:29 eblake Desired Action Updated 2018-09-07 19:35 eblake Description Updated 2018-09-07 22:18 eblake Note Added: 0004110 2018-09-07 22:44 eblake Note Added: 0004111 2018-09-07 22:58 eblake Note Edited: 0004111 2018-09-10 16:32 eblake Relationship added related to 411 2019-04-04 15:31 eblake Note Added: 0004353 2019-04-04 15:46 eblake Note Added: 0004354 2019-04-04 15:47 eblake Desired Action Updated 2019-04-04 15:50 nick Status New => Resolved 2019-04-04 15:50 nick Resolution Open => Accepted 2020-04-27 09:08 geoffclare Note Added: 0004830 2020-04-27 09:08 geoffclare Status Resolved => Under Review 2020-04-27 09:08 geoffclare Resolution Accepted => Reopened 2020-04-27 09:10 geoffclare Tag Detached: issue8 2020-04-27 15:27 geoffclare Note Edited: 0004830 2020-04-27 15:33 geoffclare Note Added: 0004832 2020-04-27 15:34 geoffclare Final Accepted Text => https://austingroupbugs.net/view.php?id=1208#c4832 2020-04-27 15:34 geoffclare Status Under Review => Resolved 2020-04-27 15:34 geoffclare Resolution Reopened => Accepted As Marked 2020-04-27 15:35
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
The following issue has been RESOLVED. == https://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: Resolved Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text:https://austingroupbugs.net/view.php?id=1208#c4832 Resolution: Accepted As Marked Fixed in Version: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2020-04-27 15:34 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn related to 411 adding atomic FD_CLOEXEC support == Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated 2018-09-07 18:53 eblake Desired Action Updated 2018-09-07 18:55 eblake Desired Action Updated 2018-09-07 18:55 eblake Tag Attached: issue8 2018-09-07 19:02 eblake Note Added: 0004109 2018-09-07 19:04 eblake Desired Action Updated 2018-09-07 19:29 eblake Desired Action Updated 2018-09-07 19:35 eblake Description Updated 2018-09-07 22:18 eblake Note Added: 0004110 2018-09-07 22:44 eblake Note Added: 0004111 2018-09-07 22:58 eblake Note Edited: 0004111 2018-09-10 16:32 eblake Relationship added related to 411 2019-04-04 15:31 eblake Note Added: 0004353 2019-04-04 15:46 eblake Note Added: 0004354 2019-04-04 15:47 eblake Desired Action Updated 2019-04-04 15:50 nick Status New => Resolved 2019-04-04 15:50 nick Resolution Open => Accepted 2020-04-27 09:08 geoffclare Note Added: 0004830 2020-04-27 09:08 geoffclare Status Resolved => Under Review 2020-04-27 09:08 geoffclare Resolution Accepted => Reopened 2020-04-27 09:10 geoffclare Tag Detached: issue8 2020-04-27 15:27 geoffclare Note Edited: 0004830 2020-04-27 15:33 geoffclare Note Added: 0004832 2020-04-27 15:34 geoffclare Final Accepted Text => https://austingroupbugs.net/view.php?id=1208#c4832 2020-04-27 15:34 geoffclare Status Under Review => Resolved 2020-04-27 15:34 geoffclare Resolution Reopened => Accepted As Marked
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
A NOTE has been added to this issue. == https://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: Under Review Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2020-04-27 15:33 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn related to 411 adding atomic FD_CLOEXEC support == -- (0004832) geoffclare (manager) - 2020-04-27 15:33 https://austingroupbugs.net/view.php?id=1208#c4832 -- Implement the desired action, as amended by https://austingroupbugs.net/view.php?id=1208#c4830 Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated 2018-09-07 18:53 eblake Desired Action Updated 2018-09-07 18:55 eblake Desired Action Updated 2018-09-07 18:55 eblake Tag Attached: issue8 2018-09-07 19:02 eblake Note Added: 0004109 2018-09-07 19:04 eblake Desired Action Updated 2018-09-07 19:29 eblake Desired Action Updated 2018-09-07 19:35 eblake Description Updated 2018-09-07 22:18 eblake Note Added: 0004110 2018-09-07 22:44 eblake Note Added: 0004111 2018-09-07 22:58 eblake Note Edited: 0004111 2018-09-10 16:32 eblake Relationship added related to 411 2019-04-04 15:31 eblake Note Added: 0004353 2019-04-04 15:46 eblake Note Added: 0004354 2019-04-04 15:47 eblake Desired Action Updated 2019-04-04 15:50 nick Status New => Resolved 2019-04-04 15:50 nick Resolution Open => Accepted 2020-04-27 09:08 geoffclare Note Added: 0004830 2020-04-27 09:08 geoffclare Status Resolved => Under Review 2020-04-27 09:08 geoffclare Resolution Accepted => Reopened 2020-04-27 09:10 geoffclare Tag Detached: issue8 2020-04-27 15:27 geoffclare Note Edited: 0004830 2020-04-27 15:33 geoffclare Note Added: 0004832 ==
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
The following issue has been REOPENED. == https://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: Under Review Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2020-04-27 09:08 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn related to 411 adding atomic FD_CLOEXEC support == -- (0004830) geoffclare (manager) - 2020-04-27 09:08 https://austingroupbugs.net/view.php?id=1208#c4830 -- Reopening because the following change to posix_spawnp() is incorrect. On page 1453 line 48229, change:the file parameter shall be used as the pathname for the new process image file.to: the file parameter shall be used as the pathname for the new process image file; if this pathname does not start with a it shall be interpreted relative to the working directory of the child process after all file_actions have been performed. It should be something like the following. On page 1453 line 48232, change:a search of the directories passed as the environment variable PATH (see XBD Chapter 8, on page NNN).to:a search of the directories passed as the environment variable PATH (see XBD Chapter 8, on page NNN), using the working directory of the child process after all file_actions have been performed. Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated 2018-09-07 18:53 eblake Desired Action Updated 2018-09-07 18:55 eblake Desired Action Updated 2018-09-07 18:55 eblake Tag Attached: issue8 2018-09-07 19:02 eblake Note Added: 0004109 2018-09-07 19:04 eblake Desired Action Updated 2018-09-07 19:29 eblake Desired Action Updated 2018-09-07 19:35 eblake Description Updated 2018-09-07 22:18 eblake Note Added: 0004110 2018-09-07 22:44 eblake Note Added: 0004111 2018-09-07 22:58 eblake Note Edited: 0004111 2018-09-10 16:32 eblake Relationship added related to 411 2019-04-04 15:31 eblake Note Added: 0004353 2019-04-04 15:46 eblake Note Added: 0004354 2019-04-04 15:47 eblake Desired Action Updated 2019-04-04 15:50
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
The following issue has been RESOLVED. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: Resolved Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: Resolution: Accepted Fixed in Version: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2019-04-04 15:50 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn related to 411 adding atomic FD_CLOEXEC support == Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated 2018-09-07 18:53 eblake Desired Action Updated 2018-09-07 18:55 eblake Desired Action Updated 2018-09-07 18:55 eblake Tag Attached: issue8 2018-09-07 19:02 eblake Note Added: 0004109 2018-09-07 19:04 eblake Desired Action Updated 2018-09-07 19:29 eblake Desired Action Updated 2018-09-07 19:35 eblake Description Updated 2018-09-07 22:18 eblake Note Added: 0004110 2018-09-07 22:44 eblake Note Added: 0004111 2018-09-07 22:58 eblake Note Edited: 0004111 2018-09-10 16:32 eblake Relationship added related to 411 2019-04-04 15:31 eblake Note Added: 0004353 2019-04-04 15:46 eblake Note Added: 0004354 2019-04-04 15:47 eblake Desired Action Updated 2019-04-04 15:50 nick Status New => Resolved 2019-04-04 15:50 nick Resolution Open => Accepted ==
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
The following issue has been UPDATED. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2019-04-04 15:47 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn related to 411 adding atomic FD_CLOEXEC support == Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated 2018-09-07 18:53 eblake Desired Action Updated 2018-09-07 18:55 eblake Desired Action Updated 2018-09-07 18:55 eblake Tag Attached: issue8 2018-09-07 19:02 eblake Note Added: 0004109 2018-09-07 19:04 eblake Desired Action Updated 2018-09-07 19:29 eblake Desired Action Updated 2018-09-07 19:35 eblake Description Updated 2018-09-07 22:18 eblake Note Added: 0004110 2018-09-07 22:44 eblake Note Added: 0004111 2018-09-07 22:58 eblake Note Edited: 0004111 2018-09-10 16:32 eblake Relationship added related to 411 2019-04-04 15:31 eblake Note Added: 0004353 2019-04-04 15:46 eblake Note Added: 0004354 2019-04-04 15:47 eblake Desired Action Updated ==
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
A NOTE has been added to this issue. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2019-04-04 15:46 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn related to 411 adding atomic FD_CLOEXEC support == -- (0004354) eblake (manager) - 2019-04-04 15:46 http://austingroupbugs.net/view.php?id=1208#c4354 -- Based on discussion in the 2019-04-04 call, and with original poster's consent, the desired action was updated in-place with an edit to this paragraph: File actions are performed in a new process created by posix_spawn( ) or posix_spawnp( ) in the same order that they were added to the file actions object. Thus, the execution of an addopen action that was created by a call to posix_spawn_file_actions_addopen( ) that specifies a relative path will be affected by the execution of a chdir or fchdir action that was created by a previous call to posix_spawn_file_actions_addchdir( ) or posix_spawn_file_actions_addfchdir( ). Likewise, a relative path passed to posix_spawn( ) will be affected by the last chdir or fchdir action in the file action list. The paragraph still occurs in the text proposed to be added in the new interface addition after page 1460, but was moved from DESCRIPTION to APPLICATION USAGE. Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated 2018-09-07 18:53 eblake Desired Action Updated 2018-09-07 18:55 eblake Desired Action Updated 2018-09-07 18:55 eblake Tag Attached: issue8 2018-09-07 19:02 eblake Note Added: 0004109 2018-09-07 19:04 eblake Desired Action Updated 2018-09-07 19:29 eblake Desired Action Updated 2018-09-07 19:35 eblake Description Updated 2018-09-07 22:18 eblake Note Added: 0004110 2018-09-07 22:44 eblake Note Added: 0004111 2018-09-07 22:58 eblake Note Edited: 0004111 2018-09-10 16:32 eblake Relationship added related to 411 2019-04-04 15:31 eblake Note Added: 0004353 2019-04-04 15:46 eblake Note Added: 0004354
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
A NOTE has been added to this issue. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2019-04-04 15:31 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn related to 411 adding atomic FD_CLOEXEC support == -- (0004353) eblake (manager) - 2019-04-04 15:31 http://austingroupbugs.net/view.php?id=1208#c4353 -- https://sourceware.org/bugzilla/show_bug.cgi?id=17405 documents that glibc introduced posix_spawn_file_actions_addfchdir_np() in Dec 2018. (The _np suffix was intentional meaning "non-portable", in case any semantics have to change slightly to match what we decide here; a simple alias rename is the obvious action if everything matches) Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated 2018-09-07 18:53 eblake Desired Action Updated 2018-09-07 18:55 eblake Desired Action Updated 2018-09-07 18:55 eblake Tag Attached: issue8 2018-09-07 19:02 eblake Note Added: 0004109 2018-09-07 19:04 eblake Desired Action Updated 2018-09-07 19:29 eblake Desired Action Updated 2018-09-07 19:35 eblake Description Updated 2018-09-07 22:18 eblake Note Added: 0004110 2018-09-07 22:44 eblake Note Added: 0004111 2018-09-07 22:58 eblake Note Edited: 0004111 2018-09-10 16:32 eblake Relationship added related to 411 2019-04-04 15:31 eblake Note Added: 0004353 ==
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
The following issue has been set as RELATED TO issue 411. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2018-09-07 22:44 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn related to 411 adding atomic FD_CLOEXEC support == Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated 2018-09-07 18:53 eblake Desired Action Updated 2018-09-07 18:55 eblake Desired Action Updated 2018-09-07 18:55 eblake Tag Attached: issue8 2018-09-07 19:02 eblake Note Added: 0004109 2018-09-07 19:04 eblake Desired Action Updated 2018-09-07 19:29 eblake Desired Action Updated 2018-09-07 19:35 eblake Description Updated 2018-09-07 22:18 eblake Note Added: 0004110 2018-09-07 22:44 eblake Note Added: 0004111 2018-09-07 22:58 eblake Note Edited: 0004111 2018-09-10 16:32 eblake Relationship added related to 411 ==
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
A NOTE has been added to this issue. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2018-09-07 22:44 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn == -- (0004111) eblake (manager) - 2018-09-07 22:44 http://austingroupbugs.net/view.php?id=1208#c4111 -- In fact, we could get by with JUST posix_spawn_file_actions_addfchdir(posix_spawn_file_actions_t*, int), since: posix_spawn_file_actions_addchdir(, "foo"); can be rewritten as: posix_spawn_file_actions_addopen(, 5, "foo", O_RDONLY|O_DIRECTORY|O_CLOEXEC, 0); posix_spawn_file_actions_addfchdir(, 5); modulo any issues with running out of available fds. Since the existing Solaris implementation uses const char* for the _addchdir() name, we'd definitely want to spell things as addfchdir() for an int version rather than risk confusion why addchdir() takes a different type than addchdir_n(). But with that said, here's an exploratory patch originally proposed to glibc implementing an fchdir action under the name addchdir() (but which never went anywhere at the time) - 8 years ago! https://sourceware.org/ml/libc-alpha/2010-08/msg00107.html Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated 2018-09-07 18:53 eblake Desired Action Updated 2018-09-07 18:55 eblake Desired Action Updated 2018-09-07 18:55 eblake Tag Attached: issue8 2018-09-07 19:02 eblake Note Added: 0004109 2018-09-07 19:04 eblake Desired Action Updated 2018-09-07 19:29 eblake Desired Action Updated 2018-09-07 19:35 eblake Description Updated 2018-09-07 22:18 eblake Note Added: 0004110 2018-09-07 22:44 eblake Note Added: 0004111 ==
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
A NOTE has been added to this issue. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2018-09-07 22:18 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn == -- (0004110) eblake (manager) - 2018-09-07 22:18 http://austingroupbugs.net/view.php?id=1208#c4110 -- As a side note: Windows CreateProcess() already supports changing directories at the time of spawning a child. While you wouldn't typically see posix_spawn() and CreateProcess() mixed in the same program, it is nice to know that the concept of changing directory for the child process is already common in an existing OS. Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated 2018-09-07 18:53 eblake Desired Action Updated 2018-09-07 18:55 eblake Desired Action Updated 2018-09-07 18:55 eblake Tag Attached: issue8 2018-09-07 19:02 eblake Note Added: 0004109 2018-09-07 19:04 eblake Desired Action Updated 2018-09-07 19:29 eblake Desired Action Updated 2018-09-07 19:35 eblake Description Updated 2018-09-07 22:18 eblake Note Added: 0004110 ==
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
The following issue has been UPDATED. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2018-09-07 19:35 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn == Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated 2018-09-07 18:53 eblake Desired Action Updated 2018-09-07 18:55 eblake Desired Action Updated 2018-09-07 18:55 eblake Tag Attached: issue8 2018-09-07 19:02 eblake Note Added: 0004109 2018-09-07 19:04 eblake Desired Action Updated 2018-09-07 19:29 eblake Desired Action Updated 2018-09-07 19:35 eblake Description Updated ==
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
The following issue has been UPDATED. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2018-09-07 19:29 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn == Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated 2018-09-07 18:53 eblake Desired Action Updated 2018-09-07 18:55 eblake Desired Action Updated 2018-09-07 18:55 eblake Tag Attached: issue8 2018-09-07 19:02 eblake Note Added: 0004109 2018-09-07 19:04 eblake Desired Action Updated 2018-09-07 19:29 eblake Desired Action Updated ==
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
The following issue has been UPDATED. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2018-09-07 19:04 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn == Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated 2018-09-07 18:53 eblake Desired Action Updated 2018-09-07 18:55 eblake Desired Action Updated 2018-09-07 18:55 eblake Tag Attached: issue8 2018-09-07 19:02 eblake Note Added: 0004109 2018-09-07 19:04 eblake Desired Action Updated ==
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
A NOTE has been added to this issue. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2018-09-07 19:02 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn == -- (0004109) eblake (manager) - 2018-09-07 19:02 http://austingroupbugs.net/view.php?id=1208#c4109 -- Perhaps the two cleanups in posix_spawn_file_actions_addclose (deleting a spurious "or delete", and turning ENOMEM into shall fail instead of may fail) should be split into a separate bug targeted at TC3. Also, such a separate bug could add even more disclaimers into the XRAT example code about how insecure it is, and that it exists merely as a starting point rather than a robust implementation. Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated 2018-09-07 18:53 eblake Desired Action Updated 2018-09-07 18:55 eblake Desired Action Updated 2018-09-07 18:55 eblake Tag Attached: issue8 2018-09-07 19:02 eblake Note Added: 0004109 ==
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
The following issue has been UPDATED. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2018-09-07 18:55 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn == Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated 2018-09-07 18:53 eblake Desired Action Updated 2018-09-07 18:55 eblake Desired Action Updated ==
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
The following issue has been UPDATED. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2018-09-07 18:53 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn == Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated 2018-09-07 18:53 eblake Desired Action Updated ==
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
The following issue has been UPDATED. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2018-09-07 18:51 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn == Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated 2018-09-07 18:51 eblake Desired Action Updated ==
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
The following issue has been UPDATED. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2018-09-07 18:49 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn == Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated 2018-09-07 18:49 eblake Desired Action Updated ==
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
The following issue has been UPDATED. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2018-09-07 18:46 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn == Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated 2018-09-07 18:46 eblake Desired Action Updated ==
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
The following issue has been UPDATED. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2018-09-07 18:44 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn == Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 2018-09-07 18:44 eblake Desired Action Updated ==
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
The following issue has been SUBMITTED. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2018-09-07 18:39 UTC == Summary:calling chdir as part of posix_spawn Description: One notable missing feature from posix_spawn is the ability to change the initial working directory of the new process. Of course, in the common case, it is possible to exec a shim process that will change the directory (GNU coreutils has 'env -C dir program ...' that will do this, but the standard itself does not have such a shim program, so users have to come up with their own). But even more complex is the fact that posix_spawn can change access permissions with PSOIX_SPAWN_RESETIDS, such that the parent may have permission to change to a particular directory, but the child with a different id cannot do so. There is also the case that a multi-threaded parent process can use openat() to open files relative to a particular directory without changing the global state of the current working directory, but there is no interface for openat() within posix_spawn (and it may be prohibitively expensive to convert a relative name into an absolute one). Thus, it can be argued that changing the directory needs to be directly part of posix_spawn(). Solaris has implemented an extension for chdir with a _np suffix (non-portable), and documents that relative names for posix_spawn(,path) and posix_spawnp(,file) are interpreted to the working directory selected for the child: https://docs.oracle.com/cd/E86824_01/html/E54766/posix-spawn-file-actions-addchdir-np-3c.html I'm proposing that we standardize this, but drop the _np suffix (since by standardizing it, it will no longer be non-portable), and also add a counterpart for fchdir. The addition of fchdir makes it possible to simulate openat semantics without actually needing to add posix_spawn_file_actions_addopenat. Note that I did not standardize the notion of a chroot file action (in part due to no existing practice), although such an extension may still make sense. Fix a couple of issues in posix_spawn_file_addclose while at it: you can't delete open/close actions from an existing file_actions object, only add more; and ENOMEM should be a 'shall fail' rather than 'may fail' error to match posix_spawn_file_adddup2. Yes, the additions to the XRAT example are just as borked as the existing implementation for handling an addopen action at lines 126723-126763 and 126852-126860 (very easy to write beyond end of fixed-length array, parse failure on filename containing '*', failure to fail with EBADF for negative filedes, etc) - but being consistently bad in something that is mainly for demo purposes isn't the end of the world. The use of _exit() instead of exit() in the example matches the resolution for http://austingroupbugs.net/view.php?id=1044. Desired Action: Proposed changes (2017 edition page and line numbers): On page 341 line 11588 (XBD ), insertint posix_spawn_file_actions_addchdir(posix_spawn_file_actions_t *restrict, const char *restrict); On page 341 line 11592 (), insertint posix_spawn_file_actions_addfchdir(posix_spawn_file_actions_t *, int); On page 1453 line 48227 (XSH posix_spawn DESCRIPTION), change:a pathname that identifies the new process image file to execute.to:a pathname that identifies the new process image file to execute; if the pathname does not start with a it shall be interpreted relative to the working directory of the child process after all file_actions have been performed. On page 1453 line 48229, change:the file parameter shall be used as the pathname for the new process image file.to:the file parameter shall be used as the pathname for the new process image file; if this pathname does not start with a it shall be interpreted relative to the working directory of the child process after all file_actions have been performed. On page 1453 line 48239, add a
[1003.1(2016)/Issue7+TC2 0001208]: calling chdir as part of posix_spawn
The following issue has been set as RELATED TO issue 0001044. == http://austingroupbugs.net/view.php?id=1208 == Reported By:eblake Assigned To: == Project:1003.1(2016)/Issue7+TC2 Issue ID: 1208 Category: System Interfaces Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Eric Blake Organization: Red Hat User Reference: posix_spawn.chdir Section:posix_spawn Page Number:1452 ff. Line Number:48227 ff. Interp Status: --- Final Accepted Text: == Date Submitted: 2018-09-07 18:39 UTC Last Modified: 2018-09-07 18:39 UTC == Summary:calling chdir as part of posix_spawn == Relationships ID Summary -- related to 0001044 Calling setsid as part of posix_spawn == Issue History Date ModifiedUsername FieldChange == 2018-09-07 18:39 eblake New Issue 2018-09-07 18:39 eblake Name => Eric Blake 2018-09-07 18:39 eblake Organization => Red Hat 2018-09-07 18:39 eblake User Reference=> posix_spawn.chdir 2018-09-07 18:39 eblake Section => posix_spawn 2018-09-07 18:39 eblake Page Number => 1452 ff. 2018-09-07 18:39 eblake Line Number => 48227 ff. 2018-09-07 18:39 eblake Interp Status => --- 2018-09-07 18:39 eblake Relationship added related to 0001044 ==