Bug 214909
Summary: | Mistaken command output for setcap | ||
---|---|---|---|
Product: | Tools | Reporter: | meitingli (244349477) |
Component: | libcap | Assignee: | Andrew G. Morgan (morgan) |
Status: | RESOLVED CODE_FIX | ||
Severity: | enhancement | CC: | morgan |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.19.90-2106.3.0.0095 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | command output |
Description
meitingli
2021-11-02 06:40:24 UTC
Created attachment 299395 [details]
command output
*** Bug 214907 has been marked as a duplicate of this bug. *** Thanks for the bug report. This commit should fix it (will be included in 2.61): https://git.kernel.org/pub/scm/libs/libcap/libcap.git/commit/?id=8e1e967bc8d99a3233d51f67f6b88620cdff78dc $ sudo ./setcap -n 5 cap_net_raw,cap_net_admin=eip ./setcap $ ./getcap -n ./setcap ./setcap cap_net_admin,cap_net_raw=eip [rootid=5] $ sudo ./setcap -n 0 cap_net_raw,cap_net_admin=eip ./setcap bad ns rootid: want positive integer, got "0" $ sudo ./setcap -n -5 cap_net_raw,cap_net_admin=eip ./setcap bad ns rootid: want positive integer, got "-5" $ sudo ./setcap -n root cap_net_raw,cap_net_admin=eip ./setcap bad ns rootid: want positive integer, got "root" |