diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-04-02 20:24:18 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-04-02 20:24:18 +0000 |
commit | cdb9cd95d819b7d394f63db8dd87804de5aa3e69 (patch) | |
tree | 21df5650189a18b6e92f11a618bac3deb1adf361 /testcases/kernel/syscalls/capset/capset02.c | |
parent | 26a125c969109073ae74a948b3d8e4035cda4f7c (diff) | |
parent | 74f79dc224f4a1e79829ddfa11fa9439bf561423 (diff) | |
download | ltp-cdb9cd95d819b7d394f63db8dd87804de5aa3e69.tar.gz |
Merge changes from topic "ltp-20230929-android14-tests" into android14-tests-devandroid14-tests-dev
* changes:
cgroup: Fix scanning V1 mount options
cgroup: Handle trailing new line in cgroup.controllers
compare_ltp_projects.py: Fix test sorting, adjust printing
madvise11: Allow test to skip if MADV_SOFT_OFFLINE is not supported
madvise11: Replace /etc/mtab with /proc/mounts
syscalls/process_madvise01: fix smaps scan and min_swap_avail
tst_clocks.c: Fix stack smashing on 32bit
tst_kvercmp: Handle larger kernel version numbers
getpgid01: On Android, pgid(1) is 0 instead of 1
pipe07: refactor exp_num_pipes
pipe07: close /proc/self/fd after counting fds
config.h: Compile with linux/ioprio.h to fix ioprio_set03
sched.h: Don't exclude clone_args_minimal when HAVE_STRUCT_CLONE_ARGS is set
ltp-version.h: Generate with genrule
mq_notify03: disable test because don't have mqueue
kvm: Disable kvm tests
make_parser.py: Handle as (gnu assembler) command in makefile
android_build_generator.py: Print more info when failing with compile target
LTP 20230929
Merge tag '20230929'
Diffstat (limited to 'testcases/kernel/syscalls/capset/capset02.c')
-rw-r--r-- | testcases/kernel/syscalls/capset/capset02.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/testcases/kernel/syscalls/capset/capset02.c b/testcases/kernel/syscalls/capset/capset02.c index 5173be09b..989f3e4ce 100644 --- a/testcases/kernel/syscalls/capset/capset02.c +++ b/testcases/kernel/syscalls/capset/capset02.c @@ -2,21 +2,27 @@ /* * Copyright (c) Wipro Technologies Ltd, 2002. All Rights Reserved. * Author: Saji Kumar.V.R <saji.kumar@wipro.com> - * + * Copyright (c) Linux Test Project, 2003-2023 + */ + +/*\ + * [Description] * Tests basic error handling of the capset syscall. - * 1) capset() fails with errno set to EFAULT if an invalid address + * + * 1. capset() fails with errno set to EFAULT if an invalid address * is given for header. - * 2) capset() fails with errno set to EFAULT if an invalid address + * 2. capset() fails with errno set to EFAULT if an invalid address * is given for data. - * 3) capset() fails with errno set to EINVAL if an invalid value + * 3. capset() fails with errno set to EINVAL if an invalid value * is given for header->version. - * 4) capset() fails with errno set to EPERM if the new_Effective is + * 4. capset() fails with errno set to EPERM if the new_Effective is * not a subset of the new_Permitted. - * 5) capset() fails with errno set to EPERM if the new_Permitted is + * 5. capset() fails with errno set to EPERM if the new_Permitted is * not a subset of the old_Permitted. - * 6) capset() fails with errno set ot EPERM if the new_Inheritable is + * 6. capset() fails with errno set ot EPERM if the new_Inheritable is * not a subset of the old_Inheritable and bounding set. */ + #include <stdlib.h> #include <sys/types.h> #include <unistd.h> |