data/selinux: merge SELinux policy module #2878

Merged
merged 40 commits into from Feb 23, 2017

Conversation

Projects
None yet
4 participants
Contributor

Conan-Kudo commented Feb 17, 2017

This PR merges the SELinux policy module I had been developing on my repository on GitLab into the snapd repository.

Hopefully now, SELinux policy development will now be part of snapd development.

Conan-Kudo added some commits Aug 30, 2016

Mark sockets as sockets
See selabel_file(5) for details
Grant access to unlabeled files, since snap filesystems are read-only
snap filesystems currently cannot have the appropriate label applied,
so snapd needs access to unlabeled files for now. On a proper SELinux
system, this should be few and far in between, too.

This should be fixed as soon as possible in a more proper fashion.
Merge SELinux policy repository
Merge in 'master' from 'https://gitlab.com/Conan_Kudo/snapcore-selinux.git'

SELinux policy development will now be part of snapd development.

Signed-off-by: Neal Gompa <ngompa13@gmail.com>

@Conan-Kudo Conan-Kudo changed the title from Merge SELinux policy repository to Merge SELinux policy module Feb 17, 2017

Mostly LGTM but questions about the way the license is applied

@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
@zyga

zyga Feb 17, 2017

Contributor

I wonder if this should go to top-level as COPYING.GPL2, @mvo5 what do you think.

We should be clear about the license that applies to particular part of the code.

@Conan-Kudo I think we need to document the license in the particular files to be compliant.

@Conan-Kudo

Conan-Kudo Feb 18, 2017

Contributor

Done.

data/selinux/README.md
+
+# Licensing
+
+As the work from this is derived from modules from [Fedora's SELinux policy project](https://github.com/fedora-selinux/selinux-policy), it is licensed in the same manner.
@zyga

zyga Feb 17, 2017

Contributor

Could you please re-format this to (vim select + gq) to wrap nicely?

data/selinux: Wrap text in README.md
Signed-off-by: Neal Gompa <ngompa13@gmail.com>
Collaborator

mvo5 commented Feb 20, 2017

This looks good to me, thank you! Really excited to see SELinux landing :-D

mvo5 approved these changes Feb 20, 2017

data/selinux: Add license header to policy files and Makefile
Signed-off-by: Neal Gompa <ngompa13@gmail.com>

@niemeyer niemeyer changed the title from Merge SELinux policy module to data/selinux: merge SELinux policy module Feb 23, 2017

@niemeyer niemeyer merged commit 7493d7f into snapcore:master Feb 23, 2017

1 of 6 checks passed

xenial-amd64 autopkgtest finished (failure)
Details
xenial-i386 autopkgtest finished (failure)
Details
xenial-ppc64el autopkgtest finished (failure)
Details
yakkety-amd64 autopkgtest finished (failure)
Details
zesty-amd64 autopkgtest finished (failure)
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@Conan-Kudo Conan-Kudo deleted the Conan-Kudo:selinux-policy branch Feb 23, 2017

Contributor

Conan-Kudo commented Feb 23, 2017

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment