Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syscall: TestGroupCleanup failed #16224

Closed
patricksuo opened this issue Jun 30, 2016 · 2 comments
Closed

syscall: TestGroupCleanup failed #16224

patricksuo opened this issue Jun 30, 2016 · 2 comments

Comments

@patricksuo
Copy link

@patricksuo patricksuo commented Jun 30, 2016

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    e0c8af0
  2. What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/workspace/Server/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
  1. What did you do?
    If possible, provide a recipe for reproducing the error.
    build go as root
    GOROOT_BOOTSTRAP=/usr/local/go/ ./all.bash
    ( all test pass with normal user account)
  2. What did you expect to see?
    pass all test
  3. What did you see instead?
    One test failed:
ok      strings 0.113s
ok      sync    0.134s
ok      sync/atomic 0.040s
--- FAIL: TestGroupCleanup (0.01s)
    exec_linux_test.go:204: id command output: uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023, expected: uid=0(root) gid=0(root) groups=0(root)
FAIL
FAIL    syscall 0.060s
ok      testing 4.484s
@ianlancetaylor ianlancetaylor changed the title TestGroupCleanup failed syscall: TestGroupCleanup failed Jun 30, 2016
@ianlancetaylor ianlancetaylor added this to the Go1.7Maybe milestone Jun 30, 2016
@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Jun 30, 2016

What distro are you using? What version?

@patricksuo
Copy link
Author

@patricksuo patricksuo commented Jul 1, 2016

6c13649 fix this.

centos 7.x, selinux-enabled.

uname -a
Linux localhost83 3.10.0-327.13.1.el7.x86_64 #1 SMP Thu Mar 31 16:04:38 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
id --version
id (GNU coreutils) 8.22
...

in coreutils-8.0/src/id.c

  /* If we are on a selinux-enabled kernel and no user is specified,
     get our context. Otherwise, leave the context variable alone -
     it has been initialized known invalid value and will be not
     displayed in print_full_info() */
  if (selinux_enabled && argc == optind)
    {
      if (getcon (&context) && just_context)
        error (EXIT_FAILURE, 0, _("can't get process context"));
    }

   ...

  /* POSIX mandates the precise output format, and that it not include
     any context=... part, so skip that if POSIXLY_CORRECT is set.  */
  if (context != NULL && ! getenv ("POSIXLY_CORRECT"))
    printf (_(" context=%s"), context);
@golang golang locked and limited conversation to collaborators Jul 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.