Giter VIP home page Giter VIP logo

Comments (6)

vinzent avatar vinzent commented on September 26, 2024

what about interfaces and macros from /usr/share/selinux/devel - are they available with the manual procedure?

from puppet-selinux.

ericcolruyt avatar ericcolruyt commented on September 26, 2024

That directory doesn't exist on a minimal installation (only policycoreutils-python are extra installed).

What are they needed for ?

from puppet-selinux.

vinzent avatar vinzent commented on September 26, 2024

very simple selinux policy:

policy_module(puppet_selinux_test_policy, 1.0.0)

gen_tunable(puppet_selinux_test_policy_bool, false)

type puppet_selinux_test_policy_t;
type puppet_selinux_test_policy_exec_t;
init_daemon_domain(puppet_selinux_test_policy_t, puppet_selinux_test_policy_exec_t)

it fails to compile at the checkmodule command:

#> /usr/bin/checkmodule -M -m -o puppet_selinux_test_policy.mod puppet_selinux_test_policy.te
/usr/bin/checkmodule:  loading policy configuration from puppet_selinux_test_policy.te
puppet_selinux_test_policy.te:1:ERROR 'Building a policy module, but no module specification found.
' at token 'policy_module' on line 1:


/usr/bin/checkmodule:  error(s) encountered while parsing configuration

example selinux policies: https://github.com/TresysTechnology/refpolicy-contrib/blob/master
https://github.com/TresysTechnology/refpolicy/wiki/GettingStarted

from puppet-selinux.

vinzent avatar vinzent commented on September 26, 2024

@ericcolruyt what do you think about something like:

# only minimal:
selinux::module { 'mymodule':
  builder => 'minimal',
  source_te => 'puppet:///modules/profile/mymodule.te',
} 

# this will install additional required packages
selinux::module { 'mymodule':
  ensure => 'present',
  builder => 'makefile', # DEFAULT 
  source_te => 'puppet:///modules/profile/mymodule.te',
  source_if => 'puppet:///modules/profile/mymodule.if',
  source_fc => 'puppet:///modules/profile/mymodule.fc',
} 

# no compiling at all
selinux::module { 'mymodule':
  source_pp => 'puppet:///modules/profile/mymodule.pp',
} 

selinux::module { 'mymodule':
  ensure => 'absent',
} 

if you feel this is important for you please comment in the next few days.

from puppet-selinux.

vinzent avatar vinzent commented on September 26, 2024

superseded by #178 - closing this.

from puppet-selinux.

ericcolruyt avatar ericcolruyt commented on September 26, 2024

@vinzent Looks good to me. Good idea to also include the possibility to work with a compiled module.

I will follow further in #178.

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.