VirtualBox

Ignore:
Timestamp:
May 16, 2025 2:35:53 PM (30 hours ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168907
Message:

IPRT/process-creation-posix.cpp: Also handle EACCES for execve() via RTAssertMsg2Weak(), to give users some more clues in case of enabled SELinux policies. bugref:10903

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/process-creation-posix.cpp

    r106061 r109302  
    23022302                RTAssertMsg2Weak("Cannot execute this binary format!\n");
    23032303            }
     2304            else if (errno == EACCES)
     2305            {
     2306                /* This can happen if file isn't marked as being executable or SELinux is enabled for prohibits using execve.*/
     2307                RTAssertMsg2Weak("Permission denied executing this binary -- check execute permissions and/or SELinux policies!\n");
     2308            }
    23042309            else
    23052310                RTAssertMsg2Weak("execve returns %d errno=%d (%s)\n", rc, errno, pszNativeExec);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette