{"id":15022557,"url":"https://github.com/puppetlabs/puppetlabs-selinux_core","last_synced_at":"2025-08-16T05:31:50.378Z","repository":{"id":32598957,"uuid":"134775043","full_name":"puppetlabs/puppetlabs-selinux_core","owner":"puppetlabs","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-12T16:30:39.000Z","size":172,"stargazers_count":2,"open_issues_count":0,"forks_count":21,"subscribers_count":88,"default_branch":"main","last_synced_at":"2024-12-04T04:11:39.004Z","etag":null,"topics":["module","supported"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/puppetlabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-24T22:28:35.000Z","updated_at":"2024-06-12T16:30:44.000Z","dependencies_parsed_at":"2024-06-12T22:38:15.354Z","dependency_job_id":"09881b85-1b7f-4636-8ee1-61433b983660","html_url":"https://github.com/puppetlabs/puppetlabs-selinux_core","commit_stats":{"total_commits":83,"total_committers":18,"mean_commits":4.611111111111111,"dds":0.6144578313253012,"last_synced_commit":"ea84bc96047ce6e25ab64fe210d9290cab3625ef"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puppetlabs%2Fpuppetlabs-selinux_core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puppetlabs%2Fpuppetlabs-selinux_core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puppetlabs%2Fpuppetlabs-selinux_core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puppetlabs%2Fpuppetlabs-selinux_core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/puppetlabs","download_url":"https://codeload.github.com/puppetlabs/puppetlabs-selinux_core/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230013017,"owners_count":18159602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["module","supported"],"created_at":"2024-09-24T19:58:06.806Z","updated_at":"2024-12-16T19:12:59.087Z","avatar_url":"https://github.com/puppetlabs.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# selinux_core\n\n[![Modules Status](https://github.com/puppetlabs/puppetlabs-selinux_core/workflows/[Daily]%20Unit%20Tests%20with%nightly%20Puppet%20gem/badge.svg?branch=main)](https://github.com/puppetlabs/puppetlabs-selinux_core/actions)\n[![Modules Status](https://github.com/puppetlabs/puppetlabs-selinux_core/workflows/Static%20Code%20Analysis/badge.svg?branch=main)](https://github.com/puppetlabs/puppetlabs-selinux_core/actions) \n[![Modules Status](https://github.com/puppetlabs/puppetlabs-selinux_core/workflows/Unit%20Tests%20with%20nightly%20Puppet%20gem/badge.svg?branch=main)](https://github.com/puppetlabs/puppetlabs-selinux_core/actions) \n[![Modules Status](https://github.com/puppetlabs/puppetlabs-selinux_core/workflows/Unit%20Tests%20with%20released%20Puppet%20gem/badge.svg?branch=main)](https://github.com/puppetlabs/puppetlabs-selinux_core/actions)\n[![Modules Status](https://github.com/puppetlabs/puppetlabs-selinux_core/workflows/Task%20Acceptance%20Tests/badge.svg?branch=main)](https://github.com/puppetlabs/puppetlabs-selinux_core/actions)\n\n\n#### Table of Contents\n\n1. [Description](#description)\n2. [Setup - The basics of getting started with selinux_core](#setup)\n    * [Setup requirements](#setup-requirements)\n3. [Usage - Configuration options and additional functionality](#usage)\n4. [Reference - User documentation](#reference)\n5. [Limitations - OS compatibility, etc.](#limitations)\n6. [Development - Guide for contributing to the module](#development)\n\n\u003ca id=\"description\"\u003e\u003c/a\u003e\n## Description\n\nManage SELinux context of files.\n\n\u003ca id=\"setup\"\u003e\u003c/a\u003e\n## Setup\n\n\u003ca id=\"setup-requirements\"\u003e\u003c/a\u003e\n### Setup Requirements\n\nIn order to use the selinux module, you must have `selinux` ruby bindings available on the system.\n\n\u003ca id=\"usage\"\u003e\u003c/a\u003e\n## Usage\n\nTo set the SELinux context on a file, use the following code:\n```\nfile { \"/path/to/file\":\n  selinux_ignore_defaults =\u003e false,\n  selrange =\u003e 's0',\n  selrole =\u003e 'object_r',\n  seltype =\u003e 'krb5_home_t',\n  seluser =\u003e 'user_u',\n}\n```\n\nTo manage a SELinux policy module, use the following code:\n```\nselmodule { 'selmodule_policy':\n  ensure =\u003e present,\n  selmoduledir =\u003e '/usr/share/selinux/targeted',\n}\n```\n\nTo manage SELinux booleans, use the following code:\n```\nselboolean { 'collectd_tcp_network_connect':\n  persistent =\u003e true,\n  value =\u003e on,\n}\n```\n\n\u003ca id=\"reference\"\u003e\u003c/a\u003e\n## Reference\n\nPlease see REFERENCE.md for the reference documentation, and [the selinux section of the file type](https://puppet.com/docs/puppet/latest/types/file.html#file-attribute-selinux_ignore_defaults).\n\nThis module is documented using Puppet Strings.\n\nFor a quick primer on how Strings works, please see [this blog post](https://puppet.com/blog/using-puppet-strings-generate-great-documentation-puppet-modules) or the [README.md](https://github.com/puppetlabs/puppet-strings/blob/master/README.md) for Puppet Strings.\n\nTo generate documentation locally, run the following code:\n```\nbundle install\nbundle exec puppet strings generate ./lib/**/*.rb\n```\nThis command will create a browsable `\\_index.html` file in the `doc` directory. The references available here are all generated from YARD-style comments embedded in the code base. When any development happens on this module, the impacted documentation should also be updated.\n\n\u003ca id=\"limitations\"\u003e\u003c/a\u003e\n## Limitations\n\nThis module is only available on platforms that have selinux ruby bindings available.\n\n\u003ca id=\"development\"\u003e\u003c/a\u003e\n## Development\n\nPuppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can't access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.\n\nWe want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.\n\nFor more information, see our [module contribution guide](https://puppet.com/docs/puppet/latest/contributing.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuppetlabs%2Fpuppetlabs-selinux_core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpuppetlabs%2Fpuppetlabs-selinux_core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuppetlabs%2Fpuppetlabs-selinux_core/lists"}