svn commit: r319677 - head/usr.bin/truss
John Baldwin
jhb at FreeBSD.org
Thu Jun 8 03:51:19 UTC 2017
Author: jhb
Date: Thu Jun 8 03:51:17 2017
New Revision: 319677
URL: https://svnweb.freebsd.org/changeset/base/319677
Log:
Decode arguments to ACL related system calls.
This only decodes the raw arguments but not the contents of the struct acl
objects.
Modified:
head/usr.bin/truss/syscall.h
head/usr.bin/truss/syscalls.c
Modified: head/usr.bin/truss/syscall.h
==============================================================================
--- head/usr.bin/truss/syscall.h Thu Jun 8 03:15:08 2017 (r319676)
+++ head/usr.bin/truss/syscall.h Thu Jun 8 03:51:17 2017 (r319677)
@@ -48,7 +48,7 @@ enum Argtype { None = 1, Hex, Octal, Int, UInt, LongHe
Sysarch, ExecArgs, ExecEnv, PipeFds, QuadHex, Utrace, IntArray, Pipe2,
CapFcntlRights, Fadvice, FileFlags, Flockop, Getfsstatmode, Kldsymcmd,
Kldunloadflags, Sizet, Madvice, Socklent, Sockprotocol, Sockoptlevel,
- Sockoptname, Msgflags, CapRights, PUInt, PQuadHex,
+ Sockoptname, Msgflags, CapRights, PUInt, PQuadHex, Acltype,
CloudABIAdvice, CloudABIClockID, ClouduABIFDSFlags,
CloudABIFDStat, CloudABIFileStat, CloudABIFileType,
Modified: head/usr.bin/truss/syscalls.c
==============================================================================
--- head/usr.bin/truss/syscalls.c Thu Jun 8 03:15:08 2017 (r319676)
+++ head/usr.bin/truss/syscalls.c Thu Jun 8 03:51:17 2017 (r319677)
@@ -77,6 +77,30 @@ __FBSDID("$FreeBSD$");
*/
static struct syscall decoded_syscalls[] = {
/* Native ABI */
+ { .name = "__acl_aclcheck_fd", .ret_type = 1, .nargs = 3,
+ .args = { { Int, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
+ { .name = "__acl_aclcheck_file", .ret_type = 1, .nargs = 3,
+ .args = { { Name, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
+ { .name = "__acl_aclcheck_link", .ret_type = 1, .nargs = 3,
+ .args = { { Name, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
+ { .name = "__acl_delete_fd", .ret_type = 1, .nargs = 2,
+ .args = { { Int, 0 }, { Acltype, 1 } } },
+ { .name = "__acl_delete_file", .ret_type = 1, .nargs = 2,
+ .args = { { Name, 0 }, { Acltype, 1 } } },
+ { .name = "__acl_delete_link", .ret_type = 1, .nargs = 2,
+ .args = { { Name, 0 }, { Acltype, 1 } } },
+ { .name = "__acl_get_fd", .ret_type = 1, .nargs = 3,
+ .args = { { Int, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
+ { .name = "__acl_get_file", .ret_type = 1, .nargs = 3,
+ .args = { { Name, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
+ { .name = "__acl_get_link", .ret_type = 1, .nargs = 3,
+ .args = { { Name, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
+ { .name = "__acl_set_fd", .ret_type = 1, .nargs = 3,
+ .args = { { Int, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
+ { .name = "__acl_set_file", .ret_type = 1, .nargs = 3,
+ .args = { { Name, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
+ { .name = "__acl_set_link", .ret_type = 1, .nargs = 3,
+ .args = { { Name, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
{ .name = "__cap_rights_get", .ret_type = 1, .nargs = 3,
.args = { { Int, 0 }, { Int, 1 }, { CapRights | OUT, 2 } } },
{ .name = "__getcwd", .ret_type = 1, .nargs = 2,
@@ -2031,6 +2055,9 @@ print_arg(struct syscall_args *sc, unsigned long *args
fprintf(fp, "0x%lx", args[sc->offset]);
break;
}
+ case Acltype:
+ print_integer_arg(sysdecode_acltype, fp, args[sc->offset]);
+ break;
case CloudABIAdvice:
fputs(xlookup(cloudabi_advice, args[sc->offset]), fp);
More information about the svn-src-all
mailing list