nhmk/examples
linD026 78e3e062c4 syscall: Use openat() instead of open()
Since sys_open is deprecated and some architectures don't support it.
We switch the implementation to sys_openat.

Moreover, in some architectures like x86-64, the prototype of syscall,
for example, openat(), might have been changed to struct pt_regs [1]
but we cannot promise that so support the two types
(sys_openat and pt_regs).

Also, to prevent other untraced tasks print out the information, add
the uid checking in our_sys_openat().

[1] https://lore.kernel.org/lkml/20180405095307.3730-1-linux@dominikbrodowski.net/

Close #159
2022-12-25 14:27:03 +08:00
..
2022-02-21 00:53:29 +08:00
2022-03-09 14:14:08 +08:00
2021-08-08 01:24:59 +08:00
2021-09-04 17:53:29 +08:00
2022-11-04 01:16:14 +08:00
2022-04-19 01:54:24 +08:00
2022-04-19 01:54:24 +08:00