selinux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ondrej Mosnacek <omosnace@redhat.com>
To: Stephen Smalley <stephen.smalley.work@gmail.com>
Cc: Richard Haines <richard_c_haines@btinternet.com>,
	SElinux list <selinux@vger.kernel.org>
Subject: Re: [PATCH] selinux-testsuite: Review and update SCTP tests
Date: Wed, 26 Aug 2020 22:00:13 +0200	[thread overview]
Message-ID: <CAFqZXNtcLMqiqaPzs=8y7wjwAiUJ8iH7oCV=OmhO+KXYyUvEOA@mail.gmail.com> (raw)
In-Reply-To: <CAEjxPJ6fX5JC5OgbuQKccb-9tUPxxHW1b_BbNrha7nvQRi7nig@mail.gmail.com>

On Wed, Aug 26, 2020 at 9:16 PM Stephen Smalley
<stephen.smalley.work@gmail.com> wrote:
> On Wed, Aug 26, 2020 at 2:58 PM Stephen Smalley
> <stephen.smalley.work@gmail.com> wrote:
> >
> > On Mon, Aug 24, 2020 at 9:07 AM Ondrej Mosnacek <omosnace@redhat.com> wrote:
> > >
> > > On Tue, Jul 28, 2020 at 10:02 AM Ondrej Mosnacek <omosnace@redhat.com> wrote:
> > > > On Sun, Jul 12, 2020 at 6:00 PM Richard Haines
> > > > <richard_c_haines@btinternet.com> wrote:
> > > > > Reviewed the tests using kernel tree: Documentation/security/SCTP.rst
> > > > >
> > > > > Added tests and policy for connectx(3) handling deny and
> > > > > SCTP_SENDMSG_CONNECT
> > > > > Added test and policy for bindx(3) deny
> > > > > Clarified the server test for ports < 1024
> > > > > Added comments regarding kernel net/sctp code locations to relevant tests
> > > > > Corrected policy for test_sctp_deny_peer_client_t
> > > > > Corrected ip/nf tables comment to deny read packet { recv }
> > > > > Added MCS-constrained type as suggested in [1]
> > > > >
> > > > > [1] https://lore.kernel.org/selinux/20200508154138.24217-7-stephen.smalley.work@gmail.com/
> > > > >
> > > > > Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
> > > > > ---
> > > > >  policy/test_sctp.te        | 43 +++++++++++++++++++++-----
> > > > >  tests/sctp/sctp_bindx.c    |  8 ++---
> > > > >  tests/sctp/sctp_connectx.c | 47 +++++++++++++++++++++--------
> > > > >  tests/sctp/test            | 62 +++++++++++++++++++++++++++++++-------
> > > > >  4 files changed, 126 insertions(+), 34 deletions(-)
> > > >
> > > > Acked-by: Ondrej Mosnacek <omosnace@redhat.com>
> > >
> > > Now applied, thanks!
> >
> > Seems to have broken the testsuite on travis-ci for userspace testing,
> > https://travis-ci.org/github/SELinuxProject/selinux/jobs/721441713#L4656
>
> Looks like it was transient but I haven't seen that failure prior to
> this testsuite commit.

That has been happening relatively often on slow/unstable machines for
as long as I remember. In our downstream testing I managed to reduce
the occurrence of these failures to an acceptable level by increasing
the timeouts in the SCTP test to 4 seconds. I planned to send a patch
to update the timeout values upstream once I get some time-proven
values from our testing. I guess I waited long enough now :) I'll send
a patch to bump them to 4 secs tomorrow.

-- 
Ondrej Mosnacek
Software Engineer, Platform Security - SELinux kernel
Red Hat, Inc.


      reply	other threads:[~2020-08-26 20:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-12 16:00 [PATCH] selinux-testsuite: Review and update SCTP tests Richard Haines
2020-07-28  8:02 ` Ondrej Mosnacek
2020-08-24 13:07   ` Ondrej Mosnacek
2020-08-26 18:58     ` Stephen Smalley
2020-08-26 19:15       ` Stephen Smalley
2020-08-26 20:00         ` Ondrej Mosnacek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFqZXNtcLMqiqaPzs=8y7wjwAiUJ8iH7oCV=OmhO+KXYyUvEOA@mail.gmail.com' \
    --to=omosnace@redhat.com \
    --cc=richard_c_haines@btinternet.com \
    --cc=selinux@vger.kernel.org \
    --cc=stephen.smalley.work@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).