-
Notifications
You must be signed in to change notification settings - Fork 169
HowToContribute
If you are interested in Fedora SELinux policy development, feel free to contact us on the
For more detail questions, ideas and bugs, you can use
- Fedora SELinux mailing list
- Red Hat Bugzilla
- #fedora-selinux on irc.freenode.net
or upstream channels
- Reference Policy GitHub
- Reference Policy mailing list
- #selinux on irc.freenode.net
Fedora SELinux policy changes should be submitted by pull requests on GitHub.
When submitting patches against Fedora Policy Github, try to follow this advice:
- Make sure you create a new pull request against up-to-date repositories.
- Do not increase the version numbers in the policy_module() lines.
- Make logical and small changes per commit.
- More commits can be a part of one pull request.
- If possible, try to avoid disjoint changes to different modules in a single commit.
- Proposed changes should not break anything.
- Proposed changes should be
- tested
- commented
- compilable
For additional details, where/how we do distro packaging see Packaging section on this wiki.
The following example show you how to submit a pull request for lircd policy against rawhide branch.
-
Go to https://github.com/fedora-selinux/selinux-policy-contrib.
-
Fork the project using Fork button.
-
Use a git address of your cloned repository, eg. git@github.com:mgrepl/selinux-policy-contrib.git to clone the repository to your local system.
$ git clone git@github.com:mgrepl/selinux-policy-contrib.git $ cd selinux-policy-contrib
-
Set the original project repository as a remote with SELinuxFedoraPolicy name and fetch it.
$ git remote add SELinuxFedoraPolicy git@github.com:fedora-selinux/selinux-policy-contrib.git $ git fetch SELinuxFedoraPolicy
-
Create a feature branch based on SELinuxFedoraPolicy/rawhide branch.
$ git checkout -t SELinuxFedoraPolicy/rawhide -b rawhide-lircd
-
Edit lircd.te file.
$ git diff diff --git a/lircd.te b/lircd.te index 62ca3e4..eeaa01c 100644 --- a/lircd.te +++ b/lircd.te @@ -68,6 +68,8 @@ term_use_ptmx(lircd_t) term_use_usb_ttys(lircd_t) term_use_unallocated_ttys(lircd_t) +auth_read_passwd(lircd_t)
-
Commit and push changes.
$ git add -p $ git commit $ git push origin HEAD
-
Go to your cloned project page on GitHub, choose your feature branch (rawhide-lircd) and click on "Compare & pull request" button. Choose rawhide for fedora-selinux/selinux-policy-contrib, check your changes, add your comment and click on "Create pull request" button.