Skip to content

puppetboard has no explicit SELinux context for httpd #336

@t-valette

Description

@t-valette

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.23.0
  • Ruby: 2.0.0p648
  • Distribution: Centos 7
  • Module version: v8.0.0

How to reproduce (e.g Puppet code you use)

Run puppet with puppetboard and default parameters

What are you seeing

puppetboard is installed correctly, but has a bad context to be used with httpd:

$> ls -Z
drwxr-xr-x. puppetboard root        system_u:object_r:var_t:s0       puppetboard

What behaviour did you expect instead

puppetboard should be under the httpd_sys_content_t context:

$> ls -Z
drwxr-xr-x. puppetboard root        system_u:object_r:httpd_sys_content_t:s0 puppetboard

Any additional information you'd like to impart

A simple workaround is to manually run (which could be a security issue regarding some files)

$> semanage fcontext -a -t httpd_sys_content_t "/srv/puppetboard/puppetboard(/.*)?"
$> restorecon -R -v /srv/puppetboard/puppetboard

However, this step could be optional if we explicit the SELinux context

Could be linked to #228 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions