Skip to contentSkip to conversation

Allow puppet to mount partitions

PATCH Superseded Sven Vermeulen 2 participants 2 messages Aug 23, 2011 – Aug 24, 2011

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Allow puppet to mount partitions

Puppet is a management utility to manage several dozens or even hundreds of systems through a single application. Part of its job is to ensure that the configuration and state of a system is as expected. Part of this is to ensure that the proper mounts are available and, if not, mount them (or umount them).

This patch allows puppet_t to call mount.

---
 policy/modules/services/puppet.te |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
policy/modules/services/puppet.te +2 -0
index c11bf51..38cadee 100644
@@ -125,6 +125,8 @@ logging_send_syslog_msg(puppet_t)
 miscfiles_read_hwdata(puppet_t)
 miscfiles_read_localization(puppet_t)
 
+mount_run(puppet_t, system_r)
+
 seutil_domtrans_setfiles(puppet_t)
 seutil_domtrans_semanage(puppet_t)
 
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 Allow puppet to mount partitions

Quoted 17 lines · Sven Vermeulen

Puppet is a management utility to manage several dozens or even hundreds of systems through a single application. Part of its job is to ensure that the configuration and state of a system is as expected. Part of this is to ensure that the proper mounts are available and, if not, mount them (or umount them).

This patch allows puppet_t to call mount.

---
 policy/modules/services/puppet.te |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
policy/modules/services/puppet.te +0 -0
index c11bf51..38cadee 100644

policy/modules/services/puppet.te logging_send_syslog_msg(puppet_t) · line 128

Quoted 4 lines
policy/modules/services/puppet.te +1 -0
@@ -125,6 +125,8 @@ logging_send_syslog_msg(puppet_t)
 miscfiles_read_hwdata(puppet_t)
 miscfiles_read_localization(puppet_t)
 
+mount_run(puppet_t, system_r)

This should be a domtrans.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com