Bug 1389873 - libcap cap_get_flag with CAP_AUDIT_READ results in EINVAL
Summary: libcap cap_get_flag with CAP_AUDIT_READ results in EINVAL
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libcap
Version: 24
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-29 07:16 UTC by Arcadiy Ivanov
Modified: 2016-11-27 23:21 UTC (History)
1 user (show)

Fixed In Version: 2.25-2.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-27 23:21:16 UTC
Type: Bug


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.