summaryrefslogtreecommitdiff
path: root/pkeys.c
Commit message (Collapse)AuthorAgeFilesLines
* Move source files into src subdirectoryDmitry V. Levin2021-02-031-25/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/Makefile.am: New file. * src/.gitignore: Likewise. * scno.am: Move into src subdirectory. * scno.head: Likewise. * strace-graph: Likewise. * strace-log-merge: Likewise. * linux/: Likewise. * types/: Likewise. * xlat/: Likewise. * *.awk: Likewise. * *.c: Likewise. * *.h: Likewise. * *.sh: Likewise. * .gitignore: Update. * Makefile.am: Update. * bootstrap: Update. * configure.ac: Update. * debian/rules: Update. * debian/strace-udeb.install: Update. * debian/strace.examples: Update. * debian/strace.install: Update. * debian/strace64.install: Update. * m4/gen_bpf_attr_m4.sh: Update. * m4/mpers.m4: Update. * tests/Makefile.am: Update. * tests/init.sh: Update. * tests/legacy_syscall_info.test: Update. * tests/strace-log-merge-error.test: Update. * tests/strace-log-merge-suffix.test: Update.
* Add copyright headers to some files that lack themDmitry V. Levin2018-12-241-0/+7
| | | | | | We do our best to keep copyright headers up to date, yet git history provides better information on this subject and is more accurate than copyright headers.
* Remove getarg_kluDmitry V. Levin2016-12-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | After transition from long to kernel_ulong_t we no longer need tcp->ext_arg, and therefore a function to access it is also no longer needed. * defs.h (getarg_klu): Remove prototype. * util.c (getarg_klu): Remove. (printargs): Access tcp->u_arg directly * bjm.c (SYS_FUNC(init_module)): Likewise. * clone.c (SYS_FUNC(unshare)): Likewise. * fadvise.c (SYS_FUNC(fadvise64)): Likewise. * kcmp.c (SYS_FUNC(kcmp)): Likewise. * kexec.c (SYS_FUNC(kexec_file_load)): Likewise. * keyctl.c (SYS_FUNC(keyctl)): Likewise. * lookup_dcookie.c (SYS_FUNC(lookup_dcookie)): Likewise. * mem.c (do_mprotect): Likewise. * mq.c (SYS_FUNC(mq_timedsend), SYS_FUNC(mq_timedreceive)): Likewise. * pkeys.c (SYS_FUNC(pkey_alloc)): Likewise. * prctl.c (print_prctl_args, SYS_FUNC(prctl), SYS_FUNC(arch_prctl)): Likewise.
* Use kernel_ulong_t instead of unsigned long long where appropriateDmitry V. Levin2016-12-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | * defs.h (printaddr_ull): Rename to printaddr_klu, change argument type from unsigned long long to kernel_ulong_t. All callers updated. (getarg_ull): Rename to getarg_klu, change return value type from unsigned long long to kernel_ulong_t. All callers updated. (PRI_kl, PRI_kld, PRI_klu, PRI_klx): New macros. * bjm.c (SYS_FUNC(init_module)): Print kernel_ulong_t type using PRI_klu format. * desc.c (SYS_FUNC(pselect6)): Likewise. * fadvise.c (SYS_FUNC(fadvise64)): Likewise. * lookup_dcookie.c (SYS_FUNC(lookup_dcookie)): Likewise. * mq.c (SYS_FUNC(mq_timedsend), SYS_FUNC(mq_timedreceive)): Likewise. * kcmp.c (SYS_FUNC(kcmp)): Print kernel_ulong_t type using PRI_klx format. * keyctl.c (SYS_FUNC(keyctl)): Likewise. * pkeys.c (SYS_FUNC(pkey_alloc)): Likewise. * prctl.c (print_prctl_args, SYS_FUNC(prctl), SYS_FUNC(arch_prctl)): Print kernel_ulong_t type using PRI_kld, PRI_klu, or PRI_klx format. * util.c (printaddr_ull): Rename to printaddr_klu, change argument type from unsigned long long to kernel_ulong_t, print it using PRI_klx format. (getarg_ull): Rename to getarg_klu, change return value type from unsigned long long to kernel_ulong_t, print it using PRI_klx format.
* Add support for pkey_mprotect, pkey_alloc, pkey_free syscallsEugene Syromyatnikov2016-11-131-0/+18
* linux/32/syscallent.h: Add syscall entries for pkey_* calls. * linux/64/syscallent.h: Likewise. * linux/arm/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * mem.c (do_mprotect): New function, common handler for mprotect and pkey_mprotect. (SYS_FUNC(mprotect)): Convert to wrapper around do_mprotect. (SYS_FUNC(pkey_mprotect)): New function. * xlat/pkey_access.in: New file. * pkeys.c: New file containing implementation of pkey_alloc and pkey_free. * Makefile.am: Add it. * NEWS: Mention this enhancement. * tests/.gitignore: Add pkey_alloc, pkey_free, and pkey_mprotect. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add pkey_alloc.test, pkey_free.test, and pkey_mprotect.test. * tests/pkey_alloc.c: New file. * tests/pkey_free.c: Likewise. * tests/pkey_mprotect.c: Likewise. * tests/pkey_alloc.test: New test. * tests/pkey_free.test: Likewise. * tests/pkey_mprotect.test: Likewise.