[LTP] [PATCH 0/2] Optimization reference to needs_root

Zhao Gongyi zhaogongyi@huawei.com
Wed Oct 12 11:15:24 CEST 2022


1. Add checking of needs_root on the phase of do_setup.
2. Add setting of needs_root for tests that reference to /dev
   or /proc/.

Zhao Gongyi (2):
  lib: Add checking of needs_root
  needs_root: Add setting of needs_root

 lib/tst_test.c                                               | 5 +++++
 testcases/kernel/syscalls/bind/bind06.c                      | 1 +
 testcases/kernel/syscalls/cma/process_vm_readv02.c           | 1 +
 testcases/kernel/syscalls/cma/process_vm_readv03.c           | 1 +
 testcases/kernel/syscalls/cma/process_vm_writev02.c          | 1 +
 .../kernel/syscalls/copy_file_range/copy_file_range01.c      | 1 +
 testcases/kernel/syscalls/ipc/msgget/msgget03.c              | 1 +
 testcases/kernel/syscalls/preadv/preadv03.c                  | 1 +
 testcases/kernel/syscalls/pwritev/pwritev03.c                | 1 +
 testcases/kernel/syscalls/sendto/sendto03.c                  | 1 +
 testcases/kernel/syscalls/setsockopt/setsockopt05.c          | 1 +
 testcases/kernel/syscalls/setsockopt/setsockopt06.c          | 1 +
 testcases/kernel/syscalls/setsockopt/setsockopt07.c          | 1 +
 testcases/kernel/syscalls/setsockopt/setsockopt08.c          | 1 +
 testcases/kernel/syscalls/setsockopt/setsockopt09.c          | 1 +
 testcases/kernel/syscalls/swapon/swapon01.c                  | 1 +
 16 files changed, 20 insertions(+)

--
2.17.1



More information about the ltp mailing list