Skip to content

How to get the absolute path when intercepting the open system call #3

@mingleichen

Description

@mingleichen

Hello, your work is quite nice. It is very helpful to me.

I want to identify the absolute path of the file to redirect to the file that I expect to open, but now I meet a problem, how to get the absolute path of the file when intercepting the open system call. I tried to use PEEKUSER to get the file name parameter of the open system call, but what I got was a relative path. If you have any thoughts, I will be grateful for you to tell me.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions