Giter VIP home page Giter VIP logo

Comments (6)

Heidistein avatar Heidistein commented on September 26, 2024

I could make a pullrequest creating the following Exec in init.pp (is this the place?) and notify it from within the fcontext definition.

exec { 'sort_file_contexts':
  command => '/bin/sort -r -o /etc/selinux/targeted/contexts/files/file_contexts.local /etc/selinux/targeted/contexts/files/file_contexts.local',
  unless  => '/bin/sort -cr /etc/selinux/targeted/contexts/files/file_contexts.local',
  refreshonly => true,
}

from puppet-selinux.

vinzent avatar vinzent commented on September 26, 2024

reading File Contexts Sort Ordering (FedoraProject) I would suspect that if you add them as regex /data/log/mysql(/.*)? and /data/log(/.*)? the order of adding the rules should not matter.

please be more specific what distribution and version you are using.

please provide a sample manifest with the 2 fcontext resources.

please describe who and what (puppet, manual, a daemon, ...) creates the directories with wrong selinux fcontext.

from puppet-selinux.

vinzent avatar vinzent commented on September 26, 2024

there is an Redhat Bugzilla which seems to be related: https://bugzilla.redhat.com/show_bug.cgi?id=803846

from puppet-selinux.

vinzent avatar vinzent commented on September 26, 2024

and another bugzilla with no solution: https://bugzilla.redhat.com/show_bug.cgi?id=678577

IMHO the "real" workaround for this problem would be to use a module with filecontext included.

from puppet-selinux.

vinzent avatar vinzent commented on September 26, 2024

@Heidistein do you still think this module should fix the selinux bug/problem?

I think the selinux module way is the only real solution here.

from puppet-selinux.

vinzent avatar vinzent commented on September 26, 2024

the behaviour is now documented in the README.md. Also no follow up comment from author within the last 11 days.

from puppet-selinux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.