Merge pull request #6088 from AkihiroSuda/pkg-cap-fix-comment
pkg/cap: remove an outdated comment
This commit is contained in:
commit
7b2a5f1c0d
@ -117,9 +117,6 @@ func ParseProcPIDStatus(r io.Reader) (map[Type]uint64, error) {
|
|||||||
// the current process.
|
// the current process.
|
||||||
//
|
//
|
||||||
// The result is like []string{"CAP_SYS_ADMIN", ...}.
|
// The result is like []string{"CAP_SYS_ADMIN", ...}.
|
||||||
//
|
|
||||||
// The result does not contain caps that are not recognized by
|
|
||||||
// the "github.com/syndtr/gocapability" library.
|
|
||||||
func Current() ([]string, error) {
|
func Current() ([]string, error) {
|
||||||
f, err := os.Open("/proc/self/status")
|
f, err := os.Open("/proc/self/status")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user