You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
407 B
26 lines
407 B
#include "defs.h" |
|
|
|
#include <fcntl.h> |
|
|
|
#include "xlat/access_flags.h" |
|
|
|
static int |
|
decode_access(struct tcb *tcp, int offset) |
|
{ |
|
printpath(tcp, tcp->u_arg[offset]); |
|
tprints(", "); |
|
printflags(access_flags, tcp->u_arg[offset + 1], "?_OK"); |
|
|
|
return RVAL_DECODED; |
|
} |
|
|
|
SYS_FUNC(access) |
|
{ |
|
return decode_access(tcp, 0); |
|
} |
|
|
|
SYS_FUNC(faccessat) |
|
{ |
|
print_dirfd(tcp, tcp->u_arg[0]); |
|
return decode_access(tcp, 1); |
|
}
|
|
|