Socket AF_UNIX missing fs mapping check
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- networking, operating-systems
Research direction
Start by tracing ql_unix_socket_path and its call to ql.os.path.virtual_to_host_path for AF_UNIX sockets. Check how ql.add_fs_map entries are represented and applied, then verify that the socket path honors the user-provided mapping instead of defaulting to rootfs/var/run/dbus/socketname. Done means the mapped path is returned for the reported socket case.
Written by the indexing model from the issue text.
Description
My emulated program is using AF_UNIX socket. the path used in the program is /var/run/dbus/socketname and Qiling maps it to rootfs/var/run/dbus/socketname
Even ql.add_fs_map('/var/run/dbus/socketname', '/var/run/dbus/socketname'), Qiling tries to connect socket rootfs/var/run/dbus/socketname. I think the issue here is caused by ql_unix_socket_path which returns hpath = ql.os.path.virtual_to_host_path(vpath) without checking fs_mapping by user.
Expected behavior
If socket.family == AF_UNIX, the socket path should check the fs mapping and should return accordingly.
- Dominant language
- Python
- Stars
- 6.1k
- Forks
- 798
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 9
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from qilingframework/qiling
-
Difficulty 2/5 Half a day Newbie friendliness 82/100
qilingframework/qiling#1640 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
qilingframework/qiling#1628 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
qilingframework/qiling#1460 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
qilingframework/qiling#1458 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 70/100
qilingframework/qiling#1665 ·
All issues in qilingframework/qiling
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100