From: marcelo.leitner@gmail.com (Marcelo Ricardo Leitner)
To: linux-security-module@vger.kernel.org
Subject: [PATCH V4 0/4] Add SELinux SCTP protocol support
Date: Wed, 10 Jan 2018 16:51:27 -0200 [thread overview]
Message-ID: <20180110185127.GH627@localhost.localdomain> (raw)
In-Reply-To: <CAHC9VhS_txcE=3r9MFNRwNuxNwK1JT1272h+yeqqx-gXMdYgzQ@mail.gmail.com>
On Wed, Jan 10, 2018 at 11:39:45AM -0500, Paul Moore wrote:
> On Sat, Dec 30, 2017 at 12:18 PM, Richard Haines
> <richard_c_haines@btinternet.com> wrote:
> > Note: Some conflicts are expected when merging with current net-next due to
> > Interleaving Data (I-DATA) sets of patches:
> > PATCH 2/4 - Where 'sctp_datachk_len(&asoc->stream)' has replaced
> > 'sizeof(struct sctp_data_chunk)' in include/net/sctp/sctp.h,
> > net/sctp/chunk.c and net/sctp/socket.c
> > PATCH 3/4 - Where include/uapi/linux/sctp.h requires a fix to update the
> > #define SCTP_SENDMSG_CONNECT to a higher number.
> >
> > These patches have been built on Fedora 27 with kernel 4.14.8 plus
> > the following userspace patches to enable testing:
> >
> > 1) Updates to libsepol 2.7 to support the sctp portcon statement.
> > The patch is available from:
> > http://arctic.selinuxproject.org/~rhaines/selinux-sctp/
> > selinux-Add-support-for-the-SCTP-portcon-keyword.patch
> >
> > 2) Updates to the SELinux Test Suite adding SCTP tests. Please read the
> > selinux-testsuite/README.sctp for details. The patch is available from:
> > http://arctic.selinuxproject.org/~rhaines/selinux-sctp/
> > selinux-testsuite-Add-SCTP-test-support.patch
> >
> > 3) Updates to lksctp-tools that show SELinux info in sctp_darn and
> > sctp_test. It also contains a minor patch for test_1_to_1_connect.c
> > as when CIPSO/CALIPSO configured, NetLabel returns a different error
> > code for illegal addresses in test 5. The patch is available from:
> > http://arctic.selinuxproject.org/~rhaines/selinux-sctp/
> > lksctp-tools-Add-SELinux-support-to-sctp_test-and-sc.patch
> >
> > All SCTP lksctp-tools/src/func_tests run correctly in enforcing mode.
> >
> > All SCTP regression tests "./sctp-tests run" run correctly in enforcing
> > mode. These tests are obtained from: https://github.com/sctp/sctp-tests
> >
> > The selinux-testsuite patch also adds remote tests (that need some manual
> > configuration). These are useful for testing CIPSO/CALIPSO over a network
> > with a number of categories to produce large ip option fields with various
> > message sizes forcing fragmentation etc..
> >
> > Changes since RFC Patch:
> > Removed the NetLabel patch (was [RFC PATCH 4/5] netlabel: Add SCTP support)
> > as re-engineered. However this patchset will require the NetLabel
> > patch at [1] to fully run the SCTP selinux-testsuite.
> >
> > V1 Changes:
> > PATCH 1/4
> > Remove unused parameter from security_sctp_assoc_request().
> > Reformat and update LSM-sctp.rst documentation.
> > PATCH 2/4
> > Add variables and RCU locks as requested in [2] to support IP options.
> > PATCH 3/4
> > Added security_sctp_assoc_request() hook to sctp_sf_do_unexpected_init()
> > and sctp_sf_do_5_2_4_dupcook().
> > Removed security_sctp_assoc_request() hook from sctp_sf_do_5_1C_ack() as
> > no longer required.
> > PATCH 4/4
> > Reformat and update SELinux-sctp.rst documentation.
> > Remove bindx and connectx permissions.
> > Rework selinux_socket_connect() and selinux_netlbl_socket_connect() to
> > utilise helpers for code reuse.
> > Add spinlock to selinux_sctp_assoc_request().
> > Remove unused parameter from security_sctp_assoc_request().
> > Use address->sa_family == AF_INET in *_bind and *_connect to ensure
> > correct address type.
> > Minor cleanups.
> >
> > V2 Changes:
> > PATCH 4/4 - Remove spin lock from selinux_sctp_assoc_request()
> > PATCH 4/4 - Fix selinux_sctp_sk_clone() kbuild test robot catch [3]
> >
> > V3 Changes:
> > PATCH 2/4 - Account for IP options length in sctp.h sctp_frag_point() by
> > Marcelo
> >
> > V4 Changes:
> > PATCH 1/4 - Move specific SELinux descriptions from LSM-sctp.rst and
> > lsm_hooks.h to SELinux-sctp.rst in PATCH 4/4
> > PATCH 4/4 - Rename selinux_netlbl_sctp_socket_connect() to
> > selinux_netlbl_socket_connect_locked() and move description comments to
> > selinux_sctp_bind_connect()
> >
> > [1] https://marc.info/?l=selinux&m=151061619115945&w=2
> > [2] https://marc.info/?l=selinux&m=150962470215797&w=2
> > [3] https://marc.info/?l=selinux&m=151198281817779&w=2
>
> SCTP folks, any objections? I'm planning on merging these into
> selinux-next after the next merge window so if you want to see any
> changes, please speak up ...
No objections from my side.
Thanks,
Marcelo
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
To: linux-security-module@vger.kernel.org
Subject: Re: [PATCH V4 0/4] Add SELinux SCTP protocol support
Date: Wed, 10 Jan 2018 18:51:27 +0000 [thread overview]
Message-ID: <20180110185127.GH627@localhost.localdomain> (raw)
In-Reply-To: <CAHC9VhS_txcE=3r9MFNRwNuxNwK1JT1272h+yeqqx-gXMdYgzQ@mail.gmail.com>
On Wed, Jan 10, 2018 at 11:39:45AM -0500, Paul Moore wrote:
> On Sat, Dec 30, 2017 at 12:18 PM, Richard Haines
> <richard_c_haines@btinternet.com> wrote:
> > Note: Some conflicts are expected when merging with current net-next due to
> > Interleaving Data (I-DATA) sets of patches:
> > PATCH 2/4 - Where 'sctp_datachk_len(&asoc->stream)' has replaced
> > 'sizeof(struct sctp_data_chunk)' in include/net/sctp/sctp.h,
> > net/sctp/chunk.c and net/sctp/socket.c
> > PATCH 3/4 - Where include/uapi/linux/sctp.h requires a fix to update the
> > #define SCTP_SENDMSG_CONNECT to a higher number.
> >
> > These patches have been built on Fedora 27 with kernel 4.14.8 plus
> > the following userspace patches to enable testing:
> >
> > 1) Updates to libsepol 2.7 to support the sctp portcon statement.
> > The patch is available from:
> > http://arctic.selinuxproject.org/~rhaines/selinux-sctp/
> > selinux-Add-support-for-the-SCTP-portcon-keyword.patch
> >
> > 2) Updates to the SELinux Test Suite adding SCTP tests. Please read the
> > selinux-testsuite/README.sctp for details. The patch is available from:
> > http://arctic.selinuxproject.org/~rhaines/selinux-sctp/
> > selinux-testsuite-Add-SCTP-test-support.patch
> >
> > 3) Updates to lksctp-tools that show SELinux info in sctp_darn and
> > sctp_test. It also contains a minor patch for test_1_to_1_connect.c
> > as when CIPSO/CALIPSO configured, NetLabel returns a different error
> > code for illegal addresses in test 5. The patch is available from:
> > http://arctic.selinuxproject.org/~rhaines/selinux-sctp/
> > lksctp-tools-Add-SELinux-support-to-sctp_test-and-sc.patch
> >
> > All SCTP lksctp-tools/src/func_tests run correctly in enforcing mode.
> >
> > All SCTP regression tests "./sctp-tests run" run correctly in enforcing
> > mode. These tests are obtained from: https://github.com/sctp/sctp-tests
> >
> > The selinux-testsuite patch also adds remote tests (that need some manual
> > configuration). These are useful for testing CIPSO/CALIPSO over a network
> > with a number of categories to produce large ip option fields with various
> > message sizes forcing fragmentation etc..
> >
> > Changes since RFC Patch:
> > Removed the NetLabel patch (was [RFC PATCH 4/5] netlabel: Add SCTP support)
> > as re-engineered. However this patchset will require the NetLabel
> > patch at [1] to fully run the SCTP selinux-testsuite.
> >
> > V1 Changes:
> > PATCH 1/4
> > Remove unused parameter from security_sctp_assoc_request().
> > Reformat and update LSM-sctp.rst documentation.
> > PATCH 2/4
> > Add variables and RCU locks as requested in [2] to support IP options.
> > PATCH 3/4
> > Added security_sctp_assoc_request() hook to sctp_sf_do_unexpected_init()
> > and sctp_sf_do_5_2_4_dupcook().
> > Removed security_sctp_assoc_request() hook from sctp_sf_do_5_1C_ack() as
> > no longer required.
> > PATCH 4/4
> > Reformat and update SELinux-sctp.rst documentation.
> > Remove bindx and connectx permissions.
> > Rework selinux_socket_connect() and selinux_netlbl_socket_connect() to
> > utilise helpers for code reuse.
> > Add spinlock to selinux_sctp_assoc_request().
> > Remove unused parameter from security_sctp_assoc_request().
> > Use address->sa_family = AF_INET in *_bind and *_connect to ensure
> > correct address type.
> > Minor cleanups.
> >
> > V2 Changes:
> > PATCH 4/4 - Remove spin lock from selinux_sctp_assoc_request()
> > PATCH 4/4 - Fix selinux_sctp_sk_clone() kbuild test robot catch [3]
> >
> > V3 Changes:
> > PATCH 2/4 - Account for IP options length in sctp.h sctp_frag_point() by
> > Marcelo
> >
> > V4 Changes:
> > PATCH 1/4 - Move specific SELinux descriptions from LSM-sctp.rst and
> > lsm_hooks.h to SELinux-sctp.rst in PATCH 4/4
> > PATCH 4/4 - Rename selinux_netlbl_sctp_socket_connect() to
> > selinux_netlbl_socket_connect_locked() and move description comments to
> > selinux_sctp_bind_connect()
> >
> > [1] https://marc.info/?l=selinux&m\x151061619115945&w=2
> > [2] https://marc.info/?l=selinux&m\x150962470215797&w=2
> > [3] https://marc.info/?l=selinux&m\x151198281817779&w=2
>
> SCTP folks, any objections? I'm planning on merging these into
> selinux-next after the next merge window so if you want to see any
> changes, please speak up ...
No objections from my side.
Thanks,
Marcelo
WARNING: multiple messages have this Message-ID (diff)
From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
To: Paul Moore <paul@paul-moore.com>
Cc: linux-sctp@vger.kernel.org,
Richard Haines <richard_c_haines@btinternet.com>,
selinux@tycho.nsa.gov, netdev@vger.kernel.org,
linux-security-module@vger.kernel.org,
Vlad Yasevich <vyasevich@gmail.com>,
nhorman@tuxdriver.com, Stephen Smalley <sds@tycho.nsa.gov>,
Eric Paris <eparis@parisplace.org>,
casey@schaufler-ca.com
Subject: Re: [PATCH V4 0/4] Add SELinux SCTP protocol support
Date: Wed, 10 Jan 2018 16:51:27 -0200 [thread overview]
Message-ID: <20180110185127.GH627@localhost.localdomain> (raw)
In-Reply-To: <CAHC9VhS_txcE=3r9MFNRwNuxNwK1JT1272h+yeqqx-gXMdYgzQ@mail.gmail.com>
On Wed, Jan 10, 2018 at 11:39:45AM -0500, Paul Moore wrote:
> On Sat, Dec 30, 2017 at 12:18 PM, Richard Haines
> <richard_c_haines@btinternet.com> wrote:
> > Note: Some conflicts are expected when merging with current net-next due to
> > Interleaving Data (I-DATA) sets of patches:
> > PATCH 2/4 - Where 'sctp_datachk_len(&asoc->stream)' has replaced
> > 'sizeof(struct sctp_data_chunk)' in include/net/sctp/sctp.h,
> > net/sctp/chunk.c and net/sctp/socket.c
> > PATCH 3/4 - Where include/uapi/linux/sctp.h requires a fix to update the
> > #define SCTP_SENDMSG_CONNECT to a higher number.
> >
> > These patches have been built on Fedora 27 with kernel 4.14.8 plus
> > the following userspace patches to enable testing:
> >
> > 1) Updates to libsepol 2.7 to support the sctp portcon statement.
> > The patch is available from:
> > http://arctic.selinuxproject.org/~rhaines/selinux-sctp/
> > selinux-Add-support-for-the-SCTP-portcon-keyword.patch
> >
> > 2) Updates to the SELinux Test Suite adding SCTP tests. Please read the
> > selinux-testsuite/README.sctp for details. The patch is available from:
> > http://arctic.selinuxproject.org/~rhaines/selinux-sctp/
> > selinux-testsuite-Add-SCTP-test-support.patch
> >
> > 3) Updates to lksctp-tools that show SELinux info in sctp_darn and
> > sctp_test. It also contains a minor patch for test_1_to_1_connect.c
> > as when CIPSO/CALIPSO configured, NetLabel returns a different error
> > code for illegal addresses in test 5. The patch is available from:
> > http://arctic.selinuxproject.org/~rhaines/selinux-sctp/
> > lksctp-tools-Add-SELinux-support-to-sctp_test-and-sc.patch
> >
> > All SCTP lksctp-tools/src/func_tests run correctly in enforcing mode.
> >
> > All SCTP regression tests "./sctp-tests run" run correctly in enforcing
> > mode. These tests are obtained from: https://github.com/sctp/sctp-tests
> >
> > The selinux-testsuite patch also adds remote tests (that need some manual
> > configuration). These are useful for testing CIPSO/CALIPSO over a network
> > with a number of categories to produce large ip option fields with various
> > message sizes forcing fragmentation etc..
> >
> > Changes since RFC Patch:
> > Removed the NetLabel patch (was [RFC PATCH 4/5] netlabel: Add SCTP support)
> > as re-engineered. However this patchset will require the NetLabel
> > patch at [1] to fully run the SCTP selinux-testsuite.
> >
> > V1 Changes:
> > PATCH 1/4
> > Remove unused parameter from security_sctp_assoc_request().
> > Reformat and update LSM-sctp.rst documentation.
> > PATCH 2/4
> > Add variables and RCU locks as requested in [2] to support IP options.
> > PATCH 3/4
> > Added security_sctp_assoc_request() hook to sctp_sf_do_unexpected_init()
> > and sctp_sf_do_5_2_4_dupcook().
> > Removed security_sctp_assoc_request() hook from sctp_sf_do_5_1C_ack() as
> > no longer required.
> > PATCH 4/4
> > Reformat and update SELinux-sctp.rst documentation.
> > Remove bindx and connectx permissions.
> > Rework selinux_socket_connect() and selinux_netlbl_socket_connect() to
> > utilise helpers for code reuse.
> > Add spinlock to selinux_sctp_assoc_request().
> > Remove unused parameter from security_sctp_assoc_request().
> > Use address->sa_family == AF_INET in *_bind and *_connect to ensure
> > correct address type.
> > Minor cleanups.
> >
> > V2 Changes:
> > PATCH 4/4 - Remove spin lock from selinux_sctp_assoc_request()
> > PATCH 4/4 - Fix selinux_sctp_sk_clone() kbuild test robot catch [3]
> >
> > V3 Changes:
> > PATCH 2/4 - Account for IP options length in sctp.h sctp_frag_point() by
> > Marcelo
> >
> > V4 Changes:
> > PATCH 1/4 - Move specific SELinux descriptions from LSM-sctp.rst and
> > lsm_hooks.h to SELinux-sctp.rst in PATCH 4/4
> > PATCH 4/4 - Rename selinux_netlbl_sctp_socket_connect() to
> > selinux_netlbl_socket_connect_locked() and move description comments to
> > selinux_sctp_bind_connect()
> >
> > [1] https://marc.info/?l=selinux&m=151061619115945&w=2
> > [2] https://marc.info/?l=selinux&m=150962470215797&w=2
> > [3] https://marc.info/?l=selinux&m=151198281817779&w=2
>
> SCTP folks, any objections? I'm planning on merging these into
> selinux-next after the next merge window so if you want to see any
> changes, please speak up ...
No objections from my side.
Thanks,
Marcelo
next prev parent reply other threads:[~2018-01-10 18:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-30 17:18 [PATCH V4 0/4] Add SELinux SCTP protocol support Richard Haines
2017-12-30 17:18 ` Richard Haines
2017-12-30 17:18 ` Richard Haines
2018-01-10 16:39 ` Paul Moore
2018-01-10 16:39 ` Paul Moore
2018-01-10 16:39 ` Paul Moore
2018-01-10 18:51 ` Marcelo Ricardo Leitner [this message]
2018-01-10 18:51 ` Marcelo Ricardo Leitner
2018-01-10 18:51 ` Marcelo Ricardo Leitner
2018-01-10 20:21 ` Paul Moore
2018-01-10 20:21 ` Paul Moore
2018-01-10 20:21 ` Paul Moore
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=20180110185127.GH627@localhost.localdomain \
--to=marcelo.leitner@gmail.com \
--cc=linux-security-module@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.