Bug 219487
Summary: | setcap Command Does Not Support End-of-Options Marker -- | ||
---|---|---|---|
Product: | Tools | Reporter: | spectatorian (bo0od) |
Component: | libcap | Assignee: | Tools/Libcap default virtual assignee (tools_libcap) |
Status: | RESOLVED WILL_NOT_FIX | ||
Severity: | normal | CC: | morgan |
Priority: | P3 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | Subsystem: | ||
Regression: | No | Bisected commit-id: |
Description
spectatorian
2024-11-10 03:01:35 UTC
You can always specify the file with a "./" prefix, such as ./-this . I'm reserving the libcap-2.72 release for a complete rewrite of libpsx. I'll address this request in libcap-2.73. I've been looking at the setcap command and it doesn't work this way. The idea that it be used to set the same capabilities on more than one file at a time isn't how it was designed. The usage message: setcap ... (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) filenameN> ] makes it clear that the user is expected to supply "a capability" and a "filename" in pairs. Given this, conventional meaning for "--" doesn't apply to this utility. I won't be implementing support for it. As noted above, you can specify any filename you need by prefixing it with its path (relative or absolute). |