-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
request_key: Convert docs to docparse
+ update copyright Signed-off-by: Petr Vorel <[email protected]>
- Loading branch information
Showing
5 changed files
with
31 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,19 +2,18 @@ | |
/* | ||
* Copyright (c) 2016 Fujitsu Ltd. | ||
* Copyright (c) 2017 Petr Vorel <[email protected]> | ||
* | ||
* Copyright (c) Linux Test Project, 2017-2024 | ||
* Author: Xiao Yang <[email protected]> | ||
*/ | ||
|
||
/* | ||
* Test Name: request_key01 | ||
/*\ | ||
* [Description] | ||
* | ||
* Test basic functionality of the request_key(2). | ||
* | ||
* Description: | ||
* The testcase checks basic functionality of the request_key(2). | ||
* request_key(2) asks the kernel to find a key which matches the | ||
* specified description. If successful, it attaches it to the | ||
* nominated keyring and returns its serial number. | ||
* | ||
*/ | ||
|
||
#include <errno.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,22 +2,19 @@ | |
/* | ||
* Copyright (c) 2016 Fujitsu Ltd. | ||
* Copyright (c) 2017 Petr Vorel <[email protected]> | ||
* | ||
* Copyright (c) Linux Test Project, 2017-2024 | ||
* Author: Xiao Yang <[email protected]> | ||
*/ | ||
|
||
/* | ||
* Test Name: request_key02 | ||
/*\ | ||
* [Description] | ||
* | ||
* Description: | ||
* 1) request_key(2) fails if no matching key was found. | ||
* 2) request_key(2) fails if A revoked key was found. | ||
* 3) request_key(2) fails if An expired key was found. | ||
* Basic request_key(2) failure checking. request_key(2) should return -1 and | ||
* set expected errno: | ||
* | ||
* Expected Result: | ||
* 1) request_key(2) should return -1 and set errno to ENOKEY. | ||
* 2) request_key(2) should return -1 and set errno to EKEYREVOKED. | ||
* 3) request_key(2) should return -1 and set errno to EKEYEXPIRED. | ||
* 1. ENOKEY (no matching key was found), | ||
* 2. EKEYREVOKED (revoked key was found) | ||
* 3. EKEYEXPIRED (expired key was found) | ||
*/ | ||
|
||
#include <errno.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
/* | ||
* Copyright (c) 2017 Richard Palethorpe <[email protected]> | ||
* Copyright (c) Linux Test Project, 2018-2024 | ||
*/ | ||
/* | ||
* Test for CVE-2017-6951, original reproducer can be found here: | ||
|
||
/*\ | ||
* [Description] | ||
* | ||
* Test for CVE-2017-6951, original reproducer: | ||
* http://www.spinics.net/lists/keyrings/msg01845.html | ||
* | ||
* request_key() is not in glibc, so we just use the syscall directly instead | ||
|