Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1675914

Re: selftests/capabilities: test FAIL on linux mainline and linux-next and PASS on linux-4.4.70+

From Greg KH <greg@kroah.com>
Newsgroups linux.kernel
Subject Re: selftests/capabilities: test FAIL on linux mainline and linux-next and PASS on linux-4.4.70+
Date 2017-06-27 17:40 +0200
Message-ID <tX0KS-2rx-27@gated-at.bofh.it> (permalink)
References <tWUm6-6qI-17@gated-at.bofh.it> <tX0KS-2rx-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Jun 27, 2017 at 05:13:59PM +0200, Greg KH wrote:
> On Tue, Jun 27, 2017 at 02:10:32PM +0530, Naresh Kamboju wrote:
> > selftest capabilities test failed on linux mainline and linux-next and
> > PASS on linux-4.4.70+
> 
> Odd.  Any chance you can use 'git bisect' to track down the offending
> commit?
> 
> Does this also fail on x86 or any other platform you have available?
> Let me go try this on my laptop...

Ok, Linus's current tree (4.12.0-rc7+) also fails on this.  I'm guessing
it's failing, it's hard to understand the output.  If only we had TAP
output for this test :)

[RUN]   +++ Tests with uid == 0 +++
[NOTE]  Using global UIDs for tests
[RUN]   Root => ep
[OK]    Capabilities after execve were correct
[OK]    Child succeeded
[OK]    Check cap_ambient manipulation rules
[OK]    PR_CAP_AMBIENT_RAISE failed on non-inheritable cap
[OK]    PR_CAP_AMBIENT_RAISE failed on non-permitted cap
[OK]    PR_CAP_AMBIENT_RAISE worked
[OK]    Basic manipulation appears to work
[RUN]   Root +i => eip
[OK]    Capabilities after execve were correct
[OK]    Child succeeded
[RUN]   UID 0 +ia => eipa
[OK]    Capabilities after execve were correct
[OK]    Child succeeded
[RUN]   Root +ia, suidroot => eipa
[OK]    Capabilities after execve were correct
[OK]    Child succeeded
[RUN]   Root +ia, suidnonroot => ip
[FAIL]  Wrong effective state (AT_SECURE is not set)
[FAIL]  Child failed
[RUN]   Root +ia, sgidroot => eipa
[OK]    Capabilities after execve were correct
[OK]    Child succeeded
[RUN]   Root, gid != 0, +ia, sgidroot => eip
[FAIL]  Wrong ambient state (AT_SECURE is not set)
[FAIL]  Child failed
[RUN]   Root +ia, sgidnonroot => eip
[FAIL]  Wrong ambient state (AT_SECURE is not set)
[FAIL]  Child failed
[FAIL]  Child failed
[RUN]   +++ Tests with uid != 0 +++
[NOTE]  Using global UIDs for tests
[RUN]   Non-root => no caps
[OK]    Capabilities after execve were correct
[OK]    Child succeeded
[OK]    Check cap_ambient manipulation rules
[OK]    PR_CAP_AMBIENT_RAISE failed on non-inheritable cap
[OK]    PR_CAP_AMBIENT_RAISE failed on non-permitted cap
[OK]    PR_CAP_AMBIENT_RAISE worked
[OK]    Basic manipulation appears to work
[RUN]   Non-root +i => i
[OK]    Capabilities after execve were correct
[OK]    Child succeeded
[RUN]   UID 1 +ia => eipa
[OK]    Capabilities after execve were correct
[OK]    Child succeeded
[RUN]   Non-root +ia, sgidnonroot => i
[FAIL]  Wrong effective state (AT_SECURE is not set)
[FAIL]  Child failed

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

selftests/capabilities: test FAIL on linux mainline and linux-next  and PASS on linux-4.4.70+ Naresh Kamboju <naresh.kamboju@linaro.org> - 2017-06-27 10:50 +0200
  Re: selftests/capabilities: test FAIL on linux mainline and  linux-next and PASS on linux-4.4.70+ Greg KH <greg@kroah.com> - 2017-06-27 17:40 +0200
    Re: selftests/capabilities: test FAIL on linux mainline and  linux-next and PASS on linux-4.4.70+ Greg KH <greg@kroah.com> - 2017-06-27 17:40 +0200
      Re: selftests/capabilities: test FAIL on linux mainline and  linux-next and PASS on linux-4.4.70+ Shuah Khan <shuahkh@osg.samsung.com> - 2017-06-28 01:20 +0200
        Re: selftests/capabilities: test FAIL on linux mainline and  linux-next and PASS on linux-4.4.70+ Kees Cook <keescook@chromium.org> - 2017-06-28 06:40 +0200
          Re: selftests/capabilities: test FAIL on linux mainline and  linux-next and PASS on linux-4.4.70+ Andy Lutomirski <luto@kernel.org> - 2017-06-28 23:30 +0200
            Re: selftests/capabilities: test FAIL on linux mainline and linux-next and PASS on linux-4.4.70+ ebiederm@xmission.com (Eric W. Biederman) - 2017-06-29 16:20 +0200
              Re: selftests/capabilities: test FAIL on linux mainline and linux-next and PASS on linux-4.4.70+ ebiederm@xmission.com (Eric W. Biederman) - 2017-06-29 16:40 +0200
                Re: selftests/capabilities: test FAIL on linux mainline and  linux-next and PASS on linux-4.4.70+ Andy Lutomirski <luto@kernel.org> - 2017-06-29 17:50 +0200
                Re: selftests/capabilities: test FAIL on linux mainline and linux-next and PASS on linux-4.4.70+ ebiederm@xmission.com (Eric W. Biederman) - 2017-06-29 18:40 +0200
  Re: selftests/capabilities: test FAIL on linux mainline and  linux-next and PASS on linux-4.4.70+ Shuah Khan <shuahkh@osg.samsung.com> - 2017-06-27 17:40 +0200
    Re: selftests/capabilities: test FAIL on linux mainline and  linux-next and PASS on linux-4.4.70+ Shuah Khan <shuahkh@osg.samsung.com> - 2017-06-27 17:50 +0200

csiph-web