[Bug 297426] linuxulator: linprocfs /proc/self/exe host path breaks execve under Linux ABI

[email protected]
Newsgroups gmane.os.freebsd.bugs
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297426

--- Comment #18 from Dan Kotowski <[email protected]> ---
Also works as expected even when using linprocfs under /compat/linux

$ /compat/linux/usr/bin/python3.9
Python 3.9.25 (main, Apr 17 2026, 00:00:00)
[GCC 11.5.0 20240719 (Red Hat 11.5.0-14)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> print('readlink:', os.readlink('/proc/self/exe'))
readlink: /compat/linux/usr/bin/python3.9
>>> print('readlink:', os.readlink('/compat/linux/proc/self/exe'))
readlink: /compat/linux/usr/bin/python3.9
>>> try:
...     print('stat:', os.stat('/compat/linux/proc/self/exe'))
... except OSError as e:
...     print('stat: FAIL --', e)
...
stat: os.stat_result(st_mode=33261, st_ino=1426886, st_dev=4259517978,
st_nlink=1, st_uid=0, st_gid=0, st_size=15448, st_atime=0, st_mtime=1779238957,
st_ctime=1785159540)
>>> try:
...     os.execv('/compat/linux/proc/self/exe', ['python3', '-c',
'print(\"execv OK\")'])
... except OSError as e:
...     print('stat: FAIL --', e)
...
execv OK

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.