Skip to content

Commit

Permalink
iopl02: Convert docs to docparse
Browse files Browse the repository at this point in the history
Link: https://lore.kernel.org/ltp/[email protected]/
Reviewed-by: Avinesh Kumar <[email protected]>
Reviewed-by: Petr Vorel <[email protected]>
Signed-off-by: Yang Xu <[email protected]>
  • Loading branch information
xuyang0410 authored and pevik committed Mar 21, 2024
1 parent fd3f668 commit bc9b785
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions testcases/kernel/syscalls/iopl/iopl02.c
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) Linux Test Project, 2020
* Copyright (c) Wipro Technologies Ltd, 2002
* Copyright (c) Linux Test Project, 2020
* Copyright (c) Wipro Technologies Ltd, 2002
* Author: Subhab Biswas <[email protected]>
*/

/*
* This is an error test for iopl(2) system call.
/*\
* [Description]
*
* Verify that
* 1) iopl(2) returns -1 and sets errno to EINVAL for privilege
* level greater than 3.
* 2) iopl(2) returns -1 and sets errno to EPERM if the current
* user is not the super-user.
* Test for iopl(2) system call error.
*
* Author: Subhab Biswas <[email protected]>
* - iopl(2) fail with EINVAL when privilege level greater than 3.
* - iopl(2) fail with EPERM when the current user is not the super-user.
*/

#include <errno.h>
Expand Down

0 comments on commit bc9b785

Please sign in to comment.