2 * SYSCALL_DEFINE5(linkat, int, olddfd, const char __user *, oldname,
3 int, newdfd, const char __user *, newname, int, flags)
11 static void sanitise_linkat(int childno
)
13 /* .. If oldpath is relative and olddirfd is the special value AT_FDCWD, then oldpath is
14 * interpreted relative to the current working directory of the calling process */
15 if ((rand() % 100) == 0)
16 shm
->syscall
[childno
].a1
= AT_FDCWD
;
19 struct syscallentry syscall_linkat
= {
24 .arg2name
= "oldname",
25 .arg2type
= ARG_PATHNAME
,
28 .arg4name
= "newname",
29 .arg4type
= ARG_PATHNAME
,
34 .values
= { AT_SYMLINK_FOLLOW
, AT_EMPTY_PATH
},
38 .sanitise
= sanitise_linkat
,