Bug 1389873

Summary: libcap cap_get_flag with CAP_AUDIT_READ results in EINVAL
Product: [Fedora] Fedora Reporter: Arcadiy Ivanov <arcadiy>
Component: libcapAssignee: Karsten Hopp <karsten>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 24CC: karsten
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: 2.25-2.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-27 23:21:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Arcadiy Ivanov 2016-10-29 07:16:31 UTC
Description of problem:

a. Calling cap_get_flag with CAP_AUDIT_READ results in EINVAL.

b. Calling cap_to_text with cap_t that includes CAP_AUDIT_READ returns "= 37+ep" instead of the name.

c. Calling cap_to_name with CAP_AUDIT_READ returns "37" instead of the name.

Version-Release number of selected component (if applicable):
2.24-9.fc24

How reproducible:
Always

Steps to Reproduce:
1. Call cap_get_flag with CAP_AUDIT_READ
2. Observe EINVAL in errno
3.

Actual results:
returned -1, errno = EINVAL

Expected results:
returned 0

Additional info:

Comment 1 Arcadiy Ivanov 2016-10-29 07:18:15 UTC
CAP_AUDIT_READ is available since kernel 3.16. Fedora 24 is currently on kernel 4.7.9

Comment 2 Arcadiy Ivanov 2016-11-27 23:21:16 UTC
Fixed in 2.25-2.fc25.